Merge branch 'stable'
[gnulib.git] / doc / posix-headers / sys_socket.texi
1 @node sys/socket.h
2 @section @file{sys/socket.h}
3
4 POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html}
5
6 Gnulib module: sys_socket
7
8 Portability problems fixed by Gnulib:
9 @itemize
10 @item
11 This header file is missing on some platforms:
12 mingw, MSVC 9.
13 @item
14 This header file is not self-contained on some platforms: it requires
15 @code{<sys/types.h>} to be included first.
16 @item
17 This header file does not define the type @code{socklen_t} on some platforms:
18 HP-UX 10.20, IRIX 6.5, OSF/1 4.0, Interix 3.5, BeOS.
19 @item
20 This header file does not define the type @code{struct iovec} on some platforms:
21 OpenBSD 4.4.
22 @item
23 This header file is lacking the @code{SHUT_RD}, @code{SHUT_WR},
24 @code{SHUT_RDWR} macros on some platforms, despite having the @code{shutdown}
25 functions:
26 emx+gcc.
27 @item
28 The @code{struct sockaddr_storage} type does not have a member @code{ss_family}
29 on some platforms:
30 AIX 7.1.
31 @end itemize
32
33 Portability problems not fixed by Gnulib:
34 @itemize
35 @item
36 This header file does not declare the @code{msg_control} and
37 @code{msg_controllen} members of @code{struct msghdr} on some
38 platforms.  This can be detected by the absence of the
39 @code{CMSG_FIRSTHDR} macro:
40 gnulib replacement header, old BSD
41 @end itemize