Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getservent(3)

getservbyname(3)

getservbyport(3)

setservent(3)

getprotoent(3)

getprotobynumber(3)

getprotobyname(3)

setprotoent(3)

endprotoent(3)

endservent(3)  —  Subroutines

OSF  —  Environment_Note_Added

NAME

endservent − Closes the /etc/services file entry

LIBRARY

Standard C Library (libc.a)

SYNOPSIS

#include <netdb.h>

void endservent ( void );

DESCRIPTION

The endservent() function closes the /etc/services file, previously opened with the getservent(), getservbyname(), or getsrvbyport  function. 

NOTES

If the most recent setservent() function has been performed with a nonzero parameter, then the endservent() function will not close the /etc/services file.  In this instance, the /etc/services file is not closed until a call to the exit() function.  A second setservent() function must be issued with a parameter equal to 0 (zero) in order to ensure that a following endservent() function will succeed. 

FILES

/etc/services
Contains service 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/sevices 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: getservent(3), getservbyname(3), getservbyport(3), setservent(3), getprotoent(3), getprotobynumber(3), getprotobyname(3), setprotoent(3), endprotoent(3)

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