poll tests: Avoid test failure on BSD and Solaris systems.
[gnulib.git] / doc / posix-functions / socket.texi
blob1533fbec48765f26a24014e031e451d2c55589b5
1 @node socket
2 @section @code{socket}
3 @findex socket
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/socket.html}
7 Gnulib module: socket
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 On Windows platforms (excluding Cygwin), the descriptors returned by
13 the @code{socket} function cannot 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 from this function
18 are not placed in @code{errno}, and @code{WSAGetLastError} must be used
19 instead.
20 @end itemize
22 Portability problems not fixed by Gnulib:
23 @itemize
24 @end itemize