poll tests: Avoid test failure on BSD and Solaris systems.
[gnulib.git] / doc / posix-functions / close.texi
blob58f8e9a117cc34fce0ae32d1c7069a0d7299d9a6
1 @node close
2 @section @code{close}
3 @findex close
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/close.html}
7 Gnulib module: close
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function is declared in a different header file (namely, @code{<io.h>})
13 on some platforms:
14 MSVC 14.
15 @item
16 This function crashes when invoked with invalid arguments on some platforms:
17 MSVC 14.
18 @item
19 On Windows platforms (excluding Cygwin), @code{socket} and @code{accept}
20 do not return file descriptors that can be closed by @code{close}.
21 Instead, @code{closesocket} must be used.
22 @end itemize
24 Portability problems not fixed by Gnulib:
25 @itemize
26 @end itemize