NAME
ggeettuusseerrsshheellll, sseettuusseerrsshheellll, eenndduusseerrsshheellll - get valid user shells
LLIIBBRRAARRYYStandard C Library (libc, -lc)
SYNOPSIS
##iinncclluuddee <
char * ggeettuusseerrsshheellll(void); void sseettuusseerrsshheellll(void); void eenndduusseerrsshheellll(void);> DESCRIPTION
The ggeettuusseerrsshheellll() 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, ggeettuusseerrsshheellll() behaves as if /bin/sh and /bin/csh were listed.The ggeettuusseerrsshheellll() function reads the next line (opening the file if nec-
essary); sseettuusseerrsshheellll() rewinds the file; eenndduusseerrsshheellll() closes it. FILES /etc/shells DIAGNOSTICS The routine ggeettuusseerrsshheellll() returns a null pointer (0) on EOF.SEE ALSO
shells(5) HISTORY The ggeettuusseerrsshheellll() function appeared in 4.3BSD.BUGS
The ggeettuusseerrsshheellll() function leaves its result in an internal static object and returns a pointer to that object. Subsequent calls to ggeettuusseerrsshheellll() will modify the same object. BSD January 16, 1999 BSD