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

  man pages->HP-UX 11i man pages -> services (4)              
Title
Content
Arch
Section
 

Contents


 services(4)                                                     services(4)




 NAME    [Toc]    [Back]
      services - service name data base

 DESCRIPTION    [Toc]    [Back]
      The file /etc/services associates official service names and aliases
      with the port number and protocol the services use.  For each service
      a single line should be present with the following information:

           <official service name>   <port number/protocol name>   <aliases>

      Port numbers 0 through 1023 are assigned by RFC 1700. This RFC also
      lists the conventional use of various ports with numbers greater than
      1023.

      Aliases are other names under which a service is known.  Library
      routines such as getservbyname() can be invoked with a service alias
      instead of the service official name.  For example:

           shell   514/tcp    cmd

      In this example, getservbyname() can be invoked with cmd instead of
      shell:

           sp = getservbyname("cmd", "tcp");

      instead of

           sp = getservbyname("shell", "tcp");

      Both produce the same results.

      A line cannot start with a space or tab.  Items are separated by any
      number of blanks (space or tab characters in any combination).  The
      port number and protocol name are considered a single item.  A / is
      used to separate the port and protocol (for example, 512/tcp).  A #
      character indicates the beginning of a comment.  Characters from the #
      to the end of the line are not interpreted by routines which search
      the file.

      Service names can contain any printable character other than a white
      space, newline, or comment character.  Trailing blanks (spaces or
      tabs) are allowed at the end of a line.

      Not all services listed in this file are available on HP-UX.

 EXAMPLES    [Toc]    [Back]
           shell           514/tcp   cmd
           telnet          23/tcp
           login           513/tcp





 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003






 services(4)                                                     services(4)




 AUTHOR    [Toc]    [Back]
      services was developed by the University of California, Berkeley.

 FILES    [Toc]    [Back]
      /etc/services

 SEE ALSO    [Toc]    [Back]
      getservent(3N).


 Hewlett-Packard Company            - 2 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
ypcat Tru64 print values from an Network Information Service (NIS) data base
ndbm IRIX data base subroutines
networks FreeBSD network name data base
protocols FreeBSD protocol name data base
networks HP-UX network name data base
hosts HP-UX host name data base
dbm IRIX data base subroutines
hosts FreeBSD host name data base
protocols HP-UX protocol name data base
hosts Tru64 The host name data base
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service