View Issue Details

IDProjectCategoryView StatusLast Update
0001350Issue 8 draftsBase Definitions and Headerspublic2024-06-11 09:12
Reportergeoffclare Assigned To 
PrioritynormalSeverityObjectionTypeError
Status ClosedResolutionAccepted 
Product VersionDraft 1 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Section<stdlib.h>
Page Number351
Line Number12251
Final Accepted Text
Summary0001350: O_* constants needed in <stdlib.h> for mkostemp()
DescriptionThis line:
The <stdlib.h> header shall define O_CLOEXEC, O_NOCTTY, and O_RDWR as described in <fcntl.h>.
was added by bug 0000593 with XSI shading because posix_openpt() is XSI.

However, O_CLOEXEC is also needed by mkostemp() which is mandatory. Several other constants are also needed by mkostemp().
Desired ActionOn page 351 line 12251 section <stdlib.h>, change:
[XSI]The <stdlib.h> header shall define O_CLOEXEC, O_NOCTTY, and O_RDWR as described in <fcntl.h>.[/XSI]
to:
The <stdlib.h> header shall define the following symbolic constants as described in <fcntl.h>:

O_APPEND
O_CLOEXEC
O_CLOFORK
[SIO]O_DSYNC[/SIO]
[XSI]O_NOCTTY
O_RDWR[/XSI]
[SIO]O_RSYNC[/SIO]
O_SYNC

On page 1283 line 43031 section mkdtemp(), change:
contain additional flags (from <fcntl.h>) to be used
to:
contain additional flags to be used
Tagsissue8

Relationships

related to 0000593 Closedajosey 1003.1(2008)/Issue 7 posix_typed_mem_open requires the use of <fcntl.h> 
related to 0000411 Closedajosey 1003.1(2008)/Issue 7 adding atomic FD_CLOEXEC support 
related to 0000598 Closedajosey 1003.1(2008)/Issue 7 OH shading and new interfaces 

Activities

dennisw

2020-06-28 15:35

reporter   bugnote:0004889

0000598 reported the same issue already but was not resolved yet. As reported there dup3() from <unistd.h> also has this issue (it needs O_CLOEXEC and O_CLOFORK).

Issue History

Date Modified Username Field Change
2020-06-26 15:57 geoffclare New Issue
2020-06-26 15:57 geoffclare Name => Geoff Clare
2020-06-26 15:57 geoffclare Organization => The Open Group
2020-06-26 15:57 geoffclare Section => <stdlib.h>
2020-06-26 15:57 geoffclare Page Number => 351
2020-06-26 15:57 geoffclare Line Number => 12251
2020-06-26 15:59 geoffclare Desired Action Updated
2020-06-26 16:00 geoffclare Relationship added related to 0000593
2020-06-26 16:01 geoffclare Relationship added related to 0000411
2020-06-28 15:35 dennisw Note Added: 0004889
2020-09-03 15:14 Don Cragun Status New => Resolved
2020-09-03 15:14 Don Cragun Resolution Open => Accepted
2020-09-03 15:14 Don Cragun Tag Attached: issue8
2020-09-03 15:25 geoffclare Relationship added related to 0000598
2020-09-16 10:15 geoffclare Status Resolved => Applied
2024-06-11 09:12 agadmin Status Applied => Closed