Syntax | #include <grp.h> void endgrent (void); void setgrent (void); struct group *getgrent (void); | |
Description |
struct group { char *gr_name; /* Name of the group */ char *gr_passwd; /* Encoded group password */ gid_t gr_gid; /* Numerical group ID */ char **gr_mem; /* Pointer to names of the group members*/ };
| |
Return val. |
Pointer to the first group structure of the group file at the first call Pointer to the next group structure of the group file | |
at subsequent calls | ||
| Null pointer | at |
Errors |
| |
|
|
an I/O error occurred during reading or writing. The calling process contains The maximum permissible number of files is open in the system. |
| Extension | |
|
| There is not enough memory for storing the global data of |
Notes | The return value of These functions continue to be offered because they were common in the past. However, | |
See also |
|