/freebsd-current/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 | 78 res_state statp = &_res; local 99 if (!statp->retrans) 100 statp->retrans = RES_TIMEOUT; 101 if (!statp->retry) 102 statp->retry = RES_DFLRETRY; 103 if (!(statp->options & RES_INIT)) 104 statp->options = RES_DEFAULT; 106 return (__res_vinit(statp, 1)); 121 res_state statp = &_res; local 122 if ((statp 138 res_state statp = &_res; local 150 res_state statp = &_res; local 165 res_state statp = &_res; local 192 res_state statp = &_res; local 206 res_state statp = &_res; local 223 res_state statp = &_res; local 238 res_state statp = &_res; local 254 res_state statp = &_res; local 267 res_state statp = &_res; local 293 res_state statp; local [all...] |
H A D | res_init.c | 159 res_ninit(res_state statp) { argument 162 return (__res_vinit(statp, 0)); 167 __res_vinit(res_state statp, int preinit) { argument 183 RES_SET_H_ERRNO(statp, 0); 184 if (statp->_u._ext.ext != NULL) 185 res_ndestroy(statp); 188 statp->retrans = RES_TIMEOUT; 189 statp->retry = RES_DFLRETRY; 190 statp->options = RES_DEFAULT; 193 statp 583 res_setoptions(res_state statp, const char *options, const char *source) argument 745 res_rndinit(res_state statp) argument 764 res_nrandomid(res_state statp) argument 794 res_nclose(res_state statp) argument 811 res_ndestroy(res_state statp) argument 826 res_get_nibblesuffix(res_state statp) argument 833 res_get_nibblesuffix2(res_state statp) argument 841 res_setservers(res_state statp, const union res_sockaddr_union *set, int cnt) argument 892 res_getservers(res_state statp, union res_sockaddr_union *set, int cnt) argument [all...] |
H A D | res_send.c | 167 res_ourserver_p(const res_state statp, const struct sockaddr *sa) { argument 175 for (ns = 0; ns < statp->nscount; ns++) { 176 srv = (struct sockaddr_in *)get_nsaddr(statp, ns); 185 if (EXT(statp).ext == NULL) 188 for (ns = 0; ns < statp->nscount; ns++) { 189 srv6 = (struct sockaddr_in6 *)get_nsaddr(statp, ns); 298 res_nsend(res_state statp, argument 308 if (statp->nscount == 0 || EXT(statp).ext == NULL) { 316 DprintQ((statp 594 get_nsaddr(res_state statp, size_t n) argument 615 send_vc(res_state statp, const u_char *buf, int buflen, u_char *ans, int anssiz, int *terrno, int ns) argument 817 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 1092 Aerror(const res_state statp, FILE *file, const char *string, int error, const struct sockaddr *address, int alen) argument 1114 Perror(const res_state statp, FILE *file, const char *string, int error) argument [all...] |
H A D | res_query.c | 106 res_nquery(res_state statp, argument 118 oflags = statp->_flags; 123 if (statp->options & RES_DEBUG) 127 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL, 130 if (n > 0 && (statp->_flags & RES_F_EDNS0ERR) == 0 && 131 (statp->options & (RES_USE_EDNS0|RES_USE_DNSSEC|RES_NSID))) { 132 n = res_nopt(statp, n, buf, sizeof(buf), anslen); 133 if (n > 0 && (statp->options & RES_NSID) != 0U) { 135 n = res_nopt_rdata(statp, n, buf, sizeof(buf), rdata, 142 if (statp 207 res_nsearch(res_state statp, const char *name, int class, int type, u_char *answer, int anslen) argument 401 res_nquerydomain(res_state statp, const char *name, const char *domain, int class, int type, u_char *answer, int anslen) argument 446 res_hostalias(const res_state statp, const char *name, char *dst, size_t siz) argument [all...] |
H A D | res_debug.h | 26 # define Aerror(statp, file, string, error, address) /*empty*/ 27 # define Perror(statp, file, string, error) /*empty*/ 32 res_pquery(statp, query, size, stdout);\
|
H A D | res_update.c | 86 if ((statp->options & RES_DEBUG) != 0U) res_dprintf x; \ 93 res_nupdate(res_state statp, ns_updrec *rrecp_in, ns_tsig_key *key) { argument 115 nscnt = res_findzonecut2(statp, rrecp->r_dname, tgrp.z_class, 158 n = res_nmkupdate(statp, HEAD(zptr->z_rrlist), 165 nscount = res_getservers(statp, nsaddrs, MAXNS); 166 res_setservers(statp, zptr->z_nsaddrs, zptr->z_nscount); 172 RES_SET_H_ERRNO(statp, NO_RECOVERY); 175 n = res_nsendsigned(statp, packet, n, key, 179 n = res_nsend(statp, packet, n, answer, sizeof answer); 189 res_setservers(statp, nsaddr [all...] |
H A D | res_private.h | 22 res_ourserver_p(const res_state statp, const struct sockaddr *sa);
|
H A D | res_findzonecut.c | 92 if ((statp->options & RES_DEBUG) != 0U) res_dprintf x; \ 154 res_findzonecut(res_state statp, const char *dname, ns_class class, int opts, argument 168 result = res_findzonecut2(statp, dname, class, opts, zname, zsize, 180 res_findzonecut2(res_state statp, const char *dname, ns_class class, int opts, argument 191 save_pfcode = statp->pfcode; 192 statp->pfcode |= RES_PRF_HEAD2 | RES_PRF_HEAD1 | RES_PRF_HEADX | 198 if ((n = get_soa(statp, dname, class, opts, zname, zsize, 201 (n = satisfy(statp, mname, &nsrrs, addrs, naddrs)) > 0)) 205 if ((n = get_ns(statp, zname, class, opts, &nsrrs)) < 0 || 207 (n = satisfy(statp, mnam 224 satisfy(res_state statp, const char *mname, rrset_ns *nsrrsp, union res_sockaddr_union *addrs, int naddrs) argument 252 add_addrs(res_state statp, rr_ns *nsrr, union res_sockaddr_union *addrs, int naddrs) argument 270 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 410 get_ns(res_state statp, const char *zname, ns_class class, int opts, rrset_ns *nsrrsp) argument 443 get_glue(res_state statp, ns_class class, int opts, rrset_ns *nsrrsp) argument 518 save_ns(res_state statp, ns_msg *msg, ns_sect sect, const char *owner, ns_class class, int opts, rrset_ns *nsrrsp) argument 577 save_a(res_state statp, ns_msg *msg, ns_sect sect, const char *owner, ns_class class, int opts, rr_ns *nsrr) argument 671 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 | 91 res_nmkquery(res_state statp, argument 109 if (statp->options & RES_DEBUG) 120 statp->id = res_nrandomid(statp); 121 hp->id = htons(statp->id); 123 hp->rd = (statp->options & RES_RECURSE) != 0U; 203 res_nopt(res_state statp, argument 214 if ((statp->options & RES_DEBUG) != 0U) 235 if (statp->options & RES_USE_DNSSEC) { 237 if (statp 259 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_debug.c | 129 fp_resstat(const res_state statp, FILE *file) { argument 134 if (statp->options & mask) 140 do_section(const res_state statp, argument 153 sflag = (statp->pfcode & pflag); 154 if (statp->pfcode && !sflag) 171 (statp->pfcode & RES_PRF_HEAD1)) 175 if (rrnum == 0 && sflag != 0 && (statp->pfcode & RES_PRF_HEAD1)) 269 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) { argument 289 if ((!statp->pfcode) || (statp [all...] |
/freebsd-current/sys/dev/sfxge/common/ |
H A D | efx_mon.c | 336 __out efx_mon_stat_t *statp) 341 *statp = EFX_MON_NSTATS; 347 *statp = EFX_MON_STAT_IN_I0V9; 350 *statp = EFX_MON_STAT_CONTROLLER_SLAVE_VPTAT_EXTADC; 353 *statp = EFX_MON_STAT_CONTROLLER_SLAVE_VPTAT; 356 *statp = EFX_MON_STAT_PSU_TEMP; 359 *statp = EFX_MON_STAT_FAN_2; 362 *statp = EFX_MON_STAT_CONTROLLER_INTERNAL_TEMP_EXTADC; 365 *statp = EFX_MON_STAT_BOARD_BACK_TEMP; 368 *statp 334 efx_mon_mcdi_to_efx_stat( __in int mcdi_index, __out efx_mon_stat_t *statp) argument [all...] |
/freebsd-current/lib/libc/net/ |
H A D | gethostbydns.c | 121 RES_SET_H_ERRNO(statp, NO_RECOVERY); \ 129 RES_SET_H_ERRNO(statp, NO_RECOVERY); \ 136 struct hostent *he, struct hostent_data *hed, res_state statp) 162 RES_SET_H_ERRNO(statp, NO_RECOVERY); 176 RES_SET_H_ERRNO(statp, NO_RECOVERY); 181 RES_SET_H_ERRNO(statp, NO_RECOVERY); 192 RES_SET_H_ERRNO(statp, NO_RECOVERY); 243 RES_SET_H_ERRNO(statp, NO_RECOVERY); 273 RES_SET_H_ERRNO(statp, NO_RECOVERY); 315 RES_SET_H_ERRNO(statp, NO_RECOVER 135 gethostanswer(const querybuf *answer, int anslen, const char *qname, int qtype, struct hostent *he, struct hostent_data *hed, res_state statp) argument 436 res_state statp; local 473 res_state statp; local 566 res_state statp; local 756 res_state statp; local 768 res_state statp; local [all...] |
H A D | getnetbydns.c | 153 struct netent_data *ned, res_state statp) 188 RES_SET_H_ERRNO(statp, HOST_NOT_FOUND); 190 RES_SET_H_ERRNO(statp, TRY_AGAIN); 236 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 243 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 254 RES_SET_H_ERRNO(statp, TRY_AGAIN); 273 res_state statp; local 283 statp = __res_state(); 284 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) 152 getnetanswer(querybuf *answer, int anslen, int net_i, struct netent *ne, struct netent_data *ned, res_state statp) argument 378 res_state statp; local 444 res_state statp; local 456 res_state statp; local [all...] |
H A D | gethostbyht.c | 88 res_state statp) 96 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 101 RES_SET_H_ERRNO(statp, HOST_NOT_FOUND); 143 RES_SET_H_ERRNO(statp, NO_RECOVERY); 167 RES_SET_H_ERRNO(statp, NETDB_SUCCESS); 177 res_state statp; local 179 statp = __res_state(); 180 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) { 181 RES_SET_H_ERRNO(statp, NETDB_INTERNA 87 gethostent_p(struct hostent *he, struct hostent_data *hed, int mapped, res_state statp) argument 227 res_state statp; local 291 res_state statp; local [all...] |
H A D | gethostbynis.c | 59 res_state statp; local 61 statp = __res_state(); 71 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 77 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 83 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 | 151 res_state statp; local 153 statp = __res_state(); 155 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 156 *h_errnop = statp->res_h_errno; 162 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 163 *h_errnop = statp->res_h_errno; 195 res_state statp; local 205 statp = __res_state(); 207 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 208 *h_errnop = statp 247 res_state statp; local [all...] |
H A D | gethostnamadr.c | 159 res_state statp; local 173 statp = __res_state(); 174 res_options = statp->options & (RES_RECURSE | RES_DEFNAMES | 432 size_t buflen, res_state statp) 439 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 446 RES_SET_H_ERRNO(statp, HOST_NOT_FOUND); 451 if (af == AF_INET && (statp->options & RES_USE_INET6) != 0U) { 466 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 476 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 479 RES_SET_H_ERRNO(statp, NETDB_SUCCES 431 fakeaddr(const char *name, int af, struct hostent *hp, char *buf, size_t buflen, res_state statp) argument 487 res_state statp; local 511 res_state statp; local 523 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 590 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 | 220 res_state statp; local 272 statp = __res_state(); 273 if ((statp->options & RES_INIT) == 0) { 274 if (res_ninit(statp) < 0) { 280 options = statp->options; 281 statp->options &= ~RES_USE_INET6; 294 *errp = statp->res_h_errno; 308 *errp = statp->res_h_errno; 310 statp->options = options; 311 return _hpsort(hp, statp); 318 res_state statp; local 587 _hpsort(struct hostent *hp, res_state statp) argument [all...] |
/freebsd-current/lib/librpcsvc/ |
H A D | rstat.c | 44 rstat(char *host, struct statstime *statp) argument 48 (xdrproc_t)xdr_statstime, (char *) statp));
|
/freebsd-current/lib/libgeom/ |
H A D | geom_stats.c | 50 static u_char *statp; variable 57 munmap(statp, npages * pagesize); 58 statp = NULL; 76 munmap(statp, npages * pagesize); 77 p = mmap(statp, mediasize, PROT_READ, MAP_SHARED, statsfd, 0); 81 statp = p; 107 statp = p; 139 memcpy(sp->ptr, statp, pagesize * npages);
|
/freebsd-current/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zpl_super.c | 136 zpl_statfs(struct dentry *dentry, struct kstatfs *statp) argument 142 error = -zfs_statvfs(dentry->d_inode, statp); 153 while (statp->f_blocks > UINT32_MAX && 154 statp->f_bsize < SPA_MAXBLOCKSIZE) { 155 statp->f_frsize <<= 1; 156 statp->f_bsize <<= 1; 158 statp->f_blocks >>= 1; 159 statp->f_bfree >>= 1; 160 statp->f_bavail >>= 1; 163 uint64_t usedobjs = statp [all...] |
/freebsd-current/contrib/sendmail/src/ |
H A D | map.c | 1462 ** statp -- pointer to status (EX_) 1470 dns_map_lookup(map, name, av, statp) 1474 int *statp; 1502 *statp = EX_UNAVAILABLE; 1520 *statp = EX_TEMPFAIL; 1522 *statp = EX_NOTFOUND; 1525 *statp = EX_OK; 1597 *statp = EX_DATAERR; 1642 *statp = EX_NOTFOUND; 1922 ndbm_map_lookup(map, name, av, statp) [all...] |
/freebsd-current/usr.bin/kdump/ |
H A D | kdump.c | 1927 ktrstat(struct stat *statp) argument 1935 * note: ktrstruct() has already verified that statp points to a 1940 (uintmax_t)statp->st_dev, (uintmax_t)statp->st_ino); 1942 printf("mode=0%jo, ", (uintmax_t)statp->st_mode); 1944 strmode(statp->st_mode, mode); 1947 printf("nlink=%ju, ", (uintmax_t)statp->st_nlink); 1953 pwd = cap_getpwuid(cappwd, statp->st_uid); 1956 pwd = getpwuid(statp->st_uid); 1959 printf("uid=%ju, ", (uintmax_t)statp [all...] |