* modules/sys_socket-h: Renamed from modules/sys_socket.
* modules/sys_socket-h-tests: Renamed from modules/sys_socket-tests.
* modules/sys_socket-h-c++-tests: Renamed from
modules/sys_socket-c++-tests.
* tests/test-sys_socket-h.c: Renamed from tests/test-sys_socket.c.
* tests/test-sys_socket-h-c++.cc: Renamed from
tests/test-sys_socket-c++.cc.
* doc/posix-headers/sys_socket.texi: Update.
* modules/* (Depends-on): Update.
* modules/sys_socket: New file.
+2024-12-27 Bruno Haible <bruno@clisp.org>
+
+ Rename module sys_socket to sys_socket-h.
+ * modules/sys_socket-h: Renamed from modules/sys_socket.
+ * modules/sys_socket-h-tests: Renamed from modules/sys_socket-tests.
+ * modules/sys_socket-h-c++-tests: Renamed from
+ modules/sys_socket-c++-tests.
+ * tests/test-sys_socket-h.c: Renamed from tests/test-sys_socket.c.
+ * tests/test-sys_socket-h-c++.cc: Renamed from
+ tests/test-sys_socket-c++.cc.
+ * doc/posix-headers/sys_socket.texi: Update.
+ * modules/* (Depends-on): Update.
+ * modules/sys_socket: New file.
+
2024-12-27 Bruno Haible <bruno@clisp.org>
Rename module sys_shm to sys_shm-h.
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_socket.h.html}
-Gnulib module: sys_socket
-@mindex sys_socket
+Gnulib module: sys_socket-h
+@mindex sys_socket-h
Portability problems fixed by Gnulib:
@itemize
Depends-on:
extensions
-sys_socket
+sys_socket-h
socketlib
errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
m4/accept4.m4
Depends-on:
-sys_socket
+sys_socket-h
accept
fcntl-h
binary-io
snippet/arg-nonnull
snippet/c++defs
snippet/warn-on-use
-sys_socket
+sys_socket-h
configure.ac:
gl_ARPA_INET_H
lib/w32sock.h
Depends-on:
-sys_socket
+sys_socket-h
socketlib
errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
lib/w32sock.h
Depends-on:
-sys_socket
+sys_socket-h
socketlib
errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
fseeko [test $USE_AF_ALG = 1]
ftello [test $USE_AF_ALG = 1]
fstat [test $USE_AF_ALG = 1]
-sys_socket
+sys_socket-h
sys_stat
configure.ac:
Depends-on:
netdb-h
-sys_socket
+sys_socket-h
extensions
gettext-h [test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1 || test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1]
gnulib-i18n [test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1 || test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1]
unistd
extensions
netdb-h [test $HAVE_DECL_GETDOMAINNAME = 0 || test $REPLACE_GETDOMAINNAME = 1]
-sys_socket [test $HAVE_DECL_GETDOMAINNAME = 0 || test $REPLACE_GETDOMAINNAME = 1]
+sys_socket-h [test $HAVE_DECL_GETDOMAINNAME = 0 || test $REPLACE_GETDOMAINNAME = 1]
configure.ac:
gl_FUNC_GETDOMAINNAME
Depends-on:
unistd
-sys_socket [test $HAVE_GETHOSTNAME = 0]
+sys_socket-h [test $HAVE_GETHOSTNAME = 0]
errno-h [test $HAVE_GETHOSTNAME = 0]
sockets [test $HAVE_GETHOSTNAME = 0]
msvc-nothrow [test $HAVE_GETHOSTNAME = 0]
Depends-on:
extensions
-sys_socket
+sys_socket-h
socketlib
errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
Depends-on:
extensions
-sys_socket
+sys_socket-h
socketlib
errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
Depends-on:
extensions
-sys_socket
+sys_socket-h
socketlib
sys_time [test "$ac_cv_header_winsock2_h" = yes]
errno-h [test "$ac_cv_header_winsock2_h" = yes]
m4/hostent.m4
Depends-on:
-sys_socket
+sys_socket-h
configure.ac:
gl_HOSTENT
Depends-on:
arpa_inet-h
extensions
-sys_socket [test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1]
+sys_socket-h [test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1]
errno-h [test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1]
netinet_in-h [test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1]
Depends-on:
netinet_in-h
-sys_socket
+sys_socket-h
configure.ac:
AC_C_BIGENDIAN
arpa_inet-h
extensions
c-ctype [test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1]
-sys_socket [test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1]
+sys_socket-h [test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1]
errno-h [test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1]
netinet_in-h [test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1]
Depends-on:
netinet_in-h
-sys_socket
+sys_socket-h
configure.ac:
AC_C_BIGENDIAN
Depends-on:
sys_ioctl-h
-sys_socket [test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1]
+sys_socket-h [test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1]
errno-h [test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1]
fd-hook [test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1]
msvc-nothrow [test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1]
lib/w32sock.h
Depends-on:
-sys_socket
+sys_socket-h
socketlib
errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
Depends-on:
gen-header
include_next
-sys_socket
+sys_socket-h
configure.ac:
gl_HEADER_NET_IF
snippet/arg-nonnull
snippet/c++defs
snippet/warn-on-use
-sys_socket
+sys_socket-h
configure.ac:
gl_NETDB_H
Depends-on:
gen-header
include_next
-sys_socket
+sys_socket-h
configure.ac:
gl_HEADER_NETINET_IN
msvc-nothrow
stdbool-h
stdio-h
-sys_socket
+sys_socket-h
unistd
configure.ac:
Depends-on:
stdbool-h
unistd
-sys_socket
+sys_socket-h
nonblocking
wait-process
environ
Depends-on:
cloexec
-sys_socket
+sys_socket-h
socketlib
configure.ac:
select [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
sockets [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
sys_select-h [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
-sys_socket [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
+sys_socket-h [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
sys_time [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
errno-h [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
msvc-nothrow [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
Depends-on:
stdbool-h
-sys_socket
+sys_socket-h
netinet_in-h
arpa_inet-h
sys_ioctl-h
sys_random-h
sys_resource-h
sys_select-h
-sys_socket
+sys_socket-h
sys_stat
sys_time
sys_times
lib/w32sock.h
Depends-on:
-sys_socket
+sys_socket-h
socketlib
errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
Depends-on:
extensions
-sys_socket
+sys_socket-h
socketlib
errno-h [test "$ac_cv_header_winsock2_h" = yes]
getpeername [test "$ac_cv_header_winsock2_h" = yes]
Depends-on:
stdbool-h
-sys_socket
+sys_socket-h
netinet_in-h
arpa_inet-h
unistd
lib/w32sock.h
Depends-on:
-sys_socket
+sys_socket-h
socketlib
errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
lib/w32sock.h
Depends-on:
-sys_socket
+sys_socket-h
socketlib
errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
m4/servent.m4
Depends-on:
-sys_socket
+sys_socket-h
configure.ac:
gl_SERVENT
lib/w32sock.h
Depends-on:
-sys_socket
+sys_socket-h
socketlib
sys_time [test "$ac_cv_header_winsock2_h" = yes]
errno-h [test "$ac_cv_header_winsock2_h" = yes]
lib/w32sock.h
Depends-on:
-sys_socket
+sys_socket-h
socketlib
errno-h [test "$ac_cv_header_winsock2_h" = yes]
msvc-nothrow [test "$ac_cv_header_winsock2_h" = yes]
lib/w32sock.h
Depends-on:
-sys_socket
+sys_socket-h
socketlib
errno-h [test "$ac_cv_header_winsock2_h" = yes]
sockets [test "$ac_cv_header_winsock2_h" = yes]
Depends-on:
socketlib
-sys_socket
+sys_socket-h
fd-hook
msvc-nothrow
Description:
A POSIX-like <sys/socket.h>.
+Status:
+deprecated
+
+Notice:
+This module is deprecated. Use the module 'sys_socket-h' instead.
+
Files:
-lib/sys_socket.c
-lib/sys_socket.in.h
-m4/sys_socket_h.m4
-m4/sockpfaf.m4
Depends-on:
-alignasof
-errno-h
-extern-inline
-gen-header
-include_next
-snippet/arg-nonnull
-snippet/c++defs
-snippet/warn-on-use
-socklen
-ssize_t
-sys_uio
+sys_socket-h
configure.ac:
-gl_SYS_SOCKET_H
-gl_SYS_SOCKET_H_REQUIRE_DEFAULTS
-AC_PROG_MKDIR_P
Makefile.am:
-BUILT_SOURCES += sys/socket.h
-lib_SOURCES += sys_socket.c
-
-# We need the following in order to create <sys/socket.h> when the system
-# doesn't have one that works with the given compiler.
-sys/socket.h: sys_socket.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
- $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys'
- $(AM_V_at)$(SED_HEADER_STDOUT) \
- -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
- -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
- -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
- -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
- -e 's|@''NEXT_SYS_SOCKET_H''@|$(NEXT_SYS_SOCKET_H)|g' \
- -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \
- -e 's/@''GNULIB_CLOSE''@/$(GNULIB_CLOSE)/g' \
- -e 's/@''GNULIB_SOCKET''@/$(GNULIB_SOCKET)/g' \
- -e 's/@''GNULIB_CONNECT''@/$(GNULIB_CONNECT)/g' \
- -e 's/@''GNULIB_ACCEPT''@/$(GNULIB_ACCEPT)/g' \
- -e 's/@''GNULIB_BIND''@/$(GNULIB_BIND)/g' \
- -e 's/@''GNULIB_GETPEERNAME''@/$(GNULIB_GETPEERNAME)/g' \
- -e 's/@''GNULIB_GETSOCKNAME''@/$(GNULIB_GETSOCKNAME)/g' \
- -e 's/@''GNULIB_GETSOCKOPT''@/$(GNULIB_GETSOCKOPT)/g' \
- -e 's/@''GNULIB_LISTEN''@/$(GNULIB_LISTEN)/g' \
- -e 's/@''GNULIB_RECV''@/$(GNULIB_RECV)/g' \
- -e 's/@''GNULIB_SEND''@/$(GNULIB_SEND)/g' \
- -e 's/@''GNULIB_RECVFROM''@/$(GNULIB_RECVFROM)/g' \
- -e 's/@''GNULIB_SENDTO''@/$(GNULIB_SENDTO)/g' \
- -e 's/@''GNULIB_SETSOCKOPT''@/$(GNULIB_SETSOCKOPT)/g' \
- -e 's/@''GNULIB_SHUTDOWN''@/$(GNULIB_SHUTDOWN)/g' \
- -e 's/@''GNULIB_ACCEPT4''@/$(GNULIB_ACCEPT4)/g' \
- -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
- -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
- -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE''@|$(HAVE_STRUCT_SOCKADDR_STORAGE)|g' \
- -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY''@|$(HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY)|g' \
- -e 's|@''HAVE_SA_FAMILY_T''@|$(HAVE_SA_FAMILY_T)|g' \
- -e 's|@''HAVE_ACCEPT4''@|$(HAVE_ACCEPT4)|g' \
- -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
- -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
- -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
- $(srcdir)/sys_socket.in.h > $@-t
- $(AM_V_at)mv $@-t $@
-MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
-MOSTLYCLEANDIRS += sys
Include:
<sys/socket.h>
LGPLv2+
Maintainer:
-Simon Josefsson
+++ /dev/null
-Files:
-tests/test-sys_socket-c++.cc
-tests/signature.h
-
-Status:
-c++-test
-
-Depends-on:
-ansi-c++-opt
-
-configure.ac:
-
-Makefile.am:
-if ANSICXX
-TESTS += test-sys_socket-c++
-check_PROGRAMS += test-sys_socket-c++
-test_sys_socket_c___SOURCES = test-sys_socket-c++.cc
-test_sys_socket_c___LDADD = $(LDADD) $(LIBINTL) $(LIBSOCKET) $(NANOSLEEP_LIB)
-endif
--- /dev/null
+Description:
+A POSIX-like <sys/socket.h>.
+
+Files:
+lib/sys_socket.c
+lib/sys_socket.in.h
+m4/sys_socket_h.m4
+m4/sockpfaf.m4
+
+Depends-on:
+alignasof
+errno-h
+extern-inline
+gen-header
+include_next
+snippet/arg-nonnull
+snippet/c++defs
+snippet/warn-on-use
+socklen
+ssize_t
+sys_uio
+
+configure.ac:
+gl_SYS_SOCKET_H
+gl_SYS_SOCKET_H_REQUIRE_DEFAULTS
+AC_PROG_MKDIR_P
+
+Makefile.am:
+BUILT_SOURCES += sys/socket.h
+lib_SOURCES += sys_socket.c
+
+# We need the following in order to create <sys/socket.h> when the system
+# doesn't have one that works with the given compiler.
+sys/socket.h: sys_socket.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
+ $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys'
+ $(AM_V_at)$(SED_HEADER_STDOUT) \
+ -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
+ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
+ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
+ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
+ -e 's|@''NEXT_SYS_SOCKET_H''@|$(NEXT_SYS_SOCKET_H)|g' \
+ -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \
+ -e 's/@''GNULIB_CLOSE''@/$(GNULIB_CLOSE)/g' \
+ -e 's/@''GNULIB_SOCKET''@/$(GNULIB_SOCKET)/g' \
+ -e 's/@''GNULIB_CONNECT''@/$(GNULIB_CONNECT)/g' \
+ -e 's/@''GNULIB_ACCEPT''@/$(GNULIB_ACCEPT)/g' \
+ -e 's/@''GNULIB_BIND''@/$(GNULIB_BIND)/g' \
+ -e 's/@''GNULIB_GETPEERNAME''@/$(GNULIB_GETPEERNAME)/g' \
+ -e 's/@''GNULIB_GETSOCKNAME''@/$(GNULIB_GETSOCKNAME)/g' \
+ -e 's/@''GNULIB_GETSOCKOPT''@/$(GNULIB_GETSOCKOPT)/g' \
+ -e 's/@''GNULIB_LISTEN''@/$(GNULIB_LISTEN)/g' \
+ -e 's/@''GNULIB_RECV''@/$(GNULIB_RECV)/g' \
+ -e 's/@''GNULIB_SEND''@/$(GNULIB_SEND)/g' \
+ -e 's/@''GNULIB_RECVFROM''@/$(GNULIB_RECVFROM)/g' \
+ -e 's/@''GNULIB_SENDTO''@/$(GNULIB_SENDTO)/g' \
+ -e 's/@''GNULIB_SETSOCKOPT''@/$(GNULIB_SETSOCKOPT)/g' \
+ -e 's/@''GNULIB_SHUTDOWN''@/$(GNULIB_SHUTDOWN)/g' \
+ -e 's/@''GNULIB_ACCEPT4''@/$(GNULIB_ACCEPT4)/g' \
+ -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
+ -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
+ -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE''@|$(HAVE_STRUCT_SOCKADDR_STORAGE)|g' \
+ -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY''@|$(HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY)|g' \
+ -e 's|@''HAVE_SA_FAMILY_T''@|$(HAVE_SA_FAMILY_T)|g' \
+ -e 's|@''HAVE_ACCEPT4''@|$(HAVE_ACCEPT4)|g' \
+ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
+ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
+ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
+ $(srcdir)/sys_socket.in.h > $@-t
+ $(AM_V_at)mv $@-t $@
+MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
+MOSTLYCLEANDIRS += sys
+
+Include:
+<sys/socket.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+Simon Josefsson
--- /dev/null
+Files:
+tests/test-sys_socket-h-c++.cc
+tests/signature.h
+
+Status:
+c++-test
+
+Depends-on:
+ansi-c++-opt
+
+configure.ac:
+
+Makefile.am:
+if ANSICXX
+TESTS += test-sys_socket-h-c++
+check_PROGRAMS += test-sys_socket-h-c++
+test_sys_socket_h_c___SOURCES = test-sys_socket-h-c++.cc
+test_sys_socket_h_c___LDADD = $(LDADD) $(LIBINTL) $(LIBSOCKET) $(NANOSLEEP_LIB)
+endif
Files:
-tests/test-sys_socket.c
+tests/test-sys_socket-h.c
Depends-on:
assert-h
intprops
-sys_socket-c++-tests
+sys_socket-h-c++-tests
configure.ac:
AC_CHECK_FUNCS_ONCE([shutdown])
gl_SOCKET_FAMILY_UNIX
Makefile.am:
-TESTS += test-sys_socket
-check_PROGRAMS += test-sys_socket
+TESTS += test-sys_socket-h
+check_PROGRAMS += test-sys_socket-h
Depends-on:
gen-header
include_next
-sys_socket
+sys_socket-h
configure.ac:
gl_SYS_UN_H