SERVICES(4) — Series 300 and 800 Only
NAME
services − service name data base
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>
Reserved port numbers 0 - 255 are assigned by RFC 923.
Aliases are other names under which a service is known. Libraries like 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. 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 (for example, “512/tcp”). A ‘#’ 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 or tabs are allowed at the end of a line.
EXAMPLES
shell 514/tcp cmd
telnet 23/tcp
login 513/tcp
DEPENDENCIES
Implemented on the Series 300 and 800 only.
AUTHOR
UCB (University of California at Berkeley)
SEE ALSO
Hewlett-Packard Company — May 11, 2021