Re: [PATCH] Make errno.h define EILSEQ on old LynxOS systems.

2012-11-05 Thread Paul Eggert
On 11/05/2012 02:59 PM, Joel Brobecker wrote: > Perhaps you might prefer > using your first patch instead of the second one. Yes, that makes sense. Thanks for following up. The first patch seems pretty innocuous, so I pushed it.

Re: [PATCH] Make errno.h define EILSEQ on old LynxOS systems.

2012-11-05 Thread Joel Brobecker
> > some systems define EILSEQ in wchar.h rather than errno.h > > (I am not sure whether I had a list of some such systems at some > > point, or not). > > Thanks, could you please dig that up, or let us know from memory > as best you can? I'd like to add this info to the documentation. I searche

Re: [PATCH] fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available

2012-11-05 Thread Paul Eggert
On 11/05/2012 02:02 PM, Eric Blake wrote: > Do we really want the ability to open a symlink as an fd > when using O_EXEC permissions, instead of following the > symlink into the file that it normally points to? Opening the symlink with open ("symlink", O_EXEC) should be OK, since it will follow t

Re: [PATCH] fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available

2012-11-05 Thread Eric Blake
On 11/05/2012 02:56 PM, Paul Eggert wrote: > Linux kernel 2.6.39 introduced O_PATH (see > ) and this is a better fallback > for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available. > * doc/posix-headers/fcntl.texi (fcntl.h): Document this. > * lib/fcntl.in.h (

[proposed PATCH] relocatable-prog: default O_EXEC to O_PATH if available

2012-11-05 Thread Paul Eggert
* lib/progreloc.c (O_EXEC) [O_PATH]: Default to O_PATH. This tracks the recent change to fcntl-h. Perhaps relocatable-prog should depend on fcntl-h instead? --- ChangeLog | 5 + lib/progreloc.c | 6 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeL

[PATCH] fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available

2012-11-05 Thread Paul Eggert
Linux kernel 2.6.39 introduced O_PATH (see ) and this is a better fallback for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available. * doc/posix-headers/fcntl.texi (fcntl.h): Document this. * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH. * lib/

Re: [PATCH] Make errno.h define EILSEQ on old LynxOS systems.

2012-11-05 Thread Paul Eggert
On 11/05/2012 06:56 AM, Joel Brobecker wrote: > some systems define EILSEQ in wchar.h rather than errno.h > (I am not sure whether I had a list of some such systems at some > point, or not). Thanks, could you please dig that up, or let us know from memory as best you can? I'd like to add this in

Re: bug#12793: FORCE_UNSAFE_CONFIGURE=1 - not really a bug, but friendliness issue

2012-11-05 Thread Eric Blake
[adding gnulib] On 11/03/2012 10:34 AM, Pádraig Brady wrote: > On 11/03/2012 02:36 PM, Michael Felt wrote: >> Would be much nicer if ./configure complained at the beginning about >> being >> root, rather than at the end. > > This comes from a specific test in gnulib: > http://git.sv.gnu.org/gitwe

Re: [PATCH] Make errno.h define EILSEQ on old LynxOS systems.

2012-11-05 Thread Joel Brobecker
> The patch needs to modify a few more files to be complete, I think. > Also, I don't think we need to make a special case for LynxOS -- any > system that doesn't define EILSEQ can benefit from the change. So, > how about the following patch instead? Thanks, Paul. The only issue I have with your