1 /*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. 9 * 10 * %sccs.include.redist.c% 11 * 12 * @(#)grp.h 8.2 (Berkeley) 01/21/94 13 */ 14 15 #ifndef _GRP_H_ 16 #define _GRP_H_ 17 18 #ifndef _POSIX_SOURCE 19 #define _PATH_GROUP "/etc/group" 20 #endif 21 22 struct group { 23 char *gr_name; /* group name */ 24 char *gr_passwd; /* group password */ 25 int gr_gid; /* group id */ 26 char **gr_mem; /* group members */ 27 }; 28 29 #include <sys/cdefs.h> 30 31 __BEGIN_DECLS 32 struct group *getgrgid __P((gid_t)); 33 struct group *getgrnam __P((const char *)); 34 #ifndef _POSIX_SOURCE 35 struct group *getgrent __P((void)); 36 int setgrent __P((void)); 37 void endgrent __P((void)); 38 void setgrfile __P((const char *)); 39 int setgroupent __P((int)); 40 #endif 41 __END_DECLS 42 43 #endif /* !_GRP_H_ */ 44