Lines Matching refs:this
54 static void ho_close(struct irs_ho *this);
55 static struct hostent * ho_byname(struct irs_ho *this, const char *name);
56 static struct hostent * ho_byname2(struct irs_ho *this, const char *name,
58 static struct hostent * ho_byaddr(struct irs_ho *this, const void *addr,
60 static struct hostent * ho_next(struct irs_ho *this);
61 static void ho_rewind(struct irs_ho *this);
62 static void ho_minimize(struct irs_ho *this);
63 static struct __res_state * ho_res_get(struct irs_ho *this);
64 static void ho_res_set(struct irs_ho *this,
67 static struct addrinfo * ho_addrinfo(struct irs_ho *this, const char *name,
70 static int init(struct irs_ho *this);
75 irs_gen_ho(struct irs_acc *this) { in irs_gen_ho() argument
76 struct gen_p *accpvt = (struct gen_p *)this->private; in irs_gen_ho()
110 ho_close(struct irs_ho *this) { in ho_close() argument
111 struct pvt *pvt = (struct pvt *)this->private; in ho_close()
113 ho_minimize(this); in ho_close()
117 memput(this, sizeof *this); in ho_close()
121 ho_byname(struct irs_ho *this, const char *name) { in ho_byname() argument
122 struct pvt *pvt = (struct pvt *)this->private; in ho_byname()
129 if (init(this) == -1) in ho_byname()
164 ho_byname2(struct irs_ho *this, const char *name, int af) { in ho_byname2() argument
165 struct pvt *pvt = (struct pvt *)this->private; in ho_byname2()
172 if (init(this) == -1) in ho_byname2()
203 ho_byaddr(struct irs_ho *this, const void *addr, int len, int af) { in ho_byaddr() argument
204 struct pvt *pvt = (struct pvt *)this->private; in ho_byaddr()
212 if (init(this) == -1) in ho_byaddr()
244 ho_next(struct irs_ho *this) { in ho_next() argument
245 struct pvt *pvt = (struct pvt *)this->private; in ho_next()
266 ho_rewind(struct irs_ho *this) { in ho_rewind() argument
267 struct pvt *pvt = (struct pvt *)this->private; in ho_rewind()
278 ho_minimize(struct irs_ho *this) { in ho_minimize() argument
279 struct pvt *pvt = (struct pvt *)this->private; in ho_minimize()
292 ho_res_get(struct irs_ho *this) { in ho_res_get() argument
293 struct pvt *pvt = (struct pvt *)this->private; in ho_res_get()
303 ho_res_set(this, res, free); in ho_res_get()
310 ho_res_set(struct irs_ho *this, struct __res_state *res, in ho_res_set() argument
312 struct pvt *pvt = (struct pvt *)this->private; in ho_res_set()
331 ho_addrinfo(struct irs_ho *this, const char *name, const struct addrinfo *pai) in ho_addrinfo() argument
333 struct pvt *pvt = (struct pvt *)this->private; in ho_addrinfo()
340 if (init(this) == -1) in ho_addrinfo()
374 init(struct irs_ho *this) { in init() argument
375 struct pvt *pvt = (struct pvt *)this->private; in init()
377 if (!pvt->res && !ho_res_get(this)) in init()