View Issue Details

IDProjectCategoryView StatusLast Update
00002741003.1(2008)/Issue 7Base Definitions and Headerspublic2013-04-16 13:06
Reportergeoffclare Assigned Toajosey  
PrioritynormalSeverityObjectionTypeClarification Requested
Status ClosedResolutionAccepted 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectionfcntl.h
Page Number239
Line Number7848
Interp Status---
Final Accepted Text
Summary0000274: O_EXEC and O_SEARCH equal values
DescriptionI seem to remember that, when the decision to add O_EXEC and O_SEARCH
was made, the possibility of implementations defining them with equal
values was discussed. This is reflected in the statements on the
fcntl.h page that the behaviour of O_EXEC on a directory is
unspecified, and likewise for O_SEARCH on a non-directory. However,
there is no explicit statement about uniqueness for the access mode
constants.

Some application writers might assume they are all unique (as used
to be the case for O_RDONLY, O_WRONLY and O_RDWR; despite there being
no explicit statement, it could be inferred from the requirement for
different behaviour of open() for each of them), and thus encounter a
problem if they include O_EXEC and O_SEARCH as cases in a switch
statement.
Desired ActionAfter

    The <fcntl.h> header shall define the following symbolic constants
    for use as the file access modes for open(), openat(), and fcntl().

add

    The values shall be unique, except that O_EXEC and O_SEARCH may
    have equal values.
Tagstc1-2008

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2010-06-30 16:02 geoffclare New Issue
2010-06-30 16:02 geoffclare Status New => Under Review
2010-06-30 16:02 geoffclare Assigned To => ajosey
2010-06-30 16:02 geoffclare Name => Geoff Clare
2010-06-30 16:02 geoffclare Organization => The Open Group
2010-06-30 16:02 geoffclare Section => fcntl.h
2010-06-30 16:02 geoffclare Page Number => 239
2010-06-30 16:02 geoffclare Line Number => 7848
2010-06-30 16:02 geoffclare Interp Status => ---
2010-07-01 15:33 Don Cragun Status Under Review => Resolved
2010-07-01 15:33 Don Cragun Resolution Open => Accepted
2010-08-27 11:17 ajosey Tag Attached: tc1-2008
2013-04-16 13:06 ajosey Status Resolved => Closed