Home
last modified time | relevance | path

Searched refs:statp (Results 1 – 25 of 25) sorted by relevance

/dragonfly/lib/libc/resolv/
H A Dres_init.c210 statp->ndots = 1; in __res_vinit()
217 statp->_u._ext.ext = malloc(sizeof(*statp->_u._ext.ext)); in __res_vinit()
220 statp->_u._ext.ext->nsaddrs[0].sin = statp->nsaddr; in __res_vinit()
240 statp->nsort = 0; in __res_vinit()
261 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit()
268 (void)strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit()
269 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit()
322 strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit()
323 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit()
338 strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit()
[all …]
H A Dres_send.c314 if (statp->nscount == 0 || EXT(statp).ext == NULL) { in res_nsend()
344 if (EXT(statp).nscount != statp->nscount) in res_nsend()
391 EXT(statp).nscount = statp->nscount; in res_nsend()
415 statp->nsaddr_list[ns] = statp->nsaddr_list[ns + 1]; in res_nsend()
416 EXT(statp).nssocks[ns] = EXT(statp).nssocks[ns + 1]; in res_nsend()
417 EXT(statp).nstimes[ns] = EXT(statp).nstimes[ns + 1]; in res_nsend()
560 res_nclose(statp); in res_nsend()
573 res_nclose(statp); in res_nsend()
604 if (!statp->nsaddr_list[n].sin_family && EXT(statp).ext) { in get_nsaddr()
647 if (statp->_vcsock >= 0 && (statp->_flags & RES_F_VC) != 0) {
[all …]
H A Dres_query.c107 res_nquery(res_state statp, in res_nquery() argument
119 oflags = statp->_flags; in res_nquery()
124 if (statp->options & RES_DEBUG) in res_nquery()
143 if (statp->options & RES_DEBUG) in res_nquery()
157 if (statp->options & RES_DEBUG) in res_nquery()
163 if (statp->options & RES_DEBUG) in res_nquery()
172 if (statp->options & RES_DEBUG) in res_nquery()
208 res_nsearch(res_state statp, in res_nsearch() argument
294 switch (statp->res_h_errno) { in res_nsearch()
354 res_nquerydomain(res_state statp, in res_nquerydomain() argument
[all …]
H A Dres_state.c49 res_state statp = ptr; in free_res() local
51 if (statp->_u._ext.ext != NULL) in free_res()
52 res_ndestroy(statp); in free_res()
53 free(statp); in free_res()
65 res_state statp; in __res_state() local
75 if (statp != NULL) in __res_state()
76 return (statp); in __res_state()
77 statp = calloc(1, sizeof(*statp)); in __res_state()
78 if (statp == NULL) in __res_state()
84 return (statp); in __res_state()
[all …]
H A Dres_findzonecut.c189 save_pfcode = statp->pfcode; in res_findzonecut2()
210 n = satisfy(statp, mname, &nsrrs, addrs, naddrs); in res_findzonecut2()
215 statp->pfcode = save_pfcode; in res_findzonecut2()
231 x = add_addrs(statp, nsrr, addrs, naddrs); in satisfy()
240 x = add_addrs(statp, nsrr, addrs, naddrs); in satisfy()
250 add_addrs(res_state statp, rr_ns *nsrr, in add_addrs() argument
376 if (save_ns(statp, &msg, ns_s_ns, in get_soa()
457 n = do_query(statp, nsrr->name, class, ns_t_a, in get_glue()
564 if (save_a(statp, msg, ns_s_ar, in save_ns()
575 save_a(res_state statp, ns_msg *msg, ns_sect sect, in save_a() argument
[all …]
H A Dres_update.c85 if ((statp->options & RES_DEBUG) != 0U) res_dprintf x; \
92 res_nupdate(res_state statp, ns_updrec *rrecp_in, ns_tsig_key *key) { in res_nupdate() argument
114 nscnt = res_findzonecut2(statp, rrecp->r_dname, tgrp.z_class, in res_nupdate()
157 n = res_nmkupdate(statp, HEAD(zptr->z_rrlist), in res_nupdate()
164 nscount = res_getservers(statp, nsaddrs, MAXNS); in res_nupdate()
165 res_setservers(statp, zptr->z_nsaddrs, zptr->z_nscount); in res_nupdate()
172 RES_SET_H_ERRNO(statp, NO_RECOVERY); in res_nupdate()
176 n = res_nsendsigned(statp, packet, n, key, in res_nupdate()
180 n = res_nsend(statp, packet, n, answer, sizeof answer); in res_nupdate()
190 res_setservers(statp, nsaddrs, nscount); in res_nupdate()
[all …]
H A Dres_mkquery.c93 res_nmkquery(res_state statp, in res_nmkquery() argument
111 if (statp->options & RES_DEBUG) in res_nmkquery()
122 hp->id = htons(++statp->id); in res_nmkquery()
124 hp->rd = (statp->options & RES_RECURSE) != 0U; in res_nmkquery()
204 res_nopt(res_state statp, in res_nopt() argument
215 if ((statp->options & RES_DEBUG) != 0U) in res_nopt()
236 if (statp->options & RES_USE_DNSSEC) { in res_nopt()
238 if (statp->options & RES_DEBUG) in res_nopt()
260 res_nopt_rdata(res_state statp, in res_nopt_rdata() argument
272 if ((statp->options & RES_DEBUG) != 0U) in res_nopt_rdata()
H A Dres_debug.c133 fp_resstat(const res_state statp, FILE *file) { in fp_resstat() argument
138 if (statp->options & mask) in fp_resstat()
144 do_section(const res_state statp, in do_section() argument
157 sflag = (statp->pfcode & pflag); in do_section()
158 if (statp->pfcode && !sflag) in do_section()
175 (statp->pfcode & RES_PRF_HEAD1)) in do_section()
293 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX) || rcode) in res_pquery()
297 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX)) in res_pquery()
299 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEAD2)) { in res_pquery()
318 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEAD1)) { in res_pquery()
[all …]
H A Dres_debug.h24 # define Aerror(statp, file, string, error, address) /*empty*/ argument
25 # define Perror(statp, file, string, error) /*empty*/ argument
30 res_pquery(statp, query, size, stdout);\
H A Dres_private.h18 res_ourserver_p(const res_state statp, const struct sockaddr *sa);
H A Dres_mkupdate.c87 res_nmkupdate(res_state statp, ns_updrec *rrecp_in, u_char *buf, int buflen) { in res_nmkupdate() argument
113 hp->id = htons(++statp->id); in res_nmkupdate()
/dragonfly/lib/libc/net/
H A Dgetnetbydns.c275 res_state statp; in _dns_getnetbyaddr() local
285 statp = __res_state(); in _dns_getnetbyaddr()
286 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) { in _dns_getnetbyaddr()
379 res_state statp; in _dns_getnetbyname() local
388 statp = __res_state(); in _dns_getnetbyname()
389 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) { in _dns_getnetbyname()
443 res_state statp; in _setnetdnsent() local
445 statp = __res_state(); in _setnetdnsent()
446 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) in _setnetdnsent()
455 res_state statp; in _endnetdnsent() local
[all …]
H A Dgethostbydns.c391 statp); in gethostanswer()
436 res_state statp; in __dns_getanswer() local
438 statp = __res_state(); in __dns_getanswer()
457 he, hed, statp); in __dns_getanswer()
474 res_state statp; in _dns_gethostbyname() local
486 statp = __res_state(); in _dns_gethostbyname()
557 res_state statp; in _dns_gethostbyaddr() local
737 res_state statp; in _sethostdnsent() local
740 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) in _sethostdnsent()
749 res_state statp; in _endhostdnsent() local
[all …]
H A Dgethostbynis.c59 res_state statp; in _gethostbynis() local
61 statp = __res_state(); in _gethostbynis()
209 res_state statp; in _gethostbynisname() local
211 statp = __res_state(); in _gethostbynisname()
218 oresopt = statp->options; in _gethostbynisname()
236 res_state statp; in _gethostbynisaddr() local
238 statp = __res_state(); in _gethostbynisaddr()
267 res_state statp; in _nis_gethostbyname() local
279 statp = __res_state(); in _nis_gethostbyname()
315 res_state statp; in _nis_gethostbyaddr() local
[all …]
H A Dgethostbyht.c88 res_state statp) in gethostent_p() argument
177 res_state statp; in gethostent_r() local
179 statp = __res_state(); in gethostent_r()
180 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) { in gethostent_r()
182 *h_errnop = statp->res_h_errno; in gethostent_r()
187 *h_errnop = statp->res_h_errno; in gethostent_r()
190 if (gethostent_p(&he, hed, statp->options & RES_USE_INET6, statp) != 0) in gethostent_r()
225 res_state statp; in _ht_gethostbyname() local
238 statp = __res_state(); in _ht_gethostbyname()
288 res_state statp; in _ht_gethostbyaddr() local
[all …]
H A Dgethostnamadr.c159 res_state statp; in host_id_func() local
173 statp = __res_state(); in host_id_func()
483 res_state statp; in gethostbyname_r() local
485 statp = __res_state(); in gethostbyname_r()
486 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) { in gethostbyname_r()
507 res_state statp; in gethostbyname2_r() local
509 statp = __res_state(); in gethostbyname2_r()
510 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) { in gethostbyname2_r()
515 h_errnop, statp)); in gethostbyname2_r()
584 res_state statp; in gethostbyaddr_r() local
[all …]
H A Dgetnetbyht.c152 res_state statp; in getnetent_r() local
154 statp = __res_state(); in getnetent_r()
157 *h_errnop = statp->res_h_errno; in getnetent_r()
194 res_state statp; in _ht_getnetbyname() local
204 statp = __res_state(); in _ht_getnetbyname()
207 *h_errnop = statp->res_h_errno; in _ht_getnetbyname()
223 *h_errnop = statp->res_h_errno; in _ht_getnetbyname()
227 *h_errnop = statp->res_h_errno; in _ht_getnetbyname()
245 res_state statp; in _ht_getnetbyaddr() local
256 statp = __res_state(); in _ht_getnetbyaddr()
[all …]
H A Dgetnetbynis.c142 res_state statp; in _nis_getnetbyname() local
151 statp = __res_state(); in _nis_getnetbyname()
154 *h_errnop = statp->res_h_errno; in _nis_getnetbyname()
159 *h_errnop = statp->res_h_errno; in _nis_getnetbyname()
163 *h_errnop = statp->res_h_errno; in _nis_getnetbyname()
191 res_state statp; in _nis_getnetbyaddr() local
201 statp = __res_state(); in _nis_getnetbyaddr()
204 *h_errnop = statp->res_h_errno; in _nis_getnetbyaddr()
210 *h_errnop = statp->res_h_errno; in _nis_getnetbyaddr()
244 *h_errnop = statp->res_h_errno; in _nis_getnetbyaddr()
[all …]
H A Dname6.c218 res_state statp; in getipnodebyname() local
270 statp = __res_state(); in getipnodebyname()
272 if (res_ninit(statp) < 0) { in getipnodebyname()
278 options = statp->options; in getipnodebyname()
304 *errp = statp->res_h_errno; in getipnodebyname()
306 statp->options = options; in getipnodebyname()
314 res_state statp; in getipnodebyaddr() local
362 statp = __res_state(); in getipnodebyaddr()
370 options = statp->options; in getipnodebyaddr()
377 statp->options = options; in getipnodebyaddr()
[all …]
H A Dgetaddrinfo.c1465 res_state statp; in addrinfo_id_func() local
1476 statp = __res_state(); in addrinfo_id_func()
1477 res_options = statp->options & (RES_RECURSE | RES_DEFNAMES | in addrinfo_id_func()
/dragonfly/lib/libc/xdr/
H A Dxdr_rec.c511 __xdrrec_getrec(XDR *xdrs, enum xprt_stat *statp, bool_t expectdata) in __xdrrec_getrec() argument
521 *statp = expectdata ? XPRT_DIED : XPRT_IDLE; in __xdrrec_getrec()
525 *statp = XPRT_DIED; in __xdrrec_getrec()
531 *statp = XPRT_MOREREQS; in __xdrrec_getrec()
538 *statp = XPRT_DIED; in __xdrrec_getrec()
561 *statp = XPRT_DIED; in __xdrrec_getrec()
566 *statp = expectdata ? XPRT_DIED : XPRT_IDLE; in __xdrrec_getrec()
581 *statp = XPRT_MOREREQS; in __xdrrec_getrec()
586 *statp = XPRT_MOREREQS; in __xdrrec_getrec()
/dragonfly/lib/librpcsvc/
H A Drstat.c45 rstat(char *host, struct statstime *statp) in rstat() argument
49 (xdrproc_t)xdr_statstime, (char *) statp)); in rstat()
/dragonfly/contrib/cvs-1.12/src/
H A Dlock.c110 static void set_lockers_name (struct stat *statp);
984 set_lockers_name (struct stat *statp) in set_lockers_name() argument
990 pw = (struct passwd *) getpwuid (statp->st_uid); in set_lockers_name()
994 lockers_name = Xasprintf ("uid%lu", (unsigned long) statp->st_uid); in set_lockers_name()
/dragonfly/usr.bin/du/
H A Ddu.c55 #define STBLOCKS(statp) _stblocks(tflag, statp) argument
/dragonfly/crypto/openssh/
H A Dscp.c1438 rsource(char *name, struct stat *statp) in rsource() argument
1454 if (do_times(remout, verbose_mode, statp) < 0) { in rsource()
1460 (u_int) (statp->st_mode & FILEMODEMASK), 0, last); in rsource()