[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
passfd on more platforms
From: |
Bruno Haible |
Subject: |
passfd on more platforms |
Date: |
Mon, 14 Mar 2011 00:38:08 +0100 |
User-agent: |
KMail/1.9.9 |
Here's the result of testing passfd:
Linux OK BSD4.4 way, MSG_CMSG_CLOEXEC
FreeBSD OK BSD4.4 way
OpenBSD OK BSD4.4 way
NetBSD FAIL BSD4.4 way
AIX OK BSD4.4 way
HP-UX OK BSD4.3 way
IRIX OK BSD4.3 way
OSF/1 OK BSD4.4 way
Solaris OK BSD4.3 way
Cygwin FAIL BSD4.4 way
It is a bit surprising that Solaris 10 says that it doesn't support the
BSD4.4 way. That is because
checking for UNIX domain sockets SCM_RIGHTS that behave in BSD4.4 way... no
because CMSG_SPACE etc. are not declared by <sys/socket.h> by default.
I'm not sure whether gnulib should define _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED,
or _POSIX_C_SOURCE. But's let's leave it as is for now, since the BSD4.3 way
works.
On NetBSD 5.0, the test reports
sendfd: Invalid argument
and then hangs.
On Cygwin, the test fails:
recvfd: Permission denied
FAIL: test-passfd.exe
On mingw, I haven't even tried the module. It first requires
- a 'socketpair' module for the test,
- to rewrite the test to use the 'execute' module instead of fork().
Bruno
--
In memoriam Odette Sansom <http://en.wikipedia.org/wiki/Odette_Hallowes>
- Re: [PATCH 3/4] Add a CLOEXEC recvfd, (continued)
- [PATCH 2/4] sendfd, recvf pass file descriptors along Unix domain sockets, Bastien ROUCARIES, 2011/03/07
- [PATCH 4/4] Add test for passfd, Bastien ROUCARIES, 2011/03/07
- passfd on glibc, Bruno Haible, 2011/03/13
- passfd on OpenBSD, Bruno Haible, 2011/03/13
- passfd on FreeBSD, Bruno Haible, 2011/03/13
- passfd on AIX 5.2, Bruno Haible, 2011/03/13
- passfd on Solaris, Bruno Haible, 2011/03/13
- passfd on more platforms,
Bruno Haible <=
- Re: passfd on more platforms, Eric Blake, 2011/03/14
- Re: passfd on more platforms, Paolo Bonzini, 2011/03/14