/freebsd-11-stable/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 758 res_rndinit(res_state statp) argument 777 res_nrandomid(res_state statp) argument 807 res_nclose(res_state statp) argument 824 res_ndestroy(res_state statp) argument 839 res_get_nibblesuffix(res_state statp) argument 846 res_get_nibblesuffix2(res_state statp) argument 854 res_setservers(res_state statp, const union res_sockaddr_union *set, int cnt) argument 905 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...] |
/freebsd-11-stable/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); 107 if (statp->options & RES_USE_INET6) { 119 RES_SET_H_ERRNO(statp, HOST_NOT_FOUND); 136 RES_SET_H_ERRNO(statp, NO_RECOVERY); 213 res_state statp; local 225 statp 262 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 | 143 res_state statp; local 152 statp = __res_state(); 154 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 155 *h_errnop = statp->res_h_errno; 160 *h_errnop = statp->res_h_errno; 165 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 166 *h_errnop = statp->res_h_errno; 193 res_state statp; local 203 statp = __res_state(); 205 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...] |
/freebsd-11-stable/lib/librpcsvc/ |
H A D | rstat.c | 49 rstat(char *host, struct statstime *statp) argument 53 (xdrproc_t)xdr_statstime, (char *) statp));
|
/freebsd-11-stable/lib/libgeom/ |
H A D | geom_stats.c | 47 static u_char *statp; variable 54 munmap(statp, npages *pagesize); 55 statp = NULL; 68 p = mmap(statp, (npages + 1) * pagesize, 73 statp = p; 99 statp = p; 132 memcpy(sp->ptr, statp, pagesize * npages);
|
/freebsd-11-stable/sys/dev/fatm/ |
H A D | if_fatm.c | 151 H_SYNCSTAT_POSTREAD(sc, q->q.statp); 152 if(H_GETSTAT(q->q.statp) & FATM_STAT_ERROR) { 181 H_SYNCSTAT_POSTREAD(sc, q->q.statp); 182 if (!(H_GETSTAT(q->q.statp) & FATM_STAT_FREE)) { 190 H_SETSTAT(q->q.statp, FATM_STAT_PENDING); 191 H_SYNCSTAT_PREWRITE(sc, q->q.statp); 231 H_SYNCSTAT_POSTREAD(sc, q->q.statp); 232 if (H_GETSTAT(q->q.statp) & FATM_STAT_ERROR) { 268 H_SYNCSTAT_POSTREAD(sc, q->q.statp); 269 if (!(H_GETSTAT(q->q.statp) 716 u_char *statp; local [all...] |
/freebsd-11-stable/contrib/sendmail/src/ |
H A D | map.c | 1230 ** statp -- pointer to status (EX_) 1238 dns_map_lookup(map, name, av, statp) 1242 int *statp; 1270 *statp = EX_UNAVAILABLE; 1288 *statp = EX_TEMPFAIL; 1290 *statp = EX_NOTFOUND; 1293 *statp = EX_OK; 1365 *statp = EX_DATAERR; 1410 *statp = EX_NOTFOUND; 1712 ndbm_map_lookup(map, name, av, statp) [all...] |
H A D | domain.c | 1114 bestmx_map_lookup(map, name, av, statp) 1118 int *statp; 1134 nmx = getmxrr(name, mxhosts, NULL, 0, statp, NULL, -1); 1167 *statp = EX_UNAVAILABLE; 1240 ** statp -- pointer to place to store status. 1249 dns_getcanonname(host, hbsize, trymx, statp, pttl) 1253 int *statp; 1287 *statp = EX_UNAVAILABLE; 1297 *statp = EX_OK; 1414 if (*statp [all...] |
/freebsd-11-stable/usr.bin/kdump/ |
H A D | kdump.c | 1897 ktrstat(struct stat *statp) argument 1905 * note: ktrstruct() has already verified that statp points to a 1910 (uintmax_t)statp->st_dev, (uintmax_t)statp->st_ino); 1912 printf("mode=0%jo, ", (uintmax_t)statp->st_mode); 1914 strmode(statp->st_mode, mode); 1917 printf("nlink=%ju, ", (uintmax_t)statp->st_nlink); 1923 pwd = cap_getpwuid(cappwd, statp->st_uid); 1926 pwd = getpwuid(statp->st_uid); 1929 printf("uid=%ju, ", (uintmax_t)statp [all...] |