Refresh 01-gnulib-directory.patch
[gnulib.git] / doc / posix-functions / fclose.texi
1 @node fclose
2 @section @code{fclose}
3 @findex fclose
4
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/fclose.html}
6
7 Gnulib module: fclose
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 On some platforms, this function fails to set the file position of a
13 seekable input stream to the byte after the last one actually read:
14 glibc 2.13, FreeBSD.
15 @item
16 On Windows platforms (excluding Cygwin), @code{socket} and @code{accept}
17 followed by @code{fdopen} do not return streams that can be closed by
18 @code{fclose}.
19 @end itemize
20
21 Portability problems not fixed by Gnulib:
22 @itemize
23 @item
24 On Windows platforms (excluding Cygwin), this function does not set @code{errno}
25 upon failure.
26 @end itemize