View Issue Details

IDProjectCategoryView StatusLast Update
00003071003.1(2008)/Issue 7Base Definitions and Headerspublic2013-04-16 13:06
Reportergeoffclare Assigned Toajosey  
PrioritynormalSeverityCommentTypeOmission
Status ClosedResolutionAccepted As Marked 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectionfcntl.h
Page Number239
Line Number7855
Interp Status---
Final Accepted TextSee 0000307:0000559
Summary0000307: O_CREAT with O_SEARCH
DescriptionThe standard doesn't say what happens if O_CREAT is used with O_SEARCH.

The description of O_SEARCH does say "The result is unspecified if
this flag is applied to a non-directory file" and this could, at a
stretch, be interpreted as applying to an attempt to create a
(non-directory) file with O_CREAT, but it would be better to mention
O_CREAT explicitly.
Desired ActionChange

    The result is unspecified if this flag is applied to a non-directory
    file.

to

    The result is unspecified if this flag is applied to a non-directory
    file or is used with O_CREAT.

Cross-volume change to XSH...

Make the same change at page 1379 line 45187 section open.
Tagstc1-2008

Activities

Don Cragun

2010-09-23 16:27

manager   bugnote:0000559

Last edited: 2010-09-23 16:34

Add the following text to the end of the first paragraph of RATIONALE
at the end of P1385, L45427:
    "Not all combinations of flags make sense.  For example, using
     O_SEARCH | O_CREAT will successfully open a pre-existing directory
     for searching, but if there is no existing file by that name, then it is
     unspecified whether a regular file will be created. Likewise, if a
     non-directory file descriptor is successfully returned, it is unspecified
     whether that descriptor will have execute permissions as if by O_EXEC
     (note that it is unspecified whether O_EXEC and O_SEARCH have the
     same value)."


And then move the entire paragraph from RATIONALE to APPLICATION
USAGE after P1385, L45424.

Issue History

Date Modified Username Field Change
2010-09-10 15:01 geoffclare New Issue
2010-09-10 15:01 geoffclare Status New => Under Review
2010-09-10 15:01 geoffclare Assigned To => ajosey
2010-09-10 15:01 geoffclare Name => Geoff Clare
2010-09-10 15:01 geoffclare Organization => The Open Group
2010-09-10 15:01 geoffclare Section => fcntl.h
2010-09-10 15:01 geoffclare Page Number => 239
2010-09-10 15:01 geoffclare Line Number => 7855
2010-09-10 15:01 geoffclare Interp Status => ---
2010-09-23 16:27 Don Cragun Note Added: 0000559
2010-09-23 16:34 Don Cragun Note Edited: 0000559
2010-09-23 16:36 Don Cragun Tag Attached: tc1-2008
2010-09-23 16:37 Don Cragun Final Accepted Text => See 0000307:0000559
2010-09-23 16:37 Don Cragun Status Under Review => Resolved
2010-09-23 16:37 Don Cragun Resolution Open => Accepted As Marked
2013-04-16 13:06 ajosey Status Resolved => Closed