1*5c007436SBen Gras /* $NetBSD: table.c,v 1.7 2009/04/11 12:10:02 lukem Exp $ */ 2*5c007436SBen Gras 3*5c007436SBen Gras /*- 4*5c007436SBen Gras * Copyright (c) 1990, 1993, 1994 5*5c007436SBen Gras * The Regents of the University of California. All rights reserved. 6*5c007436SBen Gras * 7*5c007436SBen Gras * Redistribution and use in source and binary forms, with or without 8*5c007436SBen Gras * modification, are permitted provided that the following conditions 9*5c007436SBen Gras * are met: 10*5c007436SBen Gras * 1. Redistributions of source code must retain the above copyright 11*5c007436SBen Gras * notice, this list of conditions and the following disclaimer. 12*5c007436SBen Gras * 2. Redistributions in binary form must reproduce the above copyright 13*5c007436SBen Gras * notice, this list of conditions and the following disclaimer in the 14*5c007436SBen Gras * documentation and/or other materials provided with the distribution. 15*5c007436SBen Gras * 3. Neither the name of the University nor the names of its contributors 16*5c007436SBen Gras * may be used to endorse or promote products derived from this software 17*5c007436SBen Gras * without specific prior written permission. 18*5c007436SBen Gras * 19*5c007436SBen Gras * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 20*5c007436SBen Gras * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21*5c007436SBen Gras * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22*5c007436SBen Gras * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 23*5c007436SBen Gras * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24*5c007436SBen Gras * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25*5c007436SBen Gras * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26*5c007436SBen Gras * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27*5c007436SBen Gras * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28*5c007436SBen Gras * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29*5c007436SBen Gras * SUCH DAMAGE. 30*5c007436SBen Gras */ 31*5c007436SBen Gras 32*5c007436SBen Gras #include <sys/cdefs.h> 33*5c007436SBen Gras #ifndef lint 34*5c007436SBen Gras #if 0 35*5c007436SBen Gras static char sccsid[] = "@(#)table.c 8.3 (Berkeley) 4/2/94"; 36*5c007436SBen Gras #else 37*5c007436SBen Gras __RCSID("$NetBSD: table.c,v 1.7 2009/04/11 12:10:02 lukem Exp $"); 38*5c007436SBen Gras #endif 39*5c007436SBen Gras #endif /* not lint */ 40*5c007436SBen Gras 41*5c007436SBen Gras #include <sys/types.h> 42*5c007436SBen Gras #include <stddef.h> 43*5c007436SBen Gras #include "chpass.h" 44*5c007436SBen Gras 45*5c007436SBen Gras char e1[] = ": "; 46*5c007436SBen Gras char e2[] = ":,"; 47*5c007436SBen Gras 48*5c007436SBen Gras ENTRY list[] = { 49*5c007436SBen Gras { "login", p_login, 1, 5, e1, NULL }, 50*5c007436SBen Gras { "password", p_passwd, 1, 8, e1, NULL }, 51*5c007436SBen Gras { "uid", p_uid, 1, 3, e1, NULL }, 52*5c007436SBen Gras { "gid", p_gid, 1, 3, e1, NULL }, 53*5c007436SBen Gras { "class", p_class, 1, 5, e1, NULL }, 54*5c007436SBen Gras { "change", p_change, 1, 6, NULL, NULL }, 55*5c007436SBen Gras { "expire", p_expire, 1, 6, NULL, NULL }, 56*5c007436SBen Gras { "full name", p_gecos, 0, 9, e2, ""}, 57*5c007436SBen Gras { "office phone", p_gecos, 0, 12, e2, ""}, 58*5c007436SBen Gras { "home phone", p_gecos, 0, 10, e2, ""}, 59*5c007436SBen Gras { "location", p_gecos, 0, 8, e2, ""}, 60*5c007436SBen Gras { "home directory", p_hdir, 1, 14, e1, NULL }, 61*5c007436SBen Gras { "shell", p_shell, 0, 5, e1, NULL }, 62*5c007436SBen Gras { NULL, NULL, 0, 0, NULL, NULL }, 63*5c007436SBen Gras }; 64