Penguin
Blame: getusershell(3)
EditPageHistoryDiffInfoLikePages
Annotated edit history of getusershell(3) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 GETUSERSHELL
2 !!!GETUSERSHELL
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 FILES
8 CONFORMING TO
9 SEE ALSO
10 ----
11 !!NAME
12
13
14 getusershell, setusershell, endusershell - get legal user shells
15 !!SYNOPSIS
16
17
18 __#include
19 __
20 !!DESCRIPTION
21
22
23 The __getusershell()__ function returns the next line
24 from the file ''/etc/shells'', opening the file if
25 necessary. The line should contain the pathname of a valid
26 user shell. If ''/etc/shells'' does not exist or is
27 unreadable, __getusershell()__ behaves as if
28 ''/bin/sh'' and ''/bin/csh'' were listed in the
29 file.
30
31
32 The __setusershell()__ function rewinds
33 ''/etc/shells''.
34
35
36 The __endusershell()__ function closes
37 ''/etc/shells''.
38 !!RETURN VALUE
39
40
41 The __getusershell()__ function returns a NULL pointer on
42 end-of-file.
43 !!FILES
44
45
46 /etc/shells
47 !!CONFORMING TO
48
49
50 BSD 4.3
51 !!SEE ALSO
52
53
54 shells(5)
55 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.