|
NAMEgetusershell , setusershell ,
endusershell —
get valid user shells
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <unistd.h>
char *
void
void
DESCRIPTIONThegetusershell () function returns a pointer to a valid
user shell as defined by the system manager in the shells database as
described in
shells(5).
If the shells database is not available,
getusershell () behaves as if
/bin/sh and /bin/csh were
listed.
The FILES
DIAGNOSTICSThe routinegetusershell () returns a null pointer (0) on
EOF .
SEE ALSOnsswitch.conf(5), shells(5)HISTORYThegetusershell () function appeared in
4.3BSD.
BUGSThegetusershell () function leaves its result in an
internal static object and returns a pointer to that object. Subsequent calls
to getusershell () will modify the same object.
Visit the GSP FreeBSD Man Page Interface. |