New module 'shutdown'.
[gnulib.git] / modules / sys_socket
1 Description:
2 A POSIX-like <sys/socket.h>.
3
4 Files:
5 lib/sys_socket.in.h
6 lib/winsock.c
7 m4/sys_socket_h.m4
8 m4/sockpfaf.m4
9 m4/unistd_h.m4
10 m4/sys_ioctl_h.m4
11
12 Depends-on:
13 include_next
14 link-warning
15 errno
16
17 configure.ac:
18 gl_HEADER_SYS_SOCKET
19 gl_MODULE_INDICATOR([sys_socket])
20 AC_PROG_MKDIR_P
21
22 Makefile.am:
23 BUILT_SOURCES += $(SYS_SOCKET_H)
24
25 # We need the following in order to create <sys/socket.h> when the system
26 # doesn't have one that works with the given compiler.
27 sys/socket.h: sys_socket.in.h
28         @MKDIR_P@ sys
29         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
30           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
31               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
32               -e 's|@''NEXT_SYS_SOCKET_H''@|$(NEXT_SYS_SOCKET_H)|g' \
33               -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \
34               -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \
35               -e 's|@''GNULIB_SOCKET''@|$(GNULIB_SOCKET)|g' \
36               -e 's|@''GNULIB_CONNECT''@|$(GNULIB_CONNECT)|g' \
37               -e 's|@''GNULIB_ACCEPT''@|$(GNULIB_ACCEPT)|g' \
38               -e 's|@''GNULIB_BIND''@|$(GNULIB_BIND)|g' \
39               -e 's|@''GNULIB_GETPEERNAME''@|$(GNULIB_GETPEERNAME)|g' \
40               -e 's|@''GNULIB_GETSOCKNAME''@|$(GNULIB_GETSOCKNAME)|g' \
41               -e 's|@''GNULIB_GETSOCKOPT''@|$(GNULIB_GETSOCKOPT)|g' \
42               -e 's|@''GNULIB_LISTEN''@|$(GNULIB_LISTEN)|g' \
43               -e 's|@''GNULIB_RECV''@|$(GNULIB_RECV)|g' \
44               -e 's|@''GNULIB_SEND''@|$()GNULIB_SEND|g' \
45               -e 's|@''GNULIB_RECVFROM''@|$(GNULIB_RECVFROM)|g' \
46               -e 's|@''GNULIB_SENDTO''@|$(GNULIB_SENDTO)|g' \
47               -e 's|@''GNULIB_SETSOCKOPT''@|$(GNULIB_SETSOCKOPT)|g' \
48               -e 's|@''GNULIB_SHUTDOWN''@|$(GNULIB_SHUTDOWN)|g' \
49               -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
50               -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
51               -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
52               < $(srcdir)/sys_socket.in.h; \
53         } > $@-t
54         mv -f $@-t $@
55 MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
56 MOSTLYCLEANDIRS += sys
57
58 Include:
59 #include <sys/socket.h>
60
61 License:
62 LGPLv2+
63
64 Maintainer:
65 Simon Josefsson