Query: hesiod_free_servent
OS: centos
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
HESIOD(3) Library Functions Manual HESIOD(3)NAMEhesiod_getservbyname, hesiod_free_servent - Hesiod functions for retrieving service informationSYNOPSIS#include <hesiod.h> struct servent *hesiod_getservbyname(void *context, const char *name, const char *proto) void hesiod_free_servent(void *context, struct servent *serv) cc file.c -lhesiodDESCRIPTIONThis family of functions allows you to retrieve service to port mappings using Hesiod. To perform lookups, you need an initialized Hesiod context; see hesiod(3) for details. Information is returned in the same format as by getservbyname. It is the caller's responsibility to call hesiod_free_servent with the returned service entry to free the resources used by the service entry. Hesiod queries for service information are made using the ``service'' Hesiod type, using the service name as the Hesiod name. The corre- sponding records should be space-separated lists of strings giving the service name, protocol, port number (in decimal), and zero or more aliases for the service. There may be multiple records per service name; hesiod_getservbyname will pick the first one whose protocol matches proto.RETURN VALUESOn failure, hesiod_getservbyname returns NULL and sets the global variable errno to indicate the error.ERRORShesiod_getservbyname may fail for any of the reasons the routine hesiod_resolve may fail.SEE ALSOhesiod(3) 30 November 1996 HESIOD(3)
Related Man Pages |
---|
hesiod_free_postoffice(3) - redhat |
hesiod_getservbyname(3) - redhat |
hesiod_getpwuid(3) - redhat |
hesiod_free_servent(3) - centos |
hesiod_getservbyname(3) - centos |
Similar Topics in the Unix Linux Community |
---|
CNN phishers trawl for victims |