endprotoent(3) — Subroutines
OSF — Environment_Note_Added
NAME
endprotoent − Closes the /etc/protocols file
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
void endprotoent ( void );
DESCRIPTION
The endprotoent() function closes the /etc/protocols file, previously opened with the getprotoent(), getprotobyname(), or getprotobynumber function.
NOTES
If the most recent setprotent() function has been performed with a nonzero parameter, then the endprotent() function will not close the /etc/protocols file. In this instance, the /etc/protocols file is not closed until a call to the exit() function. A second setprotent() call must be issued with a parameter equal to 0 (zero) in order to ensure that a following endprotent() function will succeed.
FILES
/etc/protocols
Contains protocol names.
ENVIRONMENT NOTES
This section describes system features that are not generic to OSF/1 but that are provided in this OSF/1 implementation.
Digital Extensions
The system searches either the local /etc/protocols file or the NIS distributed networks file for the requested information. To determine which file or files to search, and in which order, the system uses the switches in the /etc/svc.conf file.
RELATED INFORMATION
Functions: getprotoent(3), getprotobynumber(3), getprotobyname(3), setprotoent(3)