xref: /original-bsd/usr.bin/chpass/table.c (revision e58c8952)
1 /*-
2  * Copyright (c) 1990, 1993, 1994
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  */
7 
8 #ifndef lint
9 static char sccsid[] = "@(#)table.c	8.3 (Berkeley) 04/02/94";
10 #endif /* not lint */
11 
12 #include <sys/types.h>
13 #include <stddef.h>
14 #include "chpass.h"
15 
16 char e1[] = ": ";
17 char e2[] = ":,";
18 
19 ENTRY list[] = {
20 	{ "login",		p_login,  1,   5, e1,   },
21 	{ "password",		p_passwd, 1,   8, e1,   },
22 	{ "uid",		p_uid,    1,   3, e1,   },
23 	{ "gid",		p_gid,    1,   3, e1,   },
24 	{ "class",		p_class,  1,   5, e1,   },
25 	{ "change",		p_change, 1,   6, NULL, },
26 	{ "expire",		p_expire, 1,   6, NULL, },
27 	{ "full name",		p_gecos,  0,   9, e2,   },
28 	{ "office phone",	p_gecos,  0,  12, e2,   },
29 	{ "home phone",		p_gecos,  0,  10, e2,   },
30 	{ "location",		p_gecos,  0,   8, e2,   },
31 	{ "home directory",	p_hdir,   1,  14, e1,   },
32 	{ "shell",		p_shell,  0,   5, e1,   },
33 	{ NULL, 0, },
34 };
35