[regression] F_DUPFD_CLOEXEC breakage fix

2012-10-08 Thread Al Viro
On Mon, Oct 08, 2012 at 10:53:25PM +0100, Richard W.M. Jones wrote: > On Mon, Oct 08, 2012 at 10:50:30PM +0100, Richard W.M. Jones wrote: > [.. discussion on gnulib test-cloexec test snipped ..] > > I'm suspicious this is a kernel bug: > > > > creat("test-cloexec.tmp", 0600) = 3 > > fcntl(

Re: test-cloexec.c:97: assertion failed

2012-10-08 Thread Eric Blake
On 10/08/2012 03:53 PM, Richard W.M. Jones wrote: > On Mon, Oct 08, 2012 at 10:50:30PM +0100, Richard W.M. Jones wrote: > [.. discussion on gnulib test-cloexec test snipped ..] >> I'm suspicious this is a kernel bug: >> >> creat("test-cloexec.tmp", 0600) = 3 >> fcntl(3, F_GETFD)

Re: test-cloexec.c:97: assertion failed

2012-10-08 Thread Richard W.M. Jones
On Mon, Oct 08, 2012 at 10:50:30PM +0100, Richard W.M. Jones wrote: [.. discussion on gnulib test-cloexec test snipped ..] > I'm suspicious this is a kernel bug: > > creat("test-cloexec.tmp", 0600) = 3 > fcntl(3, F_GETFD) = 0 > fcntl(3, F_GETFD)

Re: test-cloexec.c:97: assertion failed

2012-10-08 Thread Richard W.M. Jones
On Mon, Oct 08, 2012 at 07:53:26PM +0200, Jim Meyering wrote: > Richard W.M. Jones wrote: > > Turning off coredumps reveals a load more problems. I wonder if the > > latest glibc in Fedora Rawhide is broken? > > > > test-dup2.c:173: assertion failed > > # ASSERT (!is_inheritable (fd + 1)); > > >

Re: make gethrxtime c++ safe

2012-10-08 Thread Paul Eggert
On 10/08/2012 02:02 PM, Alexandre Duret-Lutz wrote: > * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C". Thanks, I pushed that.

make gethrxtime c++ safe

2012-10-08 Thread Alexandre Duret-Lutz
Hi, I just ran into this problem while attempting to use gethrxtime.h in a C++ project. -- Alexandre Duret-Lutz 0001-gethrxtime-make-C-safe.patch Description: Binary data

Re: test-cloexec.c:97: assertion failed

2012-10-08 Thread Jim Meyering
Richard W.M. Jones wrote: > Turning off coredumps reveals a load more problems. I wonder if the > latest glibc in Fedora Rawhide is broken? > > test-dup2.c:173: assertion failed > # ASSERT (!is_inheritable (fd + 1)); > > test-dup3.c:108: assertion failed > # ASSERT (dup3 (fd, fd, o_flags) =

Re: test-cloexec.c:97: assertion failed

2012-10-08 Thread Richard W.M. Jones
Turning off coredumps reveals a load more problems. I wonder if the latest glibc in Fedora Rawhide is broken? test-dup2.c:173: assertion failed # ASSERT (!is_inheritable (fd + 1)); test-dup3.c:108: assertion failed # ASSERT (dup3 (fd, fd, o_flags) == -1); test-fcntl.c:291: assertion fai

test-cloexec.c:97: assertion failed

2012-10-08 Thread Richard W.M. Jones
With Linux 3.7.0 I'm seeing: make[4]: Entering directory `/home/rjones/d/libguestfs/gnulib/tests' PASS: test-accept PASS: test-accept4 PASS: test-alloca-opt PASS: test-argmatch PASS: test-arpa_inet PASS: test-binary-io.sh PASS: test-bind PASS: test-bitrotate PASS: test-btowc1.sh PASS: test-btowc2