Open System Services Library Calls Reference Manual (G06.28+, H06.05+)
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 file, 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 file. Each record in the file occupies a
single line and has three fields: 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-007 Hewlett-Packard Company 2−11