Re: declare getusershell in unistd.h

2008-10-20 Thread Bruno Haible
Jim Meyering wrote: > At first I removed those declarations from su.c, > but then the ones from the system unistd.h were > not visible on recent Linux. glibc's declares getusershell() properly when _GNU_SOURCE is defined. At least that's what I can see in the glibc sources. Do you have more detai

Re: declare getusershell in unistd.h

2008-10-20 Thread Jim Meyering
Bruno Haible <[EMAIL PROTECTED]> wrote: >> 2008-10-18 Bruno Haible <[EMAIL PROTECTED]> >> >> * lib/unistd.in.h (getusershell, setusershell, endusershell): New >> declarations. >> * lib/getusershell.c: Include unistd.h. >> * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require >>

Re: declare getusershell in unistd.h

2008-10-19 Thread Bruno Haible
> 2008-10-18 Bruno Haible <[EMAIL PROTECTED]> > > * lib/unistd.in.h (getusershell, setusershell, endusershell): New > declarations. > * lib/getusershell.c: Include unistd.h. > * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require > gl_UNISTD_H_DEFAULTS and AC_USE_SYS

declare getusershell in unistd.h

2008-10-18 Thread Bruno Haible
glibc declares get/set/endusershell() in . Here is a proposed patch for gnulib to do the same. 2008-10-18 Bruno Haible <[EMAIL PROTECTED]> * lib/unistd.in.h (getusershell, setusershell, endusershell): New declarations. * lib/getusershell.c: Include unistd.h. * m