annotate modules/sys_socket @ 14700:6758fa38915e topic/libposix

manual merge
author Bruce Korb <bkorb@gnu.org>
date Fri, 06 May 2011 08:15:59 -0700
parents 8636d98120a9 2a40136b85ae
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6536
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
1 Description:
9907
be905220886f Override <sys/socket.h> when it exists but is incomplete.
Bruno Haible <bruno@clisp.org>
parents: 9266
diff changeset
2 A POSIX-like <sys/socket.h>.
6536
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
3
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
4 Files:
9266
2e4b4a414ab5 Rename sys_socket_.h to sys_socket.in.h.
Bruno Haible <bruno@clisp.org>
parents: 9102
diff changeset
5 lib/sys_socket.in.h
6536
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
6 m4/sys_socket_h.m4
6929
7a1f12aa78c3 2006-07-06 Simon Josefsson <jas@extundo.com>
Simon Josefsson <simon@josefsson.org>
parents: 6862
diff changeset
7 m4/sockpfaf.m4
6536
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
8
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
9 Depends-on:
12766
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12536
diff changeset
10 alignof
12422
f7842310a565 New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents: 12410
diff changeset
11 arg-nonnull
12945
3df573edd305 sys_socket: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
12 c++defs
10593
659d4e037681 Tiny tweaks.
Bruno Haible <bruno@clisp.org>
parents: 10466
diff changeset
13 errno
12766
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12536
diff changeset
14 include_next
13588
a17068cb741d sys_socket, netdb: Ensure socklen_t gets defined.
Bruno Haible <bruno@clisp.org>
parents: 12945
diff changeset
15 socklen
14599
2a40136b85ae passfd: allow compilation on mingw
Eric Blake <eblake@redhat.com>
parents: 14527
diff changeset
16 sys_uio
12766
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12536
diff changeset
17 warn-on-use
6536
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
18
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
19 configure.ac:
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
20 gl_HEADER_SYS_SOCKET
7900
2843623a4ec4 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
Jim Meyering <jim@meyering.net>
parents: 7497
diff changeset
21 AC_PROG_MKDIR_P
6536
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
22
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
23 Makefile.am:
14108
873a3371d1d2 spell the pkginclude directory correctly.
Bruce Korb <bkorb@gnu.org>
parents: 14107
diff changeset
24 nobase_nodist_pkginclude_HEADERS += sys/socket.h
14102
f49fe7e6d028 add _HEADERS primaries to Makefile.am snippets for installable headers
Gary V. Vaughan <gary@gnu.org>
parents: 13761
diff changeset
25
12536
cd64e80f94e4 link-warning: always build headers with link warnings
Eric Blake <ebb9@byu.net>
parents: 12422
diff changeset
26 BUILT_SOURCES += sys/socket.h
6536
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
27
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
28 # We need the following in order to create <sys/socket.h> when the system
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
29 # doesn't have one that works with the given compiler.
14527
049942251f65 Ensure to rebuild generated .h files when config.status has changed.
Bruno Haible <bruno@clisp.org>
parents: 14273
diff changeset
30 sys/socket.h: sys_socket.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
11926
79c91e5cce7a Use $(MKDIR_P) instead of @MKDIR_P@.
Simon Josefsson <simon@josefsson.org>
parents: 11898
diff changeset
31 $(AM_V_at)$(MKDIR_P) sys
11868
67c2b22aff08 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents: 11858
diff changeset
32 $(AM_V_GEN)rm -f $@-t $@ && \
7421
8bace4b08db5 Mark generated files as "DO NOT EDIT".
Bruno Haible <bruno@clisp.org>
parents: 7274
diff changeset
33 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
10375
f96e845fc36d Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents: 9907
diff changeset
34 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
f96e845fc36d Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents: 9907
diff changeset
35 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
13761
a19ace3ba849 Avoid line length limitation from HP NonStop system header files.
Bruno Haible <bruno@clisp.org>
parents: 13588
diff changeset
36 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
8998
442682a45bcd * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
Paul Eggert <eggert@cs.ucla.edu>
parents: 8825
diff changeset
37 -e 's|@''NEXT_SYS_SOCKET_H''@|$(NEXT_SYS_SOCKET_H)|g' \
8377
a8e9ed7caeae Make <sys/socket.h> self-contained, so that it can be included without
Bruno Haible <bruno@clisp.org>
parents: 7925
diff changeset
38 -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \
10610
9202c6340cce Combine the two replacements of 'close'.
Paolo Bonzini <bonzini@gnu.org>
parents: 10594
diff changeset
39 -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \
10594
43282f926709 New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents: 10593
diff changeset
40 -e 's|@''GNULIB_SOCKET''@|$(GNULIB_SOCKET)|g' \
43282f926709 New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents: 10593
diff changeset
41 -e 's|@''GNULIB_CONNECT''@|$(GNULIB_CONNECT)|g' \
43282f926709 New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents: 10593
diff changeset
42 -e 's|@''GNULIB_ACCEPT''@|$(GNULIB_ACCEPT)|g' \
43282f926709 New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents: 10593
diff changeset
43 -e 's|@''GNULIB_BIND''@|$(GNULIB_BIND)|g' \
43282f926709 New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents: 10593
diff changeset
44 -e 's|@''GNULIB_GETPEERNAME''@|$(GNULIB_GETPEERNAME)|g' \
43282f926709 New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents: 10593
diff changeset
45 -e 's|@''GNULIB_GETSOCKNAME''@|$(GNULIB_GETSOCKNAME)|g' \
43282f926709 New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents: 10593
diff changeset
46 -e 's|@''GNULIB_GETSOCKOPT''@|$(GNULIB_GETSOCKOPT)|g' \
43282f926709 New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents: 10593
diff changeset
47 -e 's|@''GNULIB_LISTEN''@|$(GNULIB_LISTEN)|g' \
43282f926709 New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents: 10593
diff changeset
48 -e 's|@''GNULIB_RECV''@|$(GNULIB_RECV)|g' \
10709
5bf357ff2ed3 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
Jim Meyering <meyering@redhat.com>
parents: 10690
diff changeset
49 -e 's|@''GNULIB_SEND''@|$(GNULIB_SEND)|g' \
10594
43282f926709 New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents: 10593
diff changeset
50 -e 's|@''GNULIB_RECVFROM''@|$(GNULIB_RECVFROM)|g' \
43282f926709 New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents: 10593
diff changeset
51 -e 's|@''GNULIB_SENDTO''@|$(GNULIB_SENDTO)|g' \
43282f926709 New modules 'accept', 'bind', 'connect', 'getpeername', 'getsockname', 'getsockopt', 'listen', 'recv', 'recvfrom', 'send', 'sendto', 'setsockopt', 'socket'.
Bruno Haible <bruno@clisp.org>
parents: 10593
diff changeset
52 -e 's|@''GNULIB_SETSOCKOPT''@|$(GNULIB_SETSOCKOPT)|g' \
10624
175cb8a02a3e New module 'shutdown'.
Bruno Haible <bruno@clisp.org>
parents: 10616
diff changeset
53 -e 's|@''GNULIB_SHUTDOWN''@|$(GNULIB_SHUTDOWN)|g' \
11898
90fb3f330caf New module 'accept4'.
Bruno Haible <bruno@clisp.org>
parents: 11868
diff changeset
54 -e 's|@''GNULIB_ACCEPT4''@|$(GNULIB_ACCEPT4)|g' \
8377
a8e9ed7caeae Make <sys/socket.h> self-contained, so that it can be included without
Bruno Haible <bruno@clisp.org>
parents: 7925
diff changeset
55 -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
a8e9ed7caeae Make <sys/socket.h> self-contained, so that it can be included without
Bruno Haible <bruno@clisp.org>
parents: 7925
diff changeset
56 -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
11555
7612308943f7 sys_socket: Define sockaddr_storage.
Simon Josefsson <simon@josefsson.org>
parents: 11426
diff changeset
57 -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE''@|$(HAVE_STRUCT_SOCKADDR_STORAGE)|g' \
13910
d2ab80f79a05 sys_socket: Ensure ss_family field on AIX.
Bruno Haible <bruno@clisp.org>
parents: 13761
diff changeset
58 -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY''@|$(HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY)|g' \
11577
40afcbcc19ed sys_socket: MinGW and IRIX does not have sa_family_t type.
Simon Josefsson <simon@josefsson.org>
parents: 11555
diff changeset
59 -e 's|@''HAVE_SA_FAMILY_T''@|$(HAVE_SA_FAMILY_T)|g' \
11898
90fb3f330caf New module 'accept4'.
Bruno Haible <bruno@clisp.org>
parents: 11868
diff changeset
60 -e 's|@''HAVE_ACCEPT4''@|$(HAVE_ACCEPT4)|g' \
12945
3df573edd305 sys_socket: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
61 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
12422
f7842310a565 New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents: 12410
diff changeset
62 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
12766
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12536
diff changeset
63 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
9266
2e4b4a414ab5 Rename sys_socket_.h to sys_socket.in.h.
Bruno Haible <bruno@clisp.org>
parents: 9102
diff changeset
64 < $(srcdir)/sys_socket.in.h; \
11868
67c2b22aff08 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents: 11858
diff changeset
65 } > $@-t && \
7274
9ff9e0f3d681 Don't make generated files read-only. That would bother too many
Jim Meyering <jim@meyering.net>
parents: 7268
diff changeset
66 mv -f $@-t $@
6536
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
67 MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
6862
ba1b5722df42 Invent MOSTLYCLEANDIRS.
Bruno Haible <bruno@clisp.org>
parents: 6839
diff changeset
68 MOSTLYCLEANDIRS += sys
6536
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
69
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
70 Include:
12008
18ea6ab4e81d maint: make Include sections of modules consistent
Eric Blake <ebb9@byu.net>
parents: 11926
diff changeset
71 <sys/socket.h>
6536
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
72
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
73 License:
9102
404dc8725caf Use the synonymous term LGPLv2.
Bruno Haible <bruno@clisp.org>
parents: 8998
diff changeset
74 LGPLv2+
6536
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
75
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
76 Maintainer:
169ab032c734 Add sys_socket module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
77 Simon Josefsson