Next: sys/stat.h, Previous: sys/shm.h, Up: ISO C and POSIX Header File Substitutes [Contents][Index]
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html
Gnulib module: sys_socket
Portability problems fixed by Gnulib:
<sys/types.h>
to be included first.
struct iovec
on some platforms:
OpenBSD 4.4.
SHUT_RD
, SHUT_WR
,
SHUT_RDWR
macros on some platforms, despite having the shutdown
functions:
emx+gcc.
struct sockaddr_storage
type does not have a member ss_family
on some platforms:
AIX 7.1.
CMSG_SPACE
and CMSG_LEN
macros are not provided on some
platforms:
OpenVMS.
SO_REUSEPORT
macro on some
platforms:
Minix 3.1.8, Solaris 10, Cygwin, mingw, MSVC 14.
Portability problems not fixed by Gnulib:
msg_control
and
msg_controllen
members of struct msghdr
on some
platforms. This can be detected by the absence of the
CMSG_FIRSTHDR
macro:
gnulib replacement header, old BSD