gitsub.sh: For a submodule, merge from the right remote branch.
[gnulib.git] / modules / sys_socket
blob57ea690270d6648c07e091945cd2c66f47590ad2
1 Description:
2 A POSIX-like <sys/socket.h>.
4 Files:
5 lib/sys_socket.c
6 lib/sys_socket.in.h
7 m4/sys_socket_h.m4
8 m4/sockpfaf.m4
10 Depends-on:
11 alignasof
12 errno
13 extern-inline
14 gen-header
15 include_next
16 snippet/arg-nonnull
17 snippet/c++defs
18 snippet/warn-on-use
19 socklen
20 ssize_t
21 sys_uio
23 configure.ac:
24 gl_SYS_SOCKET_H
25 gl_SYS_SOCKET_H_REQUIRE_DEFAULTS
26 AC_PROG_MKDIR_P
28 Makefile.am:
29 BUILT_SOURCES += sys/socket.h
30 lib_SOURCES += sys_socket.c
32 # We need the following in order to create <sys/socket.h> when the system
33 # doesn't have one that works with the given compiler.
34 sys/socket.h: sys_socket.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
35         $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys'
36         $(AM_V_at)$(SED_HEADER_STDOUT) \
37               -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
38               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
39               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
40               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
41               -e 's|@''NEXT_SYS_SOCKET_H''@|$(NEXT_SYS_SOCKET_H)|g' \
42               -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \
43               -e 's/@''GNULIB_CLOSE''@/$(GNULIB_CLOSE)/g' \
44               -e 's/@''GNULIB_SOCKET''@/$(GNULIB_SOCKET)/g' \
45               -e 's/@''GNULIB_CONNECT''@/$(GNULIB_CONNECT)/g' \
46               -e 's/@''GNULIB_ACCEPT''@/$(GNULIB_ACCEPT)/g' \
47               -e 's/@''GNULIB_BIND''@/$(GNULIB_BIND)/g' \
48               -e 's/@''GNULIB_GETPEERNAME''@/$(GNULIB_GETPEERNAME)/g' \
49               -e 's/@''GNULIB_GETSOCKNAME''@/$(GNULIB_GETSOCKNAME)/g' \
50               -e 's/@''GNULIB_GETSOCKOPT''@/$(GNULIB_GETSOCKOPT)/g' \
51               -e 's/@''GNULIB_LISTEN''@/$(GNULIB_LISTEN)/g' \
52               -e 's/@''GNULIB_RECV''@/$(GNULIB_RECV)/g' \
53               -e 's/@''GNULIB_SEND''@/$(GNULIB_SEND)/g' \
54               -e 's/@''GNULIB_RECVFROM''@/$(GNULIB_RECVFROM)/g' \
55               -e 's/@''GNULIB_SENDTO''@/$(GNULIB_SENDTO)/g' \
56               -e 's/@''GNULIB_SETSOCKOPT''@/$(GNULIB_SETSOCKOPT)/g' \
57               -e 's/@''GNULIB_SHUTDOWN''@/$(GNULIB_SHUTDOWN)/g' \
58               -e 's/@''GNULIB_ACCEPT4''@/$(GNULIB_ACCEPT4)/g' \
59               -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
60               -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
61               -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE''@|$(HAVE_STRUCT_SOCKADDR_STORAGE)|g' \
62               -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY''@|$(HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY)|g' \
63               -e 's|@''HAVE_SA_FAMILY_T''@|$(HAVE_SA_FAMILY_T)|g' \
64               -e 's|@''HAVE_ACCEPT4''@|$(HAVE_ACCEPT4)|g' \
65               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
66               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
67               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
68               $(srcdir)/sys_socket.in.h > $@-t
69         $(AM_V_at)mv $@-t $@
70 MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
71 MOSTLYCLEANDIRS += sys
73 Include:
74 <sys/socket.h>
76 License:
77 LGPLv2+
79 Maintainer:
80 Simon Josefsson