Re: [PATCH] Move more flags to lib/fcntl.in.h

2009-08-22 Thread Bruno Haible
Eric Blake asked: > > +/* Fix up the FD_* macros. */ > > + > > +#ifndef FD_CLOEXEC > > +# define FD_CLOEXEC 1 > > +#endif > > Is mingw the only known platform that lacks this? Yes. And on all Unix platforms, FD_CLOEXEC has the value 1. Bruno

Re: [PATCH] Move more flags to lib/fcntl.in.h

2009-08-20 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Paolo Bonzini on 8/20/2009 2:27 AM: > While the discussion proceeds, what about this very tiny preliminary > step? > > Paolo > > 2009-08-20 Paolo Bonzini > > * lib/cloexec.c: Do not define FD_CLOEXEC here. > * lib/popen-s

[PATCH] Move more flags to lib/fcntl.in.h

2009-08-20 Thread Paolo Bonzini
While the discussion proceeds, what about this very tiny preliminary step? Paolo 2009-08-20 Paolo Bonzini * lib/cloexec.c: Do not define FD_CLOEXEC here. * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here. * lib/fcntl.in.h: Do both things here. --- Change