1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 /* 23 * Copyright 1989 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 /* Copyright (c) 1984 AT&T */ 28 /* All Rights Reserved */ 29 30 #pragma ident "%Z%%M% %I% %E% SMI" 31 32 #ifndef __pwd_h 33 #define __pwd_h 34 35 #include <sys/types.h> 36 37 struct passwd { 38 char *pw_name; 39 char *pw_passwd; 40 int pw_uid; 41 int pw_gid; 42 char *pw_age; 43 char *pw_comment; 44 char *pw_gecos; 45 char *pw_dir; 46 char *pw_shell; 47 }; 48 49 50 #ifndef _POSIX_SOURCE 51 extern struct passwd *getpwent(); 52 53 struct comment { 54 char *c_dept; 55 char *c_name; 56 char *c_acct; 57 char *c_bin; 58 }; 59 60 #endif 61 62 struct passwd *getpwuid(/* uid_t uid */); 63 struct passwd *getpwnam(/* char *name */); 64 65 #endif /* !__pwd_h */ 66