1GETUSERSHELL(3) Library Functions Manual GETUSERSHELL(3)
2
3
4
6 getusershell, setusershell, endusershell - get legal user shells
7
9 char *getusershell()
10
11 setusershell()
12
13 endusershell()
14
16 Getusershell returns a pointer to a legal user shell as defined by the
17 system manager in the file /etc/shells. If /etc/shells is unreadable
18 or does not exist, getusershell behaves as if /bin/sh and /bin/csh were
19 listed in the file.
20
21 Getusershell reads the next line (opening the file if necessary);
22 setusershell rewinds the file; endusershell closes it.
23
25 /etc/shells
26
28 shells(5)
29
31 The routine getusershell returns a null pointer (0) on EOF.
32
34 All information is contained in a static area so it must be copied if
35 it is to be saved.
36
37
38
394.3 Berkeley Distribution November 30, 1988 GETUSERSHELL(3)