Lines Matching defs:rs
38 res_static rs = __res_get_static();
39 if (rs) {
40 rs->servent_ptr = NULL;
51 getservent_r( res_static rs )
61 p = rs->servent_ptr;
82 p2 = realloc( (char*)rs->servent.s_aliases, total );
87 rs->servent.s_aliases = (char**) p2;
89 rs->servent.s_name = p2;
91 rs->servent.s_proto = p2;
94 memcpy( rs->servent.s_name, p+1, namelen );
95 rs->servent.s_name[namelen] = 0;
102 rs->servent.s_port = htons(port);
103 rs->servent.s_proto = p[2] == 't' ? "tcp" : "udp";
108 rs->servent.s_aliases[nn] = p2;
114 rs->servent.s_aliases[nn] = NULL;
116 rs->servent_ptr = p;
118 return &rs->servent;
124 res_static rs = __res_get_static();
126 if (rs == NULL) return NULL;
128 return getservent_r(rs);