Re: make openat declarations consistent

2009-09-06 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bruno Haible on 9/6/2009 3:14 PM: > Additionally, this patch fixes a bug: gl_FUNC_OPENAT did not AC_REQUIRE > gl_OPENAT_DEFAULTS. So it could happen that gl_FUNC_OPENAT gets expanded > before gl_UNISTD_H_DEFAULTS, and then the variable GNU

Re: make openat declarations consistent

2009-09-06 Thread Bruno Haible
Eric Blake wrote: > > OK to apply? > > Yes, please. Applied and pushed. Bruno

Re: make openat declarations consistent

2009-09-06 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bruno Haible on 9/6/2009 3:14 PM: > No, really, all macros needed for constructing the replacement > are supposed to sit in m4/unistd_h.m4. Good argument. > Another plus is that it separates the blocks for different functions in > unist

Re: make openat declarations consistent

2009-09-06 Thread Bruno Haible
Eric Blake wrote: > So we only need the > AC_SUBST (provided by gl_OPENAT_DEFAULTS), not the AC_DEFINE (provided by > gl_MODULE_INDICATOR). Yes, okay to make that change. Done: 2009-09-06 Bruno Haible * modules/openat (configure.ac): Remove unneeded witness. --- modules/openat.orig

Re: make openat declarations consistent

2009-09-06 Thread Bruno Haible
Eric Blake wrote: > --- a/modules/unistd > +++ b/modules/unistd > @@ -4,6 +4,7 @@ A GNU-like . >  Files: >  m4/unistd_h.m4 >  lib/unistd.in.h > +m4/openat.m4 So every package that needs now needs to include a file named openat.m4? It we had gone this route, the generation of would now depend on

Re: make openat declarations consistent

2009-09-06 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bruno Haible on 9/6/2009 2:22 PM: > Eric Blake wrote: >> configure.ac: >> gl_FUNC_OPENAT >> +gl_MODULE_INDICATOR([openat]) > > This is not needed for gnulib: There is no use of GNULIB_OPENAT as a C > preprocessor macro anywhere in lib/,

Re: make openat declarations consistent

2009-09-06 Thread Bruno Haible
Eric Blake wrote: >  configure.ac: >  gl_FUNC_OPENAT > +gl_MODULE_INDICATOR([openat]) This is not needed for gnulib: There is no use of GNULIB_OPENAT as a C preprocessor macro anywhere in lib/, nor in coreutils. So I propose to remove this unneeded witness. Bruno

Re: make openat declarations consistent

2009-09-06 Thread Bruno Haible
I'm adding this doc tweak and indentation fix: 2009-09-06 Bruno Haible * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms. * lib/sys_stat.in.h: Fix preprocessor command indentation. --- doc/posix-headers/fcntl.texi.orig 2009-09-06 21:37:44.0 +0200 +++

Re: make openat declarations consistent

2009-09-03 Thread Eric Blake
Eric Blake byu.net> writes: > > That brings up the lack of an faccessat replacement in gnulib. > > I'll post a module for this shortly. It is feasible for a system to have faccessat but not euidaccess (if they are complying strictly with POSIX 2008), so we might as well add that to our euidac

Re: make openat declarations consistent

2009-09-03 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Jim Meyering on 9/3/2009 6:52 AM: > I'm adjusting it to use faccessat with AT_EACCESS instead. Ouch. Cygwin 1.7 has faccessat but not euidaccess, and it currently has bugs (including no AT_EACCESS support, even though AT_EACCESS is defin

Re: make openat declarations consistent

2009-09-03 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Jim Meyering on 9/3/2009 6:52 AM: > But in the long run, we should provide a replacement function, > as we do for all other *at functions. In the *at family, gnulib is still missing: faccessat linkat mknodat mkfifoat readlinkat renameat

Re: make openat declarations consistent

2009-09-03 Thread Jim Meyering
Eric Blake wrote: > Jim, what do you think of this patch, making it possible to avoid > including "openat.h" if you only use the POSIX 2008 interfaces? That's definitely the right thing to do. Thanks for working on this. I haven't looked at it carefully yet, but already your mention of AT_EACCESS

make openat declarations consistent

2009-09-03 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim, what do you think of this patch, making it possible to avoid including "openat.h" if you only use the POSIX 2008 interfaces? - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -BEGIN PGP SIGNATURE--