Red Hat Bugzilla – Bug 198524
Incorrect comment in /usr/include/bits/fcntl.h
Last modified: 2007-11-30 17:07:26 EST
From glibc-headers-2.3.4-2.19 on RedHat EL.4, but same defect present
on all RedHat/Fedora machines I've looked on.
Lines 99 & 100 of /usr/include/bits/fcntl.h state:
/* For F_[GET|SET]FL. */
#define FD_CLOEXEC 1 /* actually anything with low bit set goes */
However FD_CLOEXEC is used with F_[GET|SET]FD and NOT with F_[GET|SET]FL
I fixed it upstream but this is hardly worth including in an update release.