summaryrefslogtreecommitdiff
path: root/doc/posix-functions/creat.texi
blob: 6b15a13ce7bb4bc4c5f33113c18969e0d48cd0a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@node creat
@section @code{creat}
@findex creat

POSIX specification: @url{http://www.opengroup.org/susv3xsh/creat.html}

Gnulib module: ---

Portability problems fixed by Gnulib:
@itemize
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
On Windows, this function returns a file handle in @code{O_TEXT} mode.  If you
need a file handle in @code{O_BINARY} mode, you need to use the function
@code{open} instead.
@item
On platforms where @code{off_t} is a 32-bit type, @code{creat} may not work
correctly to create files larger than 2 GB.  The fix is to use the
@code{AC_SYS_LARGEFILE} macro.
@end itemize