Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

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
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zinetdll |
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/yinetdll |
SYNOPSIS
[#include <sys/socket.h>]
#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.
The enumeration of /etc/protocols is a process-wide property shared by all threads. When used
in a multi-threaded application, the endprotoent( ) function closes /etc/protocols for all threads.
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) thread_safety(5).
527187-017 Hewlett-Packard Company 211