Austin Group Bug Tracker
2014-04-21 20:47:25 UTC
The following issue has been SUBMITTED.
======================================================================
http://austingroupbugs.net/view.php?id=834
======================================================================
Reported By: jilles
Assigned To:
======================================================================
Project: 1003.1(2013)/Issue7+TC1
Issue ID: 834
Category: Base Definitions and Headers
Type: Clarification Requested
Severity: Objection
Priority: normal
Status: New
Name: Jilles Tjoelker
Organization: FreeBSD
User Reference:
Section: 3.168 File Mode
Page Number: 60
Line Number: 1780-1781
Interp Status: ---
Final Accepted Text:
======================================================================
Date Submitted: 2014-04-21 20:47 UTC
Last Modified: 2014-04-21 20:47 UTC
======================================================================
Summary: 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.
======================================================================
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
======================================================================
======================================================================
http://austingroupbugs.net/view.php?id=834
======================================================================
Reported By: jilles
Assigned To:
======================================================================
Project: 1003.1(2013)/Issue7+TC1
Issue ID: 834
Category: Base Definitions and Headers
Type: Clarification Requested
Severity: Objection
Priority: normal
Status: New
Name: Jilles Tjoelker
Organization: FreeBSD
User Reference:
Section: 3.168 File Mode
Page Number: 60
Line Number: 1780-1781
Interp Status: ---
Final Accepted Text:
======================================================================
Date Submitted: 2014-04-21 20:47 UTC
Last Modified: 2014-04-21 20:47 UTC
======================================================================
Summary: 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.
======================================================================
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
======================================================================