mkstemp: replace if system version uses wrong permissions
[gnulib.git] / doc / posix-functions / fcntl.texi
1 @node fcntl
2 @section @code{fcntl}
3 @findex fcntl
4
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/fcntl.html}
6
7 Gnulib module: fcntl
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function does not support @code{F_DUPFD_CLOEXEC} on some
13 platforms:
14 MacOS X 10.5, FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, AIX 5.1, HP-UX 11,
15 IRIX 6.5, OSF/1 5.1, Solaris 11 2010-11, Cygwin 1.7.1, mingw, Interix 3.5,
16 BeOS.
17 Note that the gnulib replacement code is functional but not atomic.
18
19 @item
20 The @code{F_DUPFD} action of this function does not reject
21 out-of-range targets properly on some platforms:
22 Cygwin 1.5.x, Haiku.
23
24 @item
25 The @code{F_DUPFD} action of this function mistakenly clears
26 FD_CLOEXEC on the source descriptor on some platforms:
27 Haiku.
28
29 @item
30 This function is missing on some platforms:
31 mingw.
32 @end itemize
33
34 Portability problems not fixed by Gnulib:
35 @itemize
36 @item
37 The replacement function does not support @code{F_SETFD},
38 @code{F_GETFL}, @code{F_SETFL}, @code{F_GETOWN}, @code{F_SETOWN},
39 @code{F_GETLK}, @code{F_SETLK}, and @code{F_SETLKW} on some platforms:
40 mingw
41 @end itemize