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

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

endservent(3)

Contents


NAME    [Toc]    [Back]

       endservent,  endservent_r  -  Close  the  network services
       database file.

SYNOPSIS    [Toc]    [Back]

       #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 system.  void endservent_r(
               struct servent_data *serv_data );

LIBRARY    [Toc]    [Back]

       Standard C Library (libc)

STANDARDS    [Toc]    [Back]

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

       endservent():  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 endservent_r() only, this  is  data  for
       services database.

DESCRIPTION    [Toc]    [Back]

       The   endservent()   function   closes  either  the  local
       /etc/services file or the NIS distributed  services  file,
       previously  opened with the getservent(), 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    [Toc]    [Back]

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

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

       Contains  service  names.   The database service selection
       configuration file.

SEE ALSO    [Toc]    [Back]

      
      
       Functions:  getservent(3),  getservbyname(3),   getservbyport(3), setservent(3).

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

       Networks: nis_intro(7).

       Standards: standards(5).

       Network Programmer's Guide



                                                    endservent(3)
[ Back ]
 Similar pages
Name OS Title
endprotoent_r Tru64 Close the network protocols database file
endprotoent Tru64 Close the network protocols database file
class_close Tru64 close the class database file
isdn IRIX Integrated Services Digital Network
services Linux Internet network services list
nis IRIX Network Information Services Protocol (Client)
nisserv IRIX Network Information Services Protocol (Server)
rcinet Tru64 Restarts, starts, or stops Internet network services on the system
getservent Tru64 Get a services file entry from the /etc/services file.
getservent_r Tru64 Get a services file entry from the /etc/services file.
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service