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

OSS Library Calls (e - f) endprotoent(3)
NAME
endprotoent - Closes the connection to the network protocols database
LIBRARY
G-series native OSS processes: /G/system/sysnn/zinetsrl
H-series OSS processes: /G/system/zdllnnn/zinetdll
SYNOPSIS
#include <netdb.h>
void endprotoent(void);
PARAMETERS
None.
DESCRIPTION
The endprotoent() function closes the connection to the /etc/protocols le, the network proto-
cols database.
NOTES
If the setprotoent() function is called with a stay_open parameter set to a nonzero value, the
connection to the database remains open until the endprotoent( ),orexit() function is called.
RETURN VALUES
The endprotoent() function does not return a value.
ERRORS
The endprotoent() function does not set errno.
FILES
/etc/protocols The Internet network protocols database le. Each record in the le occupies a
single line and has three elds: the protocol name, the protocol number, and pro-
tocol aliases.
RELATED INFORMATION
Functions: getprotoent(3), getprotobynumber(3), getprotobyname(3), setprotoent(3).
Files: protocols(4).
527187-004 Hewlett-Packard Company 211