endnetent(3) — Subroutines
OSF — Environment_Note_Added
NAME
endnetent − Closes the networks file
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <netdb.h>
void endnetent ( void );
DESCRIPTION
The endnetent() function closes the /etc/networks file, previously opened with the getnetent(), getnetbyaddr(), setnetent() or getnetbyname() function.
NOTES
If the most recent setnetent() function has been performed with a nonzero parameter, then the endnetent() function will not close the /etc/networks file. In this instance, the /etc/networks file is not closed until a call to the exit() function. A second setnetent() function must be issued with a parameter equal to 0 (zero) in order to ensure that a following endnetent() function will succeed.
FILES
/etc/networks
Contains official network 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/networks 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: getnetent(3), getnetbyaddr(3), getnetbyname(3), setnetent(3)