Branch
Hash :
9d429ac1
Author :
Date :
2025-08-19T19:29:03
doc: Update for glibc 2.42. * doc/glibc-functions/pthread_gettid_np.texi: New file. * doc/gnulib.texi (Glibc pthread.h): Include it. * doc/posix-headers/*.texi: Update. * doc/posix-functions/*.texi: Likewise.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
@node sys/socket.h
@section @file{sys/socket.h}
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_socket.h.html}
Gnulib module: sys_socket-h
@mindex sys_socket-h
Portability problems fixed by Gnulib:
@itemize
@item
This header file is missing on some platforms:
mingw, MSVC 14.
@item
This header file is not self-contained on some platforms: it requires
@code{<sys/types.h>} to be included first.
@item
This header file does not define the type @code{struct iovec} on some platforms:
OpenBSD 4.4.
@item
This header file is lacking the @code{SHUT_RD}, @code{SHUT_WR},
@code{SHUT_RDWR} macros on some platforms, despite having the @code{shutdown}
functions:
emx+gcc.
@item
The @code{struct sockaddr_storage} type does not have a member @code{ss_family}
on some platforms:
AIX 7.1.
@item
The @code{CMSG_SPACE} and @code{CMSG_LEN} macros are not provided on some
platforms:
OpenVMS.
@item
This header file does not define the @code{SO_REUSEPORT} macro on some
platforms:
Minix 3.1.8, Solaris 10, Cygwin, mingw, MSVC 14.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@item
This header file does not declare the @code{msg_control} and
@code{msg_controllen} members of @code{struct msghdr} on some
platforms. This can be detected by the absence of the
@code{CMSG_FIRSTHDR} macro:
gnulib replacement header, old BSD
@item
This header file does not define the macro @code{SOCK_NONBLOCK}
on some platforms:
macOS 15, AIX 7.3, Solaris 10, mingw, MSVC 14.
@item
This header file does not define the macros @code{SOCK_CLOEXEC} and
@code{MSG_CMSG_CLOEXEC} on some platforms:
macOS 15, AIX 7.3, Solaris 10, mingw, MSVC 14.
@item
This header file does not define the macro @code{MSG_CMSG_CLOEXEC}
on some platforms:
Solaris 11 OmniOS.
@item
Although POSIX.1-2024 standardized @code{SOCK_CLOFORK} and
@code{MSG_CMSG_CLOFORK}, no known platform supports them.
@item
This header file does not define the macro @code{SO_DOMAIN} on some platforms:
macOS 15, NetBSD 10.0, AIX 7.3, Cygwin 3.5, mingw, MSVC 14.
@item
This header file does not define the macro @code{SO_PROTOCOL} on some platforms:
macOS 15, NetBSD 10.0, AIX 7.3, Solaris 11.4, Cygwin 3.5, mingw, MSVC 14.
@item
This header file does not define the macro @code{MSG_NOSIGNAL}
on some platforms:
Solaris 10, mingw, MSVC 14.
@item
This header file does not define the macro @code{MSG_EOR} on some platforms:
mingw, MSVC 14.
@item
This header file does not define the macros @code{MSG_CTRUNC} and
@code{MSG_TRUNC} on some platforms:
mingw.
@item
This header file does not define the macro @code{MSG_WAITALL} on some platforms:
MSVC 14.
@item
This header file does not define the type @code{struct cmsghdr} and
the constant @code{SCM_RIGHTS} on some platforms:
mingw, MSVC 14.
@item
This header file does not define the constant @code{SOCK_CLOFORK}
on some platforms:
glibc 2.42, musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Solaris 11.3, Cygwin, mingw, MSVC, Android.
@item
This header file does not define the constant @code{MSG_CMSG_CLOFORK}
on some platforms:
glibc 2.42, musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Solaris 11.4, Cygwin, mingw, MSVC, Android.
@end itemize