/freebsd/lib/libc/resolv/ |
H A D | res_init.c | 195 statp->id = res_nrandomid(statp); in __res_vinit() 222 statp->_u._ext.ext = malloc(sizeof(*statp->_u._ext.ext)); in __res_vinit() 225 statp->_u._ext.ext->nsaddrs[0].sin = statp->nsaddr; in __res_vinit() 267 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit() 275 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit() 340 strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit() 341 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit() 356 strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit() 357 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit() 750 u_char *rnd = statp->_rnd == NULL ? srnd : statp->_rnd; in res_rndinit() [all …]
|
H A D | res_send.c | 308 if (statp->nscount == 0 || EXT(statp).ext == NULL) { in res_nsend() 338 if (EXT(statp).nscount != statp->nscount) in res_nsend() 381 EXT(statp).nscount = statp->nscount; in res_nsend() 405 statp->nsaddr_list[ns] = statp->nsaddr_list[ns + 1]; in res_nsend() 406 EXT(statp).nssocks[ns] = EXT(statp).nssocks[ns + 1]; in res_nsend() 407 EXT(statp).nstimes[ns] = EXT(statp).nstimes[ns + 1]; in res_nsend() 550 res_nclose(statp); in res_nsend() 563 res_nclose(statp); in res_nsend() 597 if (!statp->nsaddr_list[n].sin_family && EXT(statp).ext) { in get_nsaddr() 640 if (statp->_vcsock >= 0 && (statp->_flags & RES_F_VC) != 0) { in send_vc() [all …]
|
H A D | res_data.c | 78 res_state statp = &_res; in res_init() local 99 if (!statp->retrans) in res_init() 101 if (!statp->retry) in res_init() 121 res_state statp = &_res; in fp_nquery() local 138 res_state statp = &_res; in res_mkquery() local 150 res_state statp = &_res; in res_mkupdate() local 165 res_state statp = &_res; in res_query() local 192 res_state statp = &_res; in res_send() local 293 res_state statp; in local_hostname_length() local 295 statp = &_res; in local_hostname_length() [all …]
|
H A D | res_query.c | 106 res_nquery(res_state statp, in res_nquery() argument 118 oflags = statp->_flags; in res_nquery() 123 if (statp->options & RES_DEBUG) in res_nquery() 142 if (statp->options & RES_DEBUG) in res_nquery() 162 if (statp->options & RES_DEBUG) in res_nquery() 171 if (statp->options & RES_DEBUG) in res_nquery() 207 res_nsearch(res_state statp, in res_nsearch() argument 250 switch (statp->res_h_errno) { in res_nsearch() 311 switch (statp->res_h_errno) { in res_nsearch() 355 switch (statp->res_h_errno) { in res_nsearch() [all …]
|
H A D | res_state.c | 57 free(statp); in free_res() 74 return (statp); in res_check_reload() 79 return (statp); in res_check_reload() 84 return (statp); in res_check_reload() 94 return (statp); in res_check_reload() 100 res_state statp; in __res_state() local 110 if (statp != NULL) in __res_state() 112 statp = calloc(1, sizeof(*statp)); in __res_state() 113 if (statp == NULL) in __res_state() 119 return (statp); in __res_state() [all …]
|
H A D | res_findzonecut.c | 191 save_pfcode = statp->pfcode; in res_findzonecut2() 212 n = satisfy(statp, mname, &nsrrs, addrs, naddrs); in res_findzonecut2() 217 statp->pfcode = save_pfcode; in res_findzonecut2() 233 x = add_addrs(statp, nsrr, addrs, naddrs); in satisfy() 242 x = add_addrs(statp, nsrr, addrs, naddrs); in satisfy() 252 add_addrs(res_state statp, rr_ns *nsrr, in add_addrs() argument 378 if (save_ns(statp, &msg, ns_s_ns, in get_soa() 459 n = do_query(statp, nsrr->name, class, ns_t_a, in get_glue() 566 if (save_a(statp, msg, ns_s_ar, in save_ns() 577 save_a(res_state statp, ns_msg *msg, ns_sect sect, in save_a() argument [all …]
|
H A D | res_mkquery.c | 91 res_nmkquery(res_state statp, in res_nmkquery() argument 109 if (statp->options & RES_DEBUG) in res_nmkquery() 120 statp->id = res_nrandomid(statp); in res_nmkquery() 121 hp->id = htons(statp->id); in res_nmkquery() 123 hp->rd = (statp->options & RES_RECURSE) != 0U; in res_nmkquery() 203 res_nopt(res_state statp, in res_nopt() argument 214 if ((statp->options & RES_DEBUG) != 0U) in res_nopt() 235 if (statp->options & RES_USE_DNSSEC) { in res_nopt() 237 if (statp->options & RES_DEBUG) in res_nopt() 259 res_nopt_rdata(res_state statp, in res_nopt_rdata() argument [all …]
|
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) { in res_nupdate() argument 115 nscnt = res_findzonecut2(statp, rrecp->r_dname, tgrp.z_class, in res_nupdate() 158 n = res_nmkupdate(statp, HEAD(zptr->z_rrlist), in res_nupdate() 165 nscount = res_getservers(statp, nsaddrs, MAXNS); in res_nupdate() 166 res_setservers(statp, zptr->z_nsaddrs, zptr->z_nscount); in res_nupdate() 172 RES_SET_H_ERRNO(statp, NO_RECOVERY); in res_nupdate() 175 n = res_nsendsigned(statp, packet, n, key, in res_nupdate() 179 n = res_nsend(statp, packet, n, answer, sizeof answer); in res_nupdate() 189 res_setservers(statp, nsaddrs, nscount); in res_nupdate() [all …]
|
H A D | res_debug.c | 129 fp_resstat(const res_state statp, FILE *file) { in fp_resstat() argument 134 if (statp->options & mask) in fp_resstat() 140 do_section(const res_state statp, in do_section() argument 153 sflag = (statp->pfcode & pflag); in do_section() 154 if (statp->pfcode && !sflag) in do_section() 171 (statp->pfcode & RES_PRF_HEAD1)) in do_section() 289 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX) || rcode) in res_pquery() 293 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX)) in res_pquery() 295 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEAD2)) { in res_pquery() 314 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEAD1)) { in res_pquery() [all …]
|
H A D | res_debug.h | 26 # define Aerror(statp, file, string, error, address) /*empty*/ argument 27 # define Perror(statp, file, string, error) /*empty*/ argument 32 res_pquery(statp, query, size, stdout);\
|
/freebsd/sys/dev/sfxge/common/ |
H A D | efx_mon.c | 341 *statp = EFX_MON_NSTATS; in efx_mon_mcdi_to_efx_stat() 359 *statp = EFX_MON_STAT_FAN_2; in efx_mon_mcdi_to_efx_stat() 368 *statp = EFX_MON_STAT_IN_1V3; in efx_mon_mcdi_to_efx_stat() 374 *statp = EFX_MON_STAT_IN_2V5; in efx_mon_mcdi_to_efx_stat() 386 *statp = EFX_MON_STAT_IN_1V0; in efx_mon_mcdi_to_efx_stat() 389 *statp = EFX_MON_STAT_FAN_1; in efx_mon_mcdi_to_efx_stat() 395 *statp = EFX_MON_STAT_FAN_3; in efx_mon_mcdi_to_efx_stat() 539 *statp = EFX_MON_STAT_FAN_4; in efx_mon_mcdi_to_efx_stat() 578 *statp = EFX_MON_STAT_FAN_0; in efx_mon_mcdi_to_efx_stat() 587 *statp = EFX_MON_NSTATS; in efx_mon_mcdi_to_efx_stat() [all …]
|
/freebsd/lib/libc/net/ |
H A D | getnetbydns.c | 273 res_state statp; in _dns_getnetbyaddr() local 283 statp = __res_state(); in _dns_getnetbyaddr() 284 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) { in _dns_getnetbyaddr() 378 res_state statp; in _dns_getnetbyname() local 387 statp = __res_state(); in _dns_getnetbyname() 388 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) { in _dns_getnetbyname() 444 res_state statp; in _setnetdnsent() local 446 statp = __res_state(); in _setnetdnsent() 447 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) in _setnetdnsent() 456 res_state statp; in _endnetdnsent() local [all …]
|
H A D | gethostbydns.c | 391 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() 473 res_state statp; in _dns_gethostbyname() local 485 statp = __res_state(); in _dns_gethostbyname() 566 res_state statp; in _dns_gethostbyaddr() local 756 res_state statp; in _sethostdnsent() local 759 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) in _sethostdnsent() 768 res_state statp; in _endhostdnsent() local [all …]
|
H A D | gethostbyht.c | 88 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() 227 res_state statp; in _ht_gethostbyname() local 240 statp = __res_state(); in _ht_gethostbyname() 291 res_state statp; in _ht_gethostbyaddr() local [all …]
|
H A D | gethostbynis.c | 59 res_state statp; in _gethostbynis() local 61 statp = __res_state(); in _gethostbynis() 212 res_state statp; in _nis_gethostbyname() local 224 statp = __res_state(); in _nis_gethostbyname() 227 *h_errnop = statp->res_h_errno; in _nis_gethostbyname() 232 *h_errnop = statp->res_h_errno; in _nis_gethostbyname() 238 *h_errnop = statp->res_h_errno; in _nis_gethostbyname() 261 res_state statp; in _nis_gethostbyaddr() local 274 statp = __res_state(); in _nis_gethostbyaddr() 277 *h_errnop = statp->res_h_errno; in _nis_gethostbyaddr() [all …]
|
H A D | getnetbyht.c | 151 res_state statp; in getnetent_r() local 153 statp = __res_state(); in getnetent_r() 156 *h_errnop = statp->res_h_errno; in getnetent_r() 163 *h_errnop = statp->res_h_errno; in getnetent_r() 195 res_state statp; in _ht_getnetbyname() local 205 statp = __res_state(); in _ht_getnetbyname() 208 *h_errnop = statp->res_h_errno; in _ht_getnetbyname() 224 *h_errnop = statp->res_h_errno; in _ht_getnetbyname() 230 *h_errnop = statp->res_h_errno; in _ht_getnetbyname() 247 res_state statp; in _ht_getnetbyaddr() local [all …]
|
H A D | gethostnamadr.c | 159 res_state statp; in host_id_func() local 173 statp = __res_state(); in host_id_func() 487 res_state statp; in gethostbyname_r() local 489 statp = __res_state(); in gethostbyname_r() 490 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) { in gethostbyname_r() 511 res_state statp; in gethostbyname2_r() local 513 statp = __res_state(); in gethostbyname2_r() 514 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) { in gethostbyname2_r() 519 h_errnop, statp)); in gethostbyname2_r() 590 res_state statp; in gethostbyaddr_r() local [all …]
|
H A D | getnetbynis.c | 142 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() 165 *h_errnop = statp->res_h_errno; in _nis_getnetbyname() 192 res_state statp; in _nis_getnetbyaddr() local 202 statp = __res_state(); in _nis_getnetbyaddr() 205 *h_errnop = statp->res_h_errno; in _nis_getnetbyaddr() 211 *h_errnop = statp->res_h_errno; in _nis_getnetbyaddr() 245 *h_errnop = statp->res_h_errno; in _nis_getnetbyaddr() [all …]
|
H A D | name6.c | 220 res_state statp; in getipnodebyname() local 272 statp = __res_state(); in getipnodebyname() 274 if (res_ninit(statp) < 0) { in getipnodebyname() 280 options = statp->options; in getipnodebyname() 310 statp->options = options; in getipnodebyname() 311 return _hpsort(hp, statp); in getipnodebyname() 318 res_state statp; in getipnodebyaddr() local 367 statp = __res_state(); in getipnodebyaddr() 375 options = statp->options; in getipnodebyaddr() 382 statp->options = options; in getipnodebyaddr() [all …]
|
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zpl_super.c | 142 error = -zfs_statvfs(dentry->d_inode, statp); in zpl_statfs() 153 while (statp->f_blocks > UINT32_MAX && in zpl_statfs() 154 statp->f_bsize < SPA_MAXBLOCKSIZE) { in zpl_statfs() 155 statp->f_frsize <<= 1; in zpl_statfs() 156 statp->f_bsize <<= 1; in zpl_statfs() 158 statp->f_blocks >>= 1; in zpl_statfs() 159 statp->f_bfree >>= 1; in zpl_statfs() 160 statp->f_bavail >>= 1; in zpl_statfs() 163 uint64_t usedobjs = statp->f_files - statp->f_ffree; in zpl_statfs() 164 statp->f_ffree = MIN(statp->f_ffree, UINT32_MAX - usedobjs); in zpl_statfs() [all …]
|
H A D | zfs_vfsops.c | 1057 statp->f_blocks = quota >> bshift; in zfs_statfs_project() 1059 statp->f_bavail = statp->f_bfree; in zfs_statfs_project() 1084 statp->f_files = quota; in zfs_statfs_project() 1113 statp->f_frsize = zfsvfs->z_max_blksz; in zfs_statvfs() 1114 statp->f_bsize = zfsvfs->z_max_blksz; in zfs_statvfs() 1126 statp->f_bfree = availbytes >> bshift; in zfs_statvfs() 1127 statp->f_bavail = statp->f_bfree; /* no root reservation */ in zfs_statvfs() 1138 statp->f_files = statp->f_ffree + usedobjs; in zfs_statvfs() 1141 statp->f_type = ZFS_SUPER_MAGIC; in zfs_statvfs() 1142 statp->f_namelen = MAXNAMELEN - 1; in zfs_statvfs() [all …]
|
/freebsd/lib/libgeom/ |
H A D | geom_stats.c | 50 static u_char *statp; variable 57 munmap(statp, npages * pagesize); in geom_stats_close() 58 statp = NULL; in geom_stats_close() 76 munmap(statp, npages * pagesize); in geom_stats_resync() 77 p = mmap(statp, mediasize, PROT_READ, MAP_SHARED, statsfd, 0); in geom_stats_resync() 81 statp = p; in geom_stats_resync() 107 statp = p; in geom_stats_open() 139 memcpy(sp->ptr, statp, pagesize * npages); in geom_stats_snapshot_get()
|
/freebsd/contrib/sendmail/src/ |
H A D | map.c | 1474 int *statp; 1926 int *statp; 2546 int *statp; 3043 int *statp; 3343 int *statp; 3408 int *statp; 3656 int *statp; 3795 int *statp; 4175 int *statp; 4436 if (*statp != EX_OK && *statp != EX_NOTFOUND) [all …]
|
/freebsd/usr.bin/kdump/ |
H A D | kdump.c | 1927 ktrstat(struct stat *statp) in ktrstat() argument 1940 (uintmax_t)statp->st_dev, (uintmax_t)statp->st_ino); in ktrstat() 1944 strmode(statp->st_mode, mode); in ktrstat() 1956 pwd = getpwuid(statp->st_uid); in ktrstat() 1970 grp = getgrgid(statp->st_gid); in ktrstat() 1985 if (statp->st_atim.tv_nsec != 0) in ktrstat() 1997 if (statp->st_mtim.tv_nsec != 0) in ktrstat() 2009 if (statp->st_ctim.tv_nsec != 0) in ktrstat() 2021 if (statp->st_birthtim.tv_nsec != 0) in ktrstat() 2026 (uintmax_t)statp->st_size, (uintmax_t)statp->st_blksize, in ktrstat() [all …]
|
/freebsd/lib/librpcsvc/ |
H A D | rstat.c | 44 rstat(char *host, struct statstime *statp) in rstat() argument 48 (xdrproc_t)xdr_statstime, (char *) statp)); in rstat()
|