| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) | 
Structure for information from the services database
#include <netdb.h>
struct servent {
     char *  s_name;
     char ** s_aliases;
     int    s_port;
     char *  s_proto;   
};
This structure is used to hold the broken-out fields of a line in the network services database, /etc/services. The members of this structure are:
endservent(), getservbyname(), getservbyport(), getservent(), setservent()
/etc/services in the Utilities Reference
| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) |