1 /*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8 #ifndef lint 9 static char sccsid[] = "@(#)table.c 5.1 (Berkeley) 02/12/91"; 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 int p_change(), p_class(), p_expire(), p_gecos(), p_gid(), p_hdir(); 20 int p_login(), p_passwd(), p_shell(), p_uid(); 21 22 ENTRY list[] = { 23 { "login", p_login, 1, 5, e1, }, 24 { "password", p_passwd, 1, 8, e1, }, 25 { "uid", p_uid, 1, 3, e1, }, 26 { "gid", p_gid, 1, 3, e1, }, 27 { "class", p_class, 1, 5, e1, }, 28 { "change", p_change, 1, 6, NULL, }, 29 { "expire", p_expire, 1, 6, NULL, }, 30 { "full name", p_gecos, 0, 9, e2, }, 31 { "office phone", p_gecos, 0, 12, e2, }, 32 { "home phone", p_gecos, 0, 10, e2, }, 33 { "location", p_gecos, 0, 8, e2, }, 34 { "home directory", p_hdir, 1, 14, e1, }, 35 { "shell", p_shell, 0, 5, e1, }, 36 { NULL, 0, }, 37 }; 38