mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-18 23:42:00 +03:00
* modules/fclose (Depends-on): Add fflush. * doc/posix-functions/fclose.texi (fclose): Document this. * tests/test-fclose.c (main): Make test for this unconditional. Signed-off-by: Eric Blake <eblake@redhat.com>
27 lines
728 B
Plaintext
27 lines
728 B
Plaintext
@node fclose
|
|
@section @code{fclose}
|
|
@findex fclose
|
|
|
|
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/fclose.html}
|
|
|
|
Gnulib module: fclose
|
|
|
|
Portability problems fixed by Gnulib:
|
|
@itemize
|
|
@item
|
|
On some platforms, this function fails to set the file position of a
|
|
seekable input stream to the byte after the last one actually read:
|
|
glibc 2.13, FreeBSD.
|
|
@item
|
|
On Windows platforms (excluding Cygwin), @code{socket} and @code{accept}
|
|
followed by @code{fdopen} do not return streams that can be closed by
|
|
@code{fclose}.
|
|
@end itemize
|
|
|
|
Portability problems not fixed by Gnulib:
|
|
@itemize
|
|
@item
|
|
On Windows platforms (excluding Cygwin), this function does not set @code{errno}
|
|
upon failure.
|
|
@end itemize
|