Jim Meyering
1602f0afed
maint: update all copyright year number ranges
...
Run "make update-copyright".
2012-01-01 10:04:58 +01:00
Bruno Haible
7be1c0f011
sys_socket tests: Fix recent mistake.
...
* tests/test-sys_socket.c (t1): Avoid collision of identifiers.
2011-09-17 17:40:17 +02:00
Bruno Haible
92a1bc6ccf
Support for MSVC compiler: Ensure ssize_t gets defined.
...
* doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
* doc/posix-headers/stdio.texi: Likewise.
* modules/stdio (Depends-on): Add ssize_t.
* modules/sys_socket (Depends-on): Likewise.
* modules/sys_types (Depends-on): Likewise.
* modules/sys_uio (Depends-on): Likewise.
* modules/unistd (Depends-on): Likewise.
* tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
* tests/test-sys_types.c: Check that ssize_t is defined.
2011-09-15 18:00:32 +02:00
Eric Blake
06d76f63c6
passfd: allow compilation on mingw
...
The passfd module now skips on mingw, rather than failing to compile.
It may be nice to add a sendmsg and recvmsg module in the future,
but for now passfd is the only client that cares.
* modules/sys_socket (Depends-on): Add sys_uio.
* lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
iovec and a minimal struct msghdr.
* tests/test-sys_socket.c (main): Enhance test.
* m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
* lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
guaranteed to provide what we need.
(sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
* modules/passfd-tests (Depends-on): Add sys_wait.
* tests/test-passfd.c (main): Skip test on mingw, for now.
* doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
partial 'struct msghdr' implementation.
Signed-off-by: Eric Blake <eblake@redhat.com >
2011-04-21 14:35:06 -06:00
Jim Meyering
d60f3b0c6b
maint: update almost all copyright ranges to include 2011
...
Run the new "make update-copyright" rule.
2011-01-01 22:12:59 +01:00
Bruno Haible
ebf441cb88
sys_socket, netdb: Ensure socklen_t gets defined.
2010-08-28 10:16:34 +02:00
Jim Meyering
bfbd822767
test-sys_socket: mark variables as used more readably
...
* tests/test-sys_socket.c (main): Mark otherwise unused variables
as "used" explicitly via (void) statement casts. This is more
readable than using them in an artificial return expression.
Suggestion from Bruno Haible.
2010-06-11 22:09:43 +02:00
Jim Meyering
ef5acf2027
test-sys_socket: avoid set-but-not-used warnings from gcc
...
* tests/test-sys_socket.c (main): Use "i" and "x", in order to
avoid warning about set-but-not-used variables.
2010-06-11 11:26:31 +02:00
Jim Meyering
b2e2010c7c
update nearly all FSF copyright year lists to include 2010
...
Use the same procedure as for 2009, outlined in
http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
2010-01-01 10:42:00 +01:00
Simon Josefsson
1acdd69fff
test-sys_socket: Fix compilation warning.
2009-11-05 13:54:32 +01:00
Eric Blake
b886ebac9e
tests: avoid some compiler warnings
...
Mostly Simon's modules; warnings reported by gcc 4.3.4 on coreutils.
* tests/test-getaddrinfo.c (simple): Mark static, and allow string
literals.
* tests/test-memchr.c (main): Avoid type mismatch.
* tests/test-arpa_inet.c (main): Avoid unused parameters.
* tests/test-base64.c (main): Likewise.
* tests/test-getdelim.c (main): Likewise.
* tests/test-gethostname.c (main): Likewise.
* tests/test-getline.c (main): Likewise.
* tests/test-netinet_in.c (main): Likewise.
* tests/test-select.c (open_server_socket, main): Likewise.
* tests/test-select-stdin.c (main): Likewise.
* tests/test-sockets.c (main): Likewise.
* tests/test-strsignal.c (main): Likewise.
* tests/test-sys_select.c (main): Likewise.
* tests/test-sys_socket.c (main): Likewise.
* tests/test-u64.c (main): Likewise.
* tests/test-xfprintf-posix.c (main): Likewise.
* tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
Signed-off-by: Eric Blake <ebb9@byu.net >
2009-10-29 18:39:29 -06:00
Simon Josefsson
a7b3227b59
sys_socket: MinGW and IRIX does not have sa_family_t type.
...
Reported by "Tom G. Christensen" <tgc@jupiterrise.com >.
2009-05-20 08:52:49 +02:00
Simon Josefsson
014f60069c
sys_socket: Define sockaddr_storage.
2009-05-08 16:21:34 +02:00
Bruno Haible
57fdfd3f8e
Change copyright notice from GPLv2+ to GPLv3+.
2007-10-07 19:14:58 +02:00
Bruno Haible
641f40488e
Fix a compilation error on BeOS.
2007-03-23 02:08:42 +00:00
Bruno Haible
16f2e82ceb
Tests for module 'sys_socket'.
2007-02-18 04:17:33 +00:00