I'm using arch linux with glibc 2.22-3 on linux 4.2.5, and I didn't
compile glibc myself, but I downloaded the source. The line numbers are
from the latest git commit at the time of writing:
Fix getaddrinfo bug number in ChangeLog and NEWS files
O_DIRECT, O_NOATIME, O_PATH and O_TMPFILE are defined in lines 147-152 in
sysdeps/unix/sysv/linux/bits/fcntl-linux.h if __USE_GNU is defined.
Users need _GNU_SOURCE to enable them, but this isn't mentioned anywhere
in the docs. Please add it.
(In reply to Isabella from comment #0)
> Users need _GNU_SOURCE to enable them, but this isn't mentioned anywhere
> in the docs. Please add it.
JFYI, open(2) manpage mentions this in "CONFORMING TO" section:
"The O_DIRECT, O_NOATIME, O_PATH, and O_TMPFILE flags are Linux-specific. One must define _GNU_SOURCE to obtain their definitions".
I'm sorry for the noise, I totally missed it