142387Sbostic /*- 261068Sbostic * Copyright (c) 1989, 1993 361068Sbostic * The Regents of the University of California. All rights reserved. 4*65762Sbostic * (c) UNIX System Laboratories, Inc. 5*65762Sbostic * All or some portions of this file are derived from material licensed 6*65762Sbostic * to the University of California by American Telephone and Telegraph 7*65762Sbostic * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8*65762Sbostic * the permission of UNIX System Laboratories, Inc. 935622Sbostic * 1042387Sbostic * %sccs.include.redist.c% 1135622Sbostic * 12*65762Sbostic * @(#)grp.h 8.2 (Berkeley) 01/21/94 1335622Sbostic */ 1412184Ssam 1547768Sbostic #ifndef _GRP_H_ 1647768Sbostic #define _GRP_H_ 1747768Sbostic 1842387Sbostic #ifndef _POSIX_SOURCE 1936954Sbostic #define _PATH_GROUP "/etc/group" 2042387Sbostic #endif 2136954Sbostic 2235622Sbostic struct group { 2336954Sbostic char *gr_name; /* group name */ 2436954Sbostic char *gr_passwd; /* group password */ 2536954Sbostic int gr_gid; /* group id */ 2636954Sbostic char **gr_mem; /* group members */ 2712184Ssam }; 2812184Ssam 2946281Sbostic #include <sys/cdefs.h> 3046281Sbostic 3146281Sbostic __BEGIN_DECLS 3246281Sbostic struct group *getgrgid __P((gid_t)); 3346281Sbostic struct group *getgrnam __P((const char *)); 3442387Sbostic #ifndef _POSIX_SOURCE 3546281Sbostic struct group *getgrent __P((void)); 3646281Sbostic int setgrent __P((void)); 3746281Sbostic void endgrent __P((void)); 3846281Sbostic void setgrfile __P((const char *)); 3946281Sbostic int setgroupent __P((int)); 4042387Sbostic #endif 4146281Sbostic __END_DECLS 4247768Sbostic 4347768Sbostic #endif /* !_GRP_H_ */ 44