AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
The servent block is as defined in unix C.

Offset     Contents

0     pointer to official name of service
4     pointer to aliases list for the service, or 0 if none.
8     port number
12     pointer to name of protocol

Or, in C :
struct servent {
char *s_name;          /* Official name of service */
char **s_aliases;     /* Alternative names for service */
int  s_port;          /* Port number to use */
char *s_proto;     /* Protocol to use */
};
Service aliases list
The aliases list consists of a 0-terminated list of pointers to the alias names. The list, like the servent block itself, is not static.

[sh-index] Back to list of manuals