grp.h - group structure
The <grp.h> header declares the structure group which includes the following members:
char *gr_name the name of the group gid_t gr_gid numerical group ID char **gr_mem pointer to a null-terminated array of character pointers to member names
The gid_t type is defined as described in <sys/types.h>.
The following are declared as functions and may also be defined as macros. Function prototypes must be provided for use with an ISO C compiler.
struct group *getgrgid(gid_t); struct group *getgrnam(const char *); int getgrgid_r(gid_t, struct group *, char *, size_t, struct group **); int getgrnam_r(const char *, struct group *, char *, size_t , struct group **); struct group *getgrent(void); void endgrent(void); void setgrent(void);
endgrent(), getgrgid(), getgrgid_r(), getgrnam(), <sys/types.h>.