SERVICES(5) Series 300 Only SERVICES(5)
NAME
services - service name data base
HP-UX COMPATIBILITY
Level: HP-UX/NON-STANDARD
Origin: UCB
Remarks: Implemented on the Series 300 only.
DESCRIPTION
This file 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>
Aliases are other names under which a service is also known.
Libraries like getservbyname can be invoked with a service
alias instead of the service official name. For example:
shell 514/tcp cmd
So, in this example, getservbyname can be invoked with
``cmd'', instead of ``shell''.
sp = getservbyname("cmd", "tcp");
instead of
sp = getservbyname("shell", "tcp");
Both will produce the same results.
A line cannot start with a space. Items are separated by
any number of blanks and/or tab characters. The port number
and protocol name are considered a single item; a `/' is
used to separate the port and protocol (e.g. "512/tcp"). A
`#' indicates the beginning of a comment; characters up to
the end of the line are not interpreted by routines which
search the file.
Service names may contain any printable character other than
a white space, newline, or comment character. Trailing
blanks or tabs are allowed at the end of a line.
EXAMPLES
shell 514/tcp cmd
telnet 23/tcp
login 513/tcp
Hewlett-Packard - 1 - (printed 7/16/86)
SERVICES(5) Series 300 Only SERVICES(5)
SEE ALSO
getservent(3N).
Hewlett-Packard - 2 - (printed 7/16/86)