This function opens the services database file and resets the file marker to the beginning of the file. Passing a nonzero stay_open argument keeps the connection open until you call the endservent() function or the exit() function. Related Functions See also endservent(), exit(), and getservent().