Syntax | #include <sys/types.h> #include <grp.h> int getgrnam_r(const char * name, struct group * grp, char * buffer, size_t bufsize, struct group ** result); |
Description
The getgrnam_r()
updates the group structure pointed to by grp and stores a pointer to
this structure at the address pointed to by result. The structure contains the entry from the The structure found in the group file is copied to the memory area of length bufsize passed When an error occurs or when the desired entry could not be found, a null pointer is | ||||
Return val. | 0 Error number | if successful. if an error occurs. | ||
Errors | The | |||
| The memory area pointed to by buffer of length bufsize is not large enough | |||
See also |
|