37edf9ce5fa21979a52e32d43d9d7e347678433c
[gnulib.git] / doc / posix-functions / fopen.texi
1 @node fopen
2 @section @code{fopen}
3 @findex fopen
4
5 POSIX specification: @url{http://www.opengroup.org/susv3xsh/fopen.html}
6
7 Gnulib module: fopen
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 On Windows platforms (excluding Cygwin), this function does usually not
13 recognize the @file{/dev/null} filename.
14 @end itemize
15
16 Portability problems not fixed by Gnulib:
17 @itemize
18 @item
19 On Windows platforms (excluding Cygwin), this function does not set @code{errno}
20 upon failure.
21 @item
22 On Windows, this function returns a file stream in ``text'' mode by default;
23 this means that it translates @code{'\n'} to CR/LF by default.  Use the
24 @code{"b"} flag if you need reliable binary I/O.
25 @end itemize