setnetent stayopen
Opens the networks file (usually /etc/group) and resets the "current" selection to the top of the file. stayopen, if non-zero, keeps the file open across calls to other functions. Not implemented on Win32 systems.