bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 0/3] passfd cleanups


From: Eric Blake
Subject: [PATCH 0/3] passfd cleanups
Date: Thu, 21 Apr 2011 14:26:44 -0600

passfd refused to compile on mingw - it was referencing <sys/uio.h>,
struct msghdr, sendmsg, and recvmsg, none of which exist.  And once
those were fixed, the test still failed to compile because mingw
also lacks socketpair.

While we may eventually be able to provide decent sendmsg and recvmsg
workarounds, or even emulate an AF_UNIX socketpair via an IPv4/v6
connection on localhost with very structured messages, those are
future additions; in the meantime, the best we can do is ensure that
compilation completes even though sendfd/recvfd are still unusable.

And while I was at it, this is a GNU project, so providing free
advertising for BSD in config.h seems a bit counterproductive to
me; I trimmed quite a bit of configure code while cleaning that up.

Eric Blake (3):
  sys_uio: new module
  passfd: allow compilation on mingw
  passfd: speed up configure and drop unused code

 ChangeLog                      |   35 ++++++++++++
 MODULES.html.sh                |    1 +
 doc/posix-headers/sys_uio.texi |    8 ++--
 lib/passfd.c                   |   47 +++++++++++------
 lib/sys_socket.in.h            |   14 +++++-
 lib/sys_uio.in.h               |   49 +++++++++++++++++
 m4/afunix.m4                   |  116 ----------------------------------------
 m4/passfd.m4                   |   23 ++++++++
 m4/sys_uio_h.m4                |   31 +++++++++++
 modules/passfd                 |    6 +--
 modules/passfd-tests           |    3 +-
 modules/sys_socket             |    1 +
 modules/sys_uio                |   42 ++++++++++++++
 modules/sys_uio-tests          |   10 ++++
 tests/test-passfd.c            |   19 ++++++-
 tests/test-sys_socket.c        |   14 +++--
 tests/test-sys_uio.c           |   32 +++++++++++
 17 files changed, 302 insertions(+), 149 deletions(-)
 create mode 100644 lib/sys_uio.in.h
 delete mode 100644 m4/afunix.m4
 create mode 100644 m4/passfd.m4
 create mode 100644 m4/sys_uio_h.m4
 create mode 100644 modules/sys_uio
 create mode 100644 modules/sys_uio-tests
 create mode 100644 tests/test-sys_uio.c

-- 
1.7.4.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]