setnetent - network database function
#include <netdb.h> void setnetent(int stayopen);
Refer to endnetent().