Austin Group Defect Tracker

Aardvark Mark IV


Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Type Date Submitted Last Update
0001350 [Issue 8 drafts] Base Definitions and Headers Objection Error 2020-06-26 15:57 2024-06-11 09:12
Reporter geoffclare View Status public  
Assigned To
Priority normal Resolution Accepted  
Status Closed   Product Version Draft 1
Name Geoff Clare
Organization The Open Group
User Reference
Section <stdlib.h>
Page Number 351
Line Number 12251
Final Accepted Text
Summary 0001350: O_* constants needed in <stdlib.h> for mkostemp()
Description This 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 Action On 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
Tags issue8
Attached Files

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

-  Notes
(0004889)
dennisw (reporter)
2020-06-28 15:35

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


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker