Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ endnetent(3) — OSF/1 3.0 αXP

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getnetent(3)

getnetbyaddr(3)

getnetbyname(3)

setnetent(3)

endnetent(3)  —  Subroutines

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. 

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. 

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.

RELATED INFORMATION

Functions: getnetent(3), getnetbyaddr(3), getnetbyname(3), setnetent(3)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026