Anonymous | Login | 2024-03-29 05:55 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Type | Date Submitted | Last Update | ||
0000834 | [1003.1(2013)/Issue7+TC1] Base Definitions and Headers | Objection | Clarification Requested | 2014-04-21 20:47 | 2019-06-10 08:54 | ||
Reporter | jilles | View Status | public | ||||
Assigned To | |||||||
Priority | normal | Resolution | Accepted As Marked | ||||
Status | Closed | ||||||
Name | Jilles Tjoelker | ||||||
Organization | FreeBSD | ||||||
User Reference | |||||||
Section | 3.168 File Mode | ||||||
Page Number | 60 | ||||||
Line Number | 1780-1781 | ||||||
Interp Status | --- | ||||||
Final Accepted Text | Note: 0002234 | ||||||
Summary | 0000834: definition of file mode is too restrictive | ||||||
Description |
Some of the newer file types such as shared memory objects have to be tested using macros like S_TYPEISSHM(buf) which take a pointer to the whole struct stat instead of the st_mode field. This seems intended to allow the newer file types to be distinguished from each other using other fields in struct stat (such as st_rdev, st_ino or implementation-specific fields), and is important because a 16-bit mode_t only has 4 bits to encode the file type. However, the definition of file mode in XBD 3.168 defines a file mode as "An object containing the file mode bits and file type of a file." The definitions of mode_t and st_mode appear sufficiently vague that it is permitted to store parts of the file type elsewhere. |
||||||
Desired Action |
Change XBD 3.168 from An object containing the file mode bits and file type of a file. to An object containing the file mode bits and some information about the file type of a file. Some rationale addition may be useful here to state that only the file types for which S_ISxxx macros exist need be detectable using the file mode. |
||||||
Tags | tc2-2008 | ||||||
Attached Files | |||||||
|
Relationships | |||||||
|
Issue History | |||
Date Modified | Username | Field | Change |
2014-04-21 20:47 | jilles | New Issue | |
2014-04-21 20:47 | jilles | Name | => Jilles Tjoelker |
2014-04-21 20:47 | jilles | Organization | => FreeBSD |
2014-04-21 20:47 | jilles | Section | => 3.168 File Mode |
2014-04-21 20:47 | jilles | Page Number | => 60 |
2014-04-21 20:47 | jilles | Line Number | => 1780-1781 |
2014-04-24 15:10 | shware_systems | Note Added: 0002231 | |
2014-04-24 15:25 | eblake | Relationship added | related to 0000732 |
2014-04-24 15:34 | shware_systems | Note Added: 0002233 | |
2014-04-24 15:35 | shware_systems | Note Edited: 0002233 | |
2014-04-24 15:48 | geoffclare | Interp Status | => --- |
2014-04-24 15:48 | geoffclare | Note Added: 0002234 | |
2014-04-24 15:48 | geoffclare | Status | New => Resolved |
2014-04-24 15:48 | geoffclare | Resolution | Open => Accepted As Marked |
2014-04-24 15:48 | Don Cragun | Note Edited: 0002233 | |
2014-04-24 15:48 | geoffclare | Final Accepted Text | => Note: 0002234 |
2014-04-24 15:49 | geoffclare | Tag Attached: tc2-2008 | |
2019-06-10 08:54 | agadmin | Status | Resolved => Closed |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |