grp.h (85148c8f0343312cb6e58d4071fe6ba345b04bdd) | grp.h (b73aa6457cf1151f2a7dedef593a46b414e64643) |
---|---|
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. --- 28 unchanged lines hidden (view full) --- 37 * 38 * @(#)grp.h 8.2 (Berkeley) 1/21/94 39 * $FreeBSD$ 40 */ 41 42#ifndef _GRP_H_ 43#define _GRP_H_ 44 | 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. --- 28 unchanged lines hidden (view full) --- 37 * 38 * @(#)grp.h 8.2 (Berkeley) 1/21/94 39 * $FreeBSD$ 40 */ 41 42#ifndef _GRP_H_ 43#define _GRP_H_ 44 |
45#include <sys/types.h> 46#include <sys/cdefs.h> 47 |
|
45#ifndef _POSIX_SOURCE 46#define _PATH_GROUP "/etc/group" 47#endif 48 49struct group { 50 char *gr_name; /* group name */ 51 char *gr_passwd; /* group password */ 52 gid_t gr_gid; /* group id */ 53 char **gr_mem; /* group members */ 54}; 55 | 48#ifndef _POSIX_SOURCE 49#define _PATH_GROUP "/etc/group" 50#endif 51 52struct group { 53 char *gr_name; /* group name */ 54 char *gr_passwd; /* group password */ 55 gid_t gr_gid; /* group id */ 56 char **gr_mem; /* group members */ 57}; 58 |
56#include <sys/cdefs.h> 57 | |
58__BEGIN_DECLS 59struct group *getgrgid __P((gid_t)); 60struct group *getgrnam __P((const char *)); 61#ifndef _POSIX_SOURCE 62struct group *getgrent __P((void)); 63int setgrent __P((void)); 64void endgrent __P((void)); 65void setgrfile __P((const char *)); 66int setgroupent __P((int)); 67char *group_from_gid __P((gid_t, int)); 68#endif 69__END_DECLS 70 71#endif /* !_GRP_H_ */ | 59__BEGIN_DECLS 60struct group *getgrgid __P((gid_t)); 61struct group *getgrnam __P((const char *)); 62#ifndef _POSIX_SOURCE 63struct group *getgrent __P((void)); 64int setgrent __P((void)); 65void endgrent __P((void)); 66void setgrfile __P((const char *)); 67int setgroupent __P((int)); 68char *group_from_gid __P((gid_t, int)); 69#endif 70__END_DECLS 71 72#endif /* !_GRP_H_ */ |