7065efaca237846b30d0de722029a8d56f9b66d0
[gnulib.git] / doc / posix-functions / close.texi
1 @node close
2 @section @code{close}
3 @findex close
4
5 POSIX specification: @url{http://www.opengroup.org/susv3xsh/close.html}
6
7 Gnulib module: close
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 On Windows platforms (excluding Cygwin), @code{socket} and @code{accept}
13 do not return file descriptors that can be closed by @code{close}.
14 Instead, @code{closesocket} must be used.
15 @item
16 On Windows platforms (excluding Cygwin), error codes for @code{close}
17 are not placed in @code{errno}, and @code{WSAGetLastError} must be
18 used instead.
19 @end itemize
20
21 Portability problems not fixed by Gnulib:
22 @itemize
23 @item
24 On BeOS, @code{socket} and @code{accept} do not return file descriptors
25 that can be closed by @code{close}.  Instead, @code{closesocket} must be
26 used.
27 @end itemize