Merge branch 'stable'
[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/onlinepubs/9699919799/functions/close.html}
6
7 Gnulib module: close
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function crashes when invoked with invalid arguments on some platforms:
13 MSVC 9.
14 @item
15 On Windows platforms (excluding Cygwin), @code{socket} and @code{accept}
16 do not return file descriptors that can be closed by @code{close}.
17 Instead, @code{closesocket} must be used.
18 @end itemize
19
20 Portability problems not fixed by Gnulib:
21 @itemize
22 @item
23 On BeOS, @code{socket} and @code{accept} do not return file descriptors
24 that can be closed by @code{close}.  Instead, @code{closesocket} must be
25 used.
26 @end itemize