gettimeofday: port recent C++ fix to Emacs
[gnulib.git] / doc / posix-functions / getsockopt.texi
1 @node getsockopt
2 @section @code{getsockopt}
3 @findex getsockopt
4
5 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html}
6
7 Gnulib module: getsockopt
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 On Windows platforms (excluding Cygwin), error codes for
13 @code{getsockopt} are not placed in @code{errno}, and
14 @code{WSAGetLastError} must be used instead.
15 @end itemize
16
17 Portability problems not fixed by Gnulib:
18 @itemize
19 @item
20 This function is missing on some platforms:
21 BeOS.
22 @item
23 Some platforms don't have a @code{socklen_t} type; in this case this function's
24 fifth argument type is @samp{int *}.
25 @item
26 Many socket options are not available on all platforms.
27 @item
28 BeOS has the @code{setsockopt} function, but not the @code{getsockopt}
29 function.
30 @end itemize