Hi Collin, > I have applied the following two patches to define O_CLOEXEC in unistd.h > and add a test for it. I also documented the platforms that don't behave > like POSIX 2024 using the GitHub CI.
Thanks for these patches, and thanks for the glibc bug report. Looks all good, except the platforms list: > +This header file does not define @code{O_CLOEXEC} on some platforms: > +glibc 2.41, FreeBSD 14.0, NetBSD 10.0, OpenBSD 7.5, Solaris 11.4, Cygwin > 3.5, mingw, MSVC 14. Since no version of MSVC has <unistd.h>, it is redundant to list MSVC here. And you can also add macOS and AIX 7.3 to the list of platforms. I just checked the result of your test program on these platform (using the compilefarm machines). Bruno