Open System Services Library Calls Reference Manual (G06.27+, H06.04+)

OSS Library Calls (e - f) endservent(3)
NAME
endservent - Closes the connection to the network services database
LIBRARY
G-series native OSS processes: /G/system/sysnn/zinetsrl
H-series OSS processes: /G/system/zdllnnn/zinetdll
SYNOPSIS
#include <netdb.h>
void endservent(void);
PARAMETERS
None.
DESCRIPTION
The endservent() function closes /etc/services, the network services database. /etc/services can
be opened with the setservent(), getservent(), getservbyname( ),orgetservbyport() function.
NOTES
If the setservent() function is called with the stay_open parameter set to a nonzero value, the
connection remains open until the endservent() or exit() function is called.
RETURN VALUES
The endservent() function does not return a value.
ERRORS
The endservent() function does not set errno.
FILES
/etc/services This is the Internet network service-name database. Each record in the le occu-
pies a single line and has four elds: the service name, the port reference, the
protocol name, and aliases.
RELATED INFORMATION
Functions: getservent(3), getservbyname(3), getservbyport(3), setservent(3).
Files: services(4).
527187-004 Hewlett-Packard Company 213