![]() |
![]() |
![]() |
Rewind to the start of the group database file
#include <grp.h> int setgrent( void );
libc
The setgrent() function rewinds to the start of the group name database file. It's provided for programs that make multiple lookups in the group database (using the getgrgid() and getgrnam() calls) to avoid the default opening and closing of the group database for each access.
The setgrent() function uses fopen(), as a result errno can be set to a valid error for the fopen() call.
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | No |
Thread | No |
![]() |
![]() |
![]() |