Re: dirfd prototype

2009-12-20 Thread Jim Meyering
Eric Blake wrote: > According to Jim Meyering on 12/19/2009 5:46 PM: >>> -extern int dirfd (DIR const *dir) _GL_ARG_NONNULL ((1)); >>> +extern int dirfd (DIR *dir) _GL_ARG_NONNULL ((1)); >> >> Do you know of any dirfd implementation that actually modifies the >> pointed-to buffer? I do not, and c

Re: dirfd prototype

2009-12-19 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Jim Meyering on 12/19/2009 5:46 PM: >> -extern int dirfd (DIR const *dir) _GL_ARG_NONNULL ((1)); >> +extern int dirfd (DIR *dir) _GL_ARG_NONNULL ((1)); > > Do you know of any dirfd implementation that actually modifies the > pointed-to bu

Re: dirfd prototype

2009-12-19 Thread Jim Meyering
Eric Blake wrote: > According to POSIX, dirfd does not take a const argument. I'm applying this: ... > Subject: [PATCH] dirfd: fix prototype > > Fix prototype to match POSIX. > > * lib/dirent.in.h (dirfd): Argument is not const, per POSIX. > * lib/dirfd.c (dirfd): Likewise. ... > -extern int dirfd

dirfd prototype

2009-12-19 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to POSIX, dirfd does not take a const argument. I'm applying this: - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public k