The following issue has been SUBMITTED. ====================================================================== https://austingroupbugs.net/view.php?id=1906 ====================================================================== Reported By: collinfunk Assigned To: ====================================================================== Project: 1003.1(2024)/Issue8 Issue ID: 1906 Category: Base Definitions and Headers Type: Omission Severity: Editorial Priority: normal Status: New Name: Collin Funk Organization: GNU User Reference: Section: unistd.h Page Number: 479 Line Number: 16883-16915 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2025-02-12 06:10 UTC Last Modified: 2025-02-12 06:10 UTC ====================================================================== Summary: Mention O_CLOEXEC and O_CLOFORK in the unistd.h change history. Description: In POSIX Issue 8:
The <unistd.h> header shall define the symbolic constants O_CLOEXEC and O_CLOFORK as described in <fcntl.h>. This is not required in POSIX Issue 7 and took me a while to notice. The closest entry in the "CHANGE HISTORY" is: Austin Group Defects 411 and 598 are applied, adding dup3() and pipe2(). Since this is the rational behind defining the flags in unistd.h. Furthermore, in POSIX Issue 8: Inclusion of the <unistd.h> header may make visible all symbols from the headers <fcntl.h>, <stddef.h>, <stdint.h>, and <stdio.h>. In POSIX Issue 7, fcntl.h was missing from this list: Inclusion of the <unistd.h> header may make visible all symbols from the headers <stddef.h>, <stdint.h>, and <stdio.h>. There was a similar change in stdlib.h that got a change in an entry in CHANGE HISTORY: Austin Group Defects 593 and 1350 are applied, adding some O_* symbolic constants and allowing <stdlib.h> to make visible all symbols from <fcntl.h>. Can something similar be added for unistd.h? I think it will make it more clear. Desired Action: Add text similar the the following in CHANGE HISTORY for Issue 8 of unistd.h: Added the O_CLOEXEC and O_CLOFORK constants and allowing <unistd.h> to make visible all symbols from <fcntl.h>. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2025-02-12 06:10 collinfunk New Issue 2025-02-12 06:10 collinfunk Name => Collin Funk 2025-02-12 06:10 collinfunk Organization => GNU 2025-02-12 06:10 collinfunk Section => unistd.h 2025-02-12 06:10 collinfunk Page Number => 479 2025-02-12 06:10 collinfunk Line Number => 16883-16915 ======================================================================
