Next: opendir
, Previous: open
, Up: ISO C and POSIX Function Substitutes [Contents][Index]
openat
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/openat.html
Gnulib module: openat
Portability problems fixed by Gnulib:
O_CLOEXEC
:
AIX 7.1, Solaris 10.
off_t
is a 32-bit type, open
may not work
correctly with files 2 GiB and larger. See Large File Support.
Portability problems not fixed by Gnulib:
O_CLOEXEC
is not atomic, and so is
not safe in the presence of multiple threads or signal handlers.
openat (fd, "symlink", O_NOFOLLOW ...)
fails with errno
set to EMLINK
instead of the POSIX-required ELOOP
on
some platforms:
FreeBSD 10.1.
openat (fd, "symlink", O_NOFOLLOW ...)
fails with errno
set to EFTYPE
instead of the POSIX-required ELOOP
on
some platforms:
NetBSD 6.1.