Lines Matching refs:servent
38 struct servent* getservent_r(res_static rs) { in getservent_r()
68 p2 = realloc( (char*)rs->servent.s_aliases, total ); in getservent_r()
73 rs->servent.s_aliases = (char**) p2; in getservent_r()
75 rs->servent.s_name = p2; in getservent_r()
77 rs->servent.s_proto = p2; in getservent_r()
80 memcpy( rs->servent.s_name, p+1, namelen ); in getservent_r()
81 rs->servent.s_name[namelen] = 0; in getservent_r()
88 rs->servent.s_port = htons(port); in getservent_r()
89 rs->servent.s_proto = p[2] == 't' ? "tcp" : "udp"; in getservent_r()
94 rs->servent.s_aliases[nn] = p2; in getservent_r()
100 rs->servent.s_aliases[nn] = NULL; in getservent_r()
104 return &rs->servent; in getservent_r()
116 struct servent* getservent(void) { in getservent()
121 struct servent* getservbyname(const char* name, const char* proto) { in getservbyname()
127 struct servent* s; in getservbyname()
137 struct servent* getservbyport(int port, const char* proto) { in getservbyport()
143 struct servent* s; in getservbyport()