Hash :
4b3be140
Author :
Date :
2024-05-21T16:35:09
getusershell: Split file by lines instead of spaces. * lib/getusershell.c: Include string.h and filename.h (GNULIB_GETUSERSHELL_SINGLE_THREAD): Remove conditional to include unlocked stdio functions that are no longer used. (readname): Remove function. (getusershell): Use getline and process the string instead of using readname. Return the first absolute file name. * modules/getusershell (Depends-on): Remove unlocked-io-internal. Add getline and filename. * doc/multithread.texi (Multithreading Optimizations): Don't mention GNULIB_GETUSERSHELL_SINGLE_THREAD.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
Description:
Return names of valid user shells.
Files:
lib/getusershell.c
m4/getusershell.m4
Depends-on:
unistd
extensions
fopen-safer [test $HAVE_GETUSERSHELL = 0 || test $REPLACE_GETUSERSHELL = 1]
getline [test $HAVE_GETUSERSHELL = 0 || test $REPLACE_GETUSERSHELL = 1]
filename [test $HAVE_GETUSERSHELL = 0 || test $REPLACE_GETUSERSHELL = 1]
xalloc [test $HAVE_GETUSERSHELL = 0 || test $REPLACE_GETUSERSHELL = 1]
configure.ac:
gl_FUNC_GETUSERSHELL
gl_CONDITIONAL([GL_COND_OBJ_GETUSERSHELL],
[test $HAVE_GETUSERSHELL = 0 || test $REPLACE_GETUSERSHELL = 1])
AM_COND_IF([GL_COND_OBJ_GETUSERSHELL], [
gl_PREREQ_GETUSERSHELL
])
gl_UNISTD_MODULE_INDICATOR([getusershell])
Makefile.am:
if GL_COND_OBJ_GETUSERSHELL
lib_SOURCES += getusershell.c
endif
Include:
<unistd.h>
License:
GPL
Maintainer:
Jim Meyering