GRP.H(7) Miscellaneous Information Manual GRP.H(7)

grp.hgroup structure

#include <grp.h>

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 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);

None.

None.

endgrent(3) , getgrgid(3) , getgrgid(3) , getgrnam(3) , <sys/types.h> .

February 1997 posix.fail