Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ setnetent(3) — OSF/1 SILVER Baselevel 4 rev36

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

endnetent(3)

getnetbyaddr(3)

getnetbyname(3)

getnetent(3)

setnetent(3)  —  Subroutines

OSF  —  Environment_Note_Added

NAME

setnetent − Opens and rewinds the networks file

LIBRARY

Standard C Library (libc.a)

SYNOPSIS

#include <netdb.h> void setnetent (
int stay_open );

PARAMETERS

stay_openSpecifies a value that indicates when to close the networks file.Specifying a value of 0 (zero) closes the networks file after each call to the getnetent() function.Specifying a nonzero value leaves the /etc/networks file open after each call. 

DESCRIPTION

The setnetent() (set network entry) function opens the /etc/networks file and sets the file marker at the beginning of the file. 

RETURN VALUES

If an error occurs or if the end of the file is reached, the setnetent subroutine returns a null pointer. 

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: endnetent(3), getnetbyaddr(3), getnetbyname(3), getnetent(3)

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