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

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

endhostent(3)

Contents


NAME    [Toc]    [Back]

       endhostent,  endhostent_r  - End retrieval of network host
       entries

SYNOPSIS    [Toc]    [Back]

       #include <netdb.h>

       void endhostent(
               void );

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

LIBRARY    [Toc]    [Back]

       Standard C Library (libc)

STANDARDS    [Toc]    [Back]

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

       endhostent():  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 endhostent_r() only, this  is  data  for
       the hosts database.

DESCRIPTION    [Toc]    [Back]

       The   endhostent()   function  closes  the  network  hosts
       database (either the local /etc/hosts file or one  of  the
       files  distributed by BIND or NIS), previously opened with
       the gethostbyaddr() or gethostbyname() function.

       If the most recent sethostent()  function  has  been  performed
 with a nonzero parameter, the endhostent() function
       will  not  close  the  network  hosts  database.  In  this
       instance,  the  database is not closed until a call to the
       exit() function. A second sethostent()  function  must  be
       issued  with  a  parameter  equal  to 0 (zero) in order to
       ensure that a following endhostent()  function  will  succeed.

NOTES    [Toc]    [Back]

       [Tru64 UNIX]  The endhostent_r() function is the reentrant
       version of the endhostent() function.  It is supported  in
       order  to  maintain  backward  compatibility with previous
       versions of the operating system. The netdb.h header  file
       defines the hostent and hostent_data structures.

ERRORS    [Toc]    [Back]

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






FILES    [Toc]    [Back]

       Contains the local hostname database.

SEE ALSO    [Toc]    [Back]

      
      
       Networks: bind_intro(7), nis_intro(7)

       Functions:  gethostbyaddr(3),  gethostbyname(3),   gethostent(3), sethostent(3)

       Standards: standards(5)

       Network Programmer's Guide



                                                    endhostent(3)
[ Back ]
 Similar pages
Name OS Title
amlog HP-UX displays host-based controller log entries for a disk array
gethostbyname OpenBSD get network host entry
endhostent OpenBSD get network host entry
gethostbyname IRIX get network host entry
gethostent OpenBSD get network host entry
endhostent FreeBSD get network host entry
gethostbyaddr FreeBSD get network host entry
gethostbyname2 FreeBSD get network host entry
gethostbyname NetBSD get network host entry
gethostent FreeBSD get network host entry
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service