endprotoent man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

endprotoent(3)							endprotoent(3)

NAME
       endprotoent, endprotoent_r - Close the network protocols database file

SYNOPSIS
       #include <netdb.h>

       void endprotoent(
	       void );

       [Tru64  UNIX]  The following function is supported in order to maintain
       backward compatibility with previous versions of the operating  system.
       void endprotoent_r(
	       struct protoent_data *proto_data );

LIBRARY
       Standard C Library (libc)

STANDARDS
       Interfaces  documented on this reference page conform to industry stan‐
       dards as follows:

       endprotoent():  XNS4.0, XNS5.0

       Refer to the standards(5) reference page	 for  more  information	 about
       industry standards and associated tags.

PARAMETERS
       [Tru64  UNIX]  For  endprotoent_r() only, this is data for the protocol
       database.

DESCRIPTION
       The endprotoent() function closes either the local /etc/protocols  file
       or  the NIS distributed protocols file, previously opened with the get‐
       protoent(), getprotobyname(), or getprotobynumber() function. To deter‐
       mine which file or files to search, and in which order, the system uses
       the switches in the /etc/svc.conf file.

       If the most recent setprotent() function	 has  been  performed  with  a
       nonzero	parameter,  the endprotoent() function will not close the net‐
       work protocols database file. In this instance, the  network  protocols
       database file is not closed until a call to the exit() function. A sec‐
       ond setprotent() call must be issued with a parameter equal to 0 (zero)
       in  order  to  ensure that a following endprotoent() function will suc‐
       ceed.

NOTES
       [Tru64 UNIX]  The endprotoent_r() function is the reentrant version  of
       the endprotoent() function.  It is supported in order to maintain back‐
       ward compatibility with previous versions of the operating system.  The
       netdb.h header file defines the protoent_data structure.

ERRORS
       Current	industry  standards do not define error values for the endpro‐
       toent() function.

FILES
       Contains protocol names.	 The database service selection	 configuration
       file.

SEE ALSO
       Functions: getprotoent(3), getprotobynumber(3), getprotobyname(3), set‐
       protoent(3).

       Files: protocols(4), svc.conf(4)

       Networks: nis_intro(7)

       Standards: standards(5)

       Network Programmer's Guide

								endprotoent(3)
[top]

List of man pages available for DigitalUNIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net