avoid some overlong lines from posix urls, etc.
[gnulib.git] / doc / posix-functions / accept.texi
1 @node accept
2 @section @code{accept}
3 @findex accept
4
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/accept.html}
6
7 Gnulib module: accept
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 On Windows platforms (excluding Cygwin), the descriptors returned by
13 the @code{accept} function can not be used in calls to @code{read},
14 @code{write}, and @code{close}; you have to use @code{recv}, @code{send},
15 @code{closesocket} in these cases instead.
16 @item
17 On Windows platforms (excluding Cygwin), error codes for @code{accept}
18 are not placed in @code{errno}, and @code{WSAGetLastError} must be
19 used instead.
20 @end itemize
21
22 Portability problems not fixed by Gnulib:
23 @itemize
24 @item
25 On BeOS, the descriptors returned by the @code{accept} function can not be used
26 in calls to @code{read}, @code{write}, and @code{close}; you have to use
27 @code{recv}, @code{send}, @code{closesocket} in these cases instead.
28 @item
29 Some platforms don't have a @code{socklen_t} type; in this case this function's
30 third argument type is @samp{int *}.
31 @end itemize