1GETUSERSHELL(3)            Linux Programmer's Manual           GETUSERSHELL(3)
2
3
4

NAME

6       getusershell, setusershell, endusershell - get legal user shells
7

SYNOPSIS

9       #include <unistd.h>
10
11       char *getusershell(void);
12
13       void setusershell(void);
14
15       void endusershell(void);
16

DESCRIPTION

18       The  getusershell()  function  returns  the  next  line  from  the file
19       /etc/shells, opening the file if necessary.  The  line  should  contain
20       the  pathname  of a valid user shell.  If /etc/shells does not exist or
21       is unreadable, getusershell() behaves as if  /bin/sh and /bin/csh  were
22       listed in the file.
23
24       The setusershell() function rewinds /etc/shells.
25
26       The endusershell() function closes /etc/shells.
27

RETURN VALUE

29       The getusershell() function returns a NULL pointer on end-of-file.
30

FILES

32       /etc/shells
33

CONFORMING TO

35       4.3BSD
36

SEE ALSO

38       shells(5)
39
40
41
42BSD                               1993-07-04                   GETUSERSHELL(3)
Impressum