*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> endprotoent_r (3)              
Title
Content
Arch
Section
 

endprotoent(3)

Contents


NAME    [Toc]    [Back]

       endprotoent,  endprotoent_r  - Close the network protocols
       database file

SYNOPSIS    [Toc]    [Back]

       #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    [Toc]    [Back]

       Standard C Library (libc)

STANDARDS    [Toc]    [Back]

       Interfaces documented on this reference  page  conform  to
       industry standards as follows:

       endprotoent():  XNS4.0, XNS5.0

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

PARAMETERS    [Toc]    [Back]

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

DESCRIPTION    [Toc]    [Back]

       The   endprotoent()   function  closes  either  the  local
       /etc/protocols file or the NIS distributed protocols file,
       previously  opened  with  the  getprotoent(),  getprotobyname(),
 or getprotobynumber() function. To determine 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 network protocols  database  file.
       In  this  instance, the network protocols database file is
       not closed until a call to the exit() function.  A  second
       setprotent() call must be issued with a parameter equal to
       0 (zero) in order to ensure that a following endprotoent()
       function will succeed.

NOTES    [Toc]    [Back]

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








ERRORS    [Toc]    [Back]

       Current  industry standards do not define error values for
       the endprotoent() function.

FILES    [Toc]    [Back]

       Contains protocol names.  The database  service  selection
       configuration file.

SEE ALSO    [Toc]    [Back]

      
      
       Functions:  getprotoent(3), getprotobynumber(3), getprotobyname(3), setprotoent(3).

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

       Networks: nis_intro(7)

       Standards: standards(5)

       Network Programmer's Guide



                                                   endprotoent(3)
[ Back ]
 Similar pages
Name OS Title
endservent_r Tru64 Close the network services database file.
endservent Tru64 Close the network services database file.
class_close Tru64 close the class database file
AFclosefile IRIX close an audio file, update file header if file was opened for write access.
protocols Linux the protocols definition file
setprotoent_r Tru64 Open or rewind the protocols file
setprotoent Tru64 Open or rewind the protocols file
close IRIX close a file descriptor
close Linux close a file descriptor
VOP_CLOSE FreeBSD open or close a file
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service