osf1 man page for endservent_r

Query: endservent_r

OS: osf1

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

endservent(3)						     Library Functions Manual						     endservent(3)

NAME
endservent, endservent_r - Close the network services database file.
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <netdb.h> void endservent(void); [Tru64 UNIX] The following function is supported in order to maintain backward compatibility with previous versions of the operating sys- tem. void endservent_r( struct servent_data *serv_data);
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: endservent(): XNS4.0 Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
[Tru64 UNIX] For endservent_r() only, this is data for services database.
DESCRIPTION
The endservent() function closes either the local /etc/services file or the NIS distributed services file, previously opened with the get- servent(), getservbyname(), or getservbyport function. To determine which file or files to search, and in which order, the system uses the switches in the /etc/svc.conf file. [Tru64 UNIX] If the most recent setservent() function was performed with a nonzero parameter, a subsequent endservent() function will not close the network services database file.
NOTES
[Tru64 UNIX] The endservent_r() function is the reentrant version of the endservent() function. It is supported in order to maintain backward compatibility with previous versions of the operating system. The netdb.h header file defines the serv_data structure.
ERRORS
Current industry standards do not define error values for the endservent() function. [Tru64 UNIX] If the endservent_r() function fails, errno may be set to: serv_data is NULL.
FILES
Contains service names. The database service selection configuration file.
RELATED INFORMATION
Functions: getservent(3), getservbyname(3), getservbyport(3), setservent(3). Files: services(4), svc.conf(4). Networks: nis_intro(7). Standards: standards(5). delim off endservent(3)
Related Man Pages
endprotoent(3) - osf1
endservent(3) - osf1
getservbyname(3) - osf1
getservbyport_r(3) - osf1
setservent(3) - osf1
Similar Topics in the Unix Linux Community
What is?
Searching for HOST NAME in UNIX
I/ps pls for migration of oraboot &amp; orabackup files from Tru64 Unix to Linux 3.0
How to determine the level of OS in HP-UNIX
UNIX Special files