poll tests: Avoid test failure on BSD and Solaris systems.
[gnulib.git] / doc / posix-functions / creat.texi
blobe7cc57e90c24ea7d982b9feded5a606f43165887
1 @node creat
2 @section @code{creat}
3 @findex creat
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/creat.html}
7 Gnulib module: creat
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function does not support modes with execution bits (such as 0700)
13 on some platforms:
14 MSVC 14.
15 @item
16 On platforms where @code{off_t} is a 32-bit type, @code{creat} may not work
17 correctly with files larger than 2 GB@.  (Cf. @code{AC_SYS_LARGEFILE}.)
18 @item
19 This function does not fail when the file name argument ends in a slash
20 and (without the slash) names a nonexistent file, on some platforms:
21 FreeBSD 7.2, AIX 7.1, HP-UX 11.31, Solaris 9.
22 @end itemize
24 Portability problems not fixed by Gnulib:
25 @itemize
26 @item
27 On Windows, this function returns a file handle in @code{O_TEXT} mode.  If you
28 need a file handle in @code{O_BINARY} mode, you need to use the function
29 @code{open} instead.
30 @end itemize