struct servent * getservbyport(int port, const char *proto) { struct servent *result; __initbuf(); getservbyport_r(port, proto, &serv, servbuf, SBUFSIZE, &result); return result; }
struct servent *getservbyname(const char *name, const char *proto) { struct servent *result; __initbuf(); getservbyname_r(name, proto, &serv, servbuf, SBUFSIZE, &result); return result; }
struct servent * getservent(void) { struct servent *result; __initbuf(); getservent_r(&serv, servbuf, SBUFSIZE, &result); return result; }
struct protoent * getprotobyname(const char *name) { struct protoent *result; __initbuf(); getprotobyname_r(name, &proto, static_aliases, SBUFSIZE, &result); return result; }
struct protoent * getprotoent(void) { struct protoent *result; __initbuf(); getprotoent_r(&proto, static_aliases, SBUFSIZE, &result); return result; }
struct protoent * getprotobynumber(int proto_num) { struct protoent *result; __initbuf(); getprotobynumber_r(proto_num, &proto, static_aliases, SBUFSIZE, &result); return result; }