setservent - network services database function
#include <netdb.h> void setservent(int stayopen);
Refer to endservent().