r/cprogramming • u/Materac_YT • Sep 29 '26
Glibc posix 2024 incompatibility
I been coding some posix porable stuff and i tried to use pipe2 and dup3 which are considerd posix since 2024 (Issue 8) i defined _POSIX_C_SOURCE to 202405L and included unistd.h and gcc greated me with implicit declaration i looked at my local unistd.h and it had pipe2 and dup3 behind __USE_GNU which is just wrong so i checked offical source code latest branch and it had the same bug, Please if some of you guys have sourceware bugzilla account please report it, it is a big issue
5
Upvotes
0
u/earlyworm Sep 29 '26
thank you officially noted and categorized