/barrelfish-master/lib/libc/resolv/ |
H A D | res_state.c | 53 res_state statp = ptr; local 55 if (statp->_u._ext.ext != NULL) 56 res_ndestroy(statp); 57 free(statp); 67 res_check_reload(res_state statp) argument 73 if ((statp->options & RES_INIT) == 0) { 74 return (statp); 77 ext = statp->_u._ext.ext; 79 return (statp); 84 return (statp); 100 res_state statp; local [all...] |
H A D | res_data.c | 82 res_state statp = &_res; local 103 if (!statp->retrans) 104 statp->retrans = RES_TIMEOUT; 105 if (!statp->retry) 106 statp->retry = RES_DFLRETRY; 107 if (!(statp->options & RES_INIT)) 108 statp->options = RES_DEFAULT; 110 return (__res_vinit(statp, 1)); 125 res_state statp = &_res; local 126 if ((statp 142 res_state statp = &_res; local 154 res_state statp = &_res; local 169 res_state statp = &_res; local 196 res_state statp = &_res; local 210 res_state statp = &_res; local 227 res_state statp = &_res; local 242 res_state statp = &_res; local 258 res_state statp = &_res; local 271 res_state statp = &_res; local 297 res_state statp; local [all...] |
H A D | res_init.c | 164 res_ninit(res_state statp) { argument 167 return (__res_vinit(statp, 0)); 172 __res_vinit(res_state statp, int preinit) { argument 188 RES_SET_H_ERRNO(statp, 0); 189 if (statp->_u._ext.ext != NULL) 190 res_ndestroy(statp); 193 statp->retrans = RES_TIMEOUT; 194 statp->retry = RES_DFLRETRY; 195 statp->options = RES_DEFAULT; 198 statp 596 res_setoptions(res_state statp, const char *options, const char *source) argument 756 res_rndinit(res_state statp) argument 775 res_nrandomid(res_state statp) argument 805 res_nclose(res_state statp) argument 822 res_ndestroy(res_state statp) argument 837 res_get_nibblesuffix(res_state statp) argument 844 res_get_nibblesuffix2(res_state statp) argument 852 res_setservers(res_state statp, const union res_sockaddr_union *set, int cnt) argument 903 res_getservers(res_state statp, union res_sockaddr_union *set, int cnt) argument [all...] |
H A D | res_send.c | 172 res_ourserver_p(const res_state statp, const struct sockaddr *sa) { argument 180 for (ns = 0; ns < statp->nscount; ns++) { 181 srv = (struct sockaddr_in *)get_nsaddr(statp, ns); 190 if (EXT(statp).ext == NULL) 193 for (ns = 0; ns < statp->nscount; ns++) { 194 srv6 = (struct sockaddr_in6 *)get_nsaddr(statp, ns); 303 res_nsend(res_state statp, argument 313 if (statp->nscount == 0 || EXT(statp).ext == NULL) { 321 DprintQ((statp 599 get_nsaddr(res_state statp, size_t n) argument 620 send_vc(res_state statp, const u_char *buf, int buflen, u_char *ans, int anssiz, int *terrno, int ns) argument 822 send_dg(res_state statp, int kq, const u_char *buf, int buflen, u_char *ans, int anssiz, int *terrno, int ns, int tries, int *v_circuit, int *gotsomewhere) argument 1097 Aerror(const res_state statp, FILE *file, const char *string, int error, const struct sockaddr *address, int alen) argument 1119 Perror(const res_state statp, FILE *file, const char *string, int error) argument [all...] |
H A D | res_query.c | 111 res_nquery(res_state statp, argument 123 oflags = statp->_flags; 128 if (statp->options & RES_DEBUG) 132 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL, 135 if (n > 0 && (statp->_flags & RES_F_EDNS0ERR) == 0 && 136 (statp->options & (RES_USE_EDNS0|RES_USE_DNSSEC|RES_NSID))) { 137 n = res_nopt(statp, n, buf, sizeof(buf), anslen); 138 if (n > 0 && (statp->options & RES_NSID) != 0U) { 140 n = res_nopt_rdata(statp, n, buf, sizeof(buf), rdata, 147 if (statp 212 res_nsearch(res_state statp, const char *name, int class, int type, u_char *answer, int anslen) argument 406 res_nquerydomain(res_state statp, const char *name, const char *domain, int class, int type, u_char *answer, int anslen) argument 451 res_hostalias(const res_state statp, const char *name, char *dst, size_t siz) argument [all...] |
H A D | res_debug.h | 24 # define Aerror(statp, file, string, error, address) /*empty*/ 25 # define Perror(statp, file, string, error) /*empty*/ 30 res_pquery(statp, query, size, stdout);\
|
H A D | res_private.h | 23 res_ourserver_p(const res_state statp, const struct sockaddr *sa);
|
H A D | res_findzonecut.c | 96 if ((statp->options & RES_DEBUG) != 0U) res_dprintf x; \ 158 res_findzonecut(res_state statp, const char *dname, ns_class class, int opts, argument 172 result = res_findzonecut2(statp, dname, class, opts, zname, zsize, 184 res_findzonecut2(res_state statp, const char *dname, ns_class class, int opts, argument 195 save_pfcode = statp->pfcode; 196 statp->pfcode |= RES_PRF_HEAD2 | RES_PRF_HEAD1 | RES_PRF_HEADX | 202 if ((n = get_soa(statp, dname, class, opts, zname, zsize, 205 (n = satisfy(statp, mname, &nsrrs, addrs, naddrs)) > 0)) 209 if ((n = get_ns(statp, zname, class, opts, &nsrrs)) < 0 || 211 (n = satisfy(statp, mnam 228 satisfy(res_state statp, const char *mname, rrset_ns *nsrrsp, union res_sockaddr_union *addrs, int naddrs) argument 256 add_addrs(res_state statp, rr_ns *nsrr, union res_sockaddr_union *addrs, int naddrs) argument 274 get_soa(res_state statp, const char *dname, ns_class class, int opts, char *zname, size_t zsize, char *mname, size_t msize, rrset_ns *nsrrsp) argument 414 get_ns(res_state statp, const char *zname, ns_class class, int opts, rrset_ns *nsrrsp) argument 447 get_glue(res_state statp, ns_class class, int opts, rrset_ns *nsrrsp) argument 522 save_ns(res_state statp, ns_msg *msg, ns_sect sect, const char *owner, ns_class class, int opts, rrset_ns *nsrrsp) argument 581 save_a(res_state statp, ns_msg *msg, ns_sect sect, const char *owner, ns_class class, int opts, rr_ns *nsrr) argument 675 do_query(res_state statp, const char *dname, ns_class class, ns_type qtype, u_char *resp, ns_msg *msg) argument [all...] |
H A D | res_mkquery.c | 96 res_nmkquery(res_state statp, argument 114 if (statp->options & RES_DEBUG) 125 statp->id = res_nrandomid(statp); 126 hp->id = htons(statp->id); 128 hp->rd = (statp->options & RES_RECURSE) != 0U; 208 res_nopt(res_state statp, argument 219 if ((statp->options & RES_DEBUG) != 0U) 240 if (statp->options & RES_USE_DNSSEC) { 242 if (statp 264 res_nopt_rdata(res_state statp, int n0, u_char *buf, int buflen, u_char *rdata, u_short code, u_short len, u_char *data) argument [all...] |
H A D | res_update.c | 90 if ((statp->options & RES_DEBUG) != 0U) res_dprintf x; \ 97 res_nupdate(res_state statp, ns_updrec *rrecp_in, ns_tsig_key *key) { argument 119 nscnt = res_findzonecut2(statp, rrecp->r_dname, tgrp.z_class, 162 n = res_nmkupdate(statp, HEAD(zptr->z_rrlist), 169 nscount = res_getservers(statp, nsaddrs, MAXNS); 170 res_setservers(statp, zptr->z_nsaddrs, zptr->z_nscount); 176 RES_SET_H_ERRNO(statp, NO_RECOVERY); 179 n = res_nsendsigned(statp, packet, n, key, 183 n = res_nsend(statp, packet, n, answer, sizeof answer); 193 res_setservers(statp, nsaddr [all...] |
H A D | res_debug.c | 134 fp_resstat(const res_state statp, FILE *file) { argument 139 if (statp->options & mask) 145 do_section(const res_state statp, argument 158 sflag = (statp->pfcode & pflag); 159 if (statp->pfcode && !sflag) 176 (statp->pfcode & RES_PRF_HEAD1)) 180 if (rrnum == 0 && sflag != 0 && (statp->pfcode & RES_PRF_HEAD1)) 274 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) { argument 294 if ((!statp->pfcode) || (statp [all...] |
H A D | res_mkupdate.c | 94 res_nmkupdate(res_state statp, ns_updrec *rrecp_in, u_char *buf, int buflen) { argument 120 statp->id = res_nrandomid(statp); 121 hp->id = htons(statp->id);
|
/barrelfish-master/lib/libc/net/ |
H A D | gethostbydns.c | 126 RES_SET_H_ERRNO(statp, NO_RECOVERY); \ 134 RES_SET_H_ERRNO(statp, NO_RECOVERY); \ 141 struct hostent *he, struct hostent_data *hed, res_state statp) 167 RES_SET_H_ERRNO(statp, NO_RECOVERY); 181 RES_SET_H_ERRNO(statp, NO_RECOVERY); 186 RES_SET_H_ERRNO(statp, NO_RECOVERY); 197 RES_SET_H_ERRNO(statp, NO_RECOVERY); 248 RES_SET_H_ERRNO(statp, NO_RECOVERY); 278 RES_SET_H_ERRNO(statp, NO_RECOVERY); 317 RES_SET_H_ERRNO(statp, NO_RECOVER 140 gethostanswer(const querybuf *answer, int anslen, const char *qname, int qtype, struct hostent *he, struct hostent_data *hed, res_state statp) argument 438 res_state statp; local 475 res_state statp; local 568 res_state statp; local 758 res_state statp; local 770 res_state statp; local [all...] |
H A D | getnetbydns.c | 157 struct netent_data *ned, res_state statp) 192 RES_SET_H_ERRNO(statp, HOST_NOT_FOUND); 194 RES_SET_H_ERRNO(statp, TRY_AGAIN); 240 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 247 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 258 RES_SET_H_ERRNO(statp, TRY_AGAIN); 277 res_state statp; local 287 statp = __res_state(); 288 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) 156 getnetanswer(querybuf *answer, int anslen, int net_i, struct netent *ne, struct netent_data *ned, res_state statp) argument 382 res_state statp; local 448 res_state statp; local 460 res_state statp; local [all...] |
H A D | gethostbyht.c | 92 res_state statp) 100 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 105 RES_SET_H_ERRNO(statp, HOST_NOT_FOUND); 147 RES_SET_H_ERRNO(statp, NO_RECOVERY); 171 RES_SET_H_ERRNO(statp, NETDB_SUCCESS); 181 res_state statp; local 183 statp = __res_state(); 184 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) { 185 RES_SET_H_ERRNO(statp, NETDB_INTERNA 91 gethostent_p(struct hostent *he, struct hostent_data *hed, int mapped, res_state statp) argument 231 res_state statp; local 295 res_state statp; local [all...] |
H A D | gethostbynis.c | 60 res_state statp; local 62 statp = __res_state(); 72 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 78 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 84 RES_SET_H_ERRNO(statp, HOST_NOT_FOUND); 106 if (statp->options & RES_USE_INET6) { 118 RES_SET_H_ERRNO(statp, HOST_NOT_FOUND); 135 RES_SET_H_ERRNO(statp, NO_RECOVERY); 212 res_state statp; local 224 statp 261 res_state statp; local [all...] |
H A D | getnetbyht.c | 156 res_state statp; local 158 statp = __res_state(); 160 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 161 *h_errnop = statp->res_h_errno; 167 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 168 *h_errnop = statp->res_h_errno; 200 res_state statp; local 210 statp = __res_state(); 212 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 213 *h_errnop = statp 252 res_state statp; local [all...] |
H A D | gethostnamadr.c | 160 res_state statp; local 174 statp = __res_state(); 175 res_options = statp->options & (RES_RECURSE | RES_DEFNAMES | 433 size_t buflen, res_state statp) 440 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 447 RES_SET_H_ERRNO(statp, HOST_NOT_FOUND); 452 if (af == AF_INET && (statp->options & RES_USE_INET6) != 0U) { 467 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 477 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 480 RES_SET_H_ERRNO(statp, NETDB_SUCCES 432 fakeaddr(const char *name, int af, struct hostent *hp, char *buf, size_t buflen, res_state statp) argument 488 res_state statp; local 512 res_state statp; local 524 gethostbyname_internal(const char *name, int af, struct hostent *hp, char *buf, size_t buflen, struct hostent **result, int *h_errnop, res_state statp) argument 591 res_state statp; local [all...] |
H A D | getnetbynis.c | 142 res_state statp; local 151 statp = __res_state(); 153 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 154 *h_errnop = statp->res_h_errno; 159 *h_errnop = statp->res_h_errno; 164 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 165 *h_errnop = statp->res_h_errno; 192 res_state statp; local 202 statp = __res_state(); 204 RES_SET_H_ERRNO(statp, NETDB_INTERNA [all...] |
H A D | name6.c | 221 res_state statp; local 273 statp = __res_state(); 274 if ((statp->options & RES_INIT) == 0) { 275 if (res_ninit(statp) < 0) { 281 options = statp->options; 282 statp->options &= ~RES_USE_INET6; 295 *errp = statp->res_h_errno; 309 *errp = statp->res_h_errno; 311 statp->options = options; 312 return _hpsort(hp, statp); 319 res_state statp; local 588 _hpsort(struct hostent *hp, res_state statp) argument [all...] |
H A D | getaddrinfo.c | 1739 res_state statp; local 1750 statp = __res_state(); 1751 res_options = statp->options & (RES_RECURSE | RES_DEFNAMES |
|
/barrelfish-master/lib/libc/xdr/ |
H A D | xdr_rec.c | 521 __xdrrec_getrec(XDR *xdrs, enum xprt_stat *statp, bool_t expectdata) argument 531 *statp = expectdata ? XPRT_DIED : XPRT_IDLE; 535 *statp = XPRT_DIED; 541 *statp = XPRT_MOREREQS; 548 *statp = XPRT_DIED; 571 *statp = XPRT_DIED; 576 *statp = expectdata ? XPRT_DIED : XPRT_IDLE; 591 *statp = XPRT_MOREREQS; 596 *statp = XPRT_MOREREQS;
|
/barrelfish-master/lib/libc/tests/nss/ |
H A D | gethostby_test.c | 929 res_state statp; local 946 statp = __res_state(); 947 if (statp == NULL || ((statp->options & RES_INIT) == 0 && 948 res_ninit(statp) == -1)) { 955 statp->options |= RES_USE_INET6; 957 statp->options &= ~RES_USE_INET6;
|