Next: openat, Previous: ntohs, Up: Function Substitutes [Contents][Index]
open
POSIX specification:
http://www.opengroup.org/onlinepubs/9699919799/functions/open.html
Gnulib module: open, fchdir
Portability problems fixed by the Gnulib module open:
off_t
is a 32-bit type, open
may not work
correctly with files larger than 2 GB. (Cf. AC_SYS_LARGEFILE
.)
O_NONBLOCK
flag when it is defined
by the gnulib module nonblocking
on some platforms:
mingw, MSVC 9.
Portability problems fixed by the Gnulib module fchdir:
Portability problems not fixed by Gnulib:
open ("symlink", O_NOFOLLOW ...)
fails with errno
set to
EMLINK
instead of the POSIX-required ELOOP
on some
platforms:
FreeBSD 10.1.
open ("symlink", O_NOFOLLOW ...)
fails with errno
set to
EFTYPE
instead of the POSIX-required ELOOP
on some
platforms:
NetBSD 6.1.
O_TEXT
mode by
default; this means that it translates '\n'
to CR/LF by default. Use the
O_BINARY
flag if you need reliable binary I/O.