Hash :
25279ee5
Author :
Date :
2024-05-19T16:40:34
getusershell: Work around musl bugs. Reported by Bruno Haible in <https://lists.gnu.org/archive/html/bug-gnulib/2024-05/msg00261.html>. * doc/glibc-functions/getusershell.texi: Mention the musl bug. * lib/unistd.in.h (getusershell, setusershell, endusershell): Allow the functions to be declared with the rpl_ prefix. * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Prepare functions to be replaced on musl systems. (gl_PREREQ_GETUSERSHELL): New macro. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETUSERSHELL. * modules/getusershell (Depends-on): Update module conditions to account for the function being available but replaced by Gnulib. (configure.ac): Likewise. Invoke gl_PREREQ_GETUSERSHELL.
@node getusershell
@subsection @code{getusershell}
@findex getusershell
Documentation:@* @uref{https://www.kernel.org/doc/man-pages/online/pages/man3/getusershell.3.html,,man getusershell}
Gnulib module: getusershell
Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
Minix 3.1.8, mingw, MSVC 14, Android 9.0.
@item
This function is missing a declaration on some platforms:
Solaris 9.
@item
This function mistakenly returns comments and empty lines on some platforms:
@c https://www.openwall.com/lists/musl/2024/05/18/1
musl libc 1.2.4
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@end itemize