| /freebsd-14.2/lib/libc/resolv/ |
| H A D | res_init.c | 199 statp->id = res_nrandomid(statp); in __res_vinit() 226 statp->_u._ext.ext = malloc(sizeof(*statp->_u._ext.ext)); in __res_vinit() 229 statp->_u._ext.ext->nsaddrs[0].sin = statp->nsaddr; in __res_vinit() 271 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit() 279 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit() 344 strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit() 345 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit() 360 strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit() 361 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit() 754 u_char *rnd = statp->_rnd == NULL ? srnd : statp->_rnd; in res_rndinit() [all …]
|
| H A D | res_send.c | 312 if (statp->nscount == 0 || EXT(statp).ext == NULL) { in res_nsend() 342 if (EXT(statp).nscount != statp->nscount) in res_nsend() 385 EXT(statp).nscount = statp->nscount; in res_nsend() 409 statp->nsaddr_list[ns] = statp->nsaddr_list[ns + 1]; in res_nsend() 410 EXT(statp).nssocks[ns] = EXT(statp).nssocks[ns + 1]; in res_nsend() 411 EXT(statp).nstimes[ns] = EXT(statp).nstimes[ns + 1]; in res_nsend() 554 res_nclose(statp); in res_nsend() 567 res_nclose(statp); in res_nsend() 601 if (!statp->nsaddr_list[n].sin_family && EXT(statp).ext) { in get_nsaddr() 644 if (statp->_vcsock >= 0 && (statp->_flags & RES_F_VC) != 0) { in send_vc() [all …]
|
| H A D | res_data.c | 81 res_state statp = &_res; in res_init() local 102 if (!statp->retrans) in res_init() 104 if (!statp->retry) in res_init() 124 res_state statp = &_res; in fp_nquery() local 141 res_state statp = &_res; in res_mkquery() local 153 res_state statp = &_res; in res_mkupdate() local 168 res_state statp = &_res; in res_query() local 195 res_state statp = &_res; in res_send() local 296 res_state statp; in local_hostname_length() local 298 statp = &_res; in local_hostname_length() [all …]
|
| H A D | res_query.c | 110 res_nquery(res_state statp, in res_nquery() argument 122 oflags = statp->_flags; in res_nquery() 127 if (statp->options & RES_DEBUG) in res_nquery() 146 if (statp->options & RES_DEBUG) in res_nquery() 166 if (statp->options & RES_DEBUG) in res_nquery() 175 if (statp->options & RES_DEBUG) in res_nquery() 211 res_nsearch(res_state statp, in res_nsearch() argument 254 switch (statp->res_h_errno) { in res_nsearch() 315 switch (statp->res_h_errno) { in res_nsearch() 359 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 | 194 save_pfcode = statp->pfcode; in res_findzonecut2() 215 n = satisfy(statp, mname, &nsrrs, addrs, naddrs); in res_findzonecut2() 220 statp->pfcode = save_pfcode; in res_findzonecut2() 236 x = add_addrs(statp, nsrr, addrs, naddrs); in satisfy() 245 x = add_addrs(statp, nsrr, addrs, naddrs); in satisfy() 255 add_addrs(res_state statp, rr_ns *nsrr, in add_addrs() argument 381 if (save_ns(statp, &msg, ns_s_ns, in get_soa() 462 n = do_query(statp, nsrr->name, class, ns_t_a, in get_glue() 569 if (save_a(statp, msg, ns_s_ar, in save_ns() 580 save_a(res_state statp, ns_msg *msg, ns_sect sect, in save_a() argument [all …]
|
| H A D | res_mkquery.c | 95 res_nmkquery(res_state statp, in res_nmkquery() argument 113 if (statp->options & RES_DEBUG) in res_nmkquery() 124 statp->id = res_nrandomid(statp); in res_nmkquery() 125 hp->id = htons(statp->id); in res_nmkquery() 127 hp->rd = (statp->options & RES_RECURSE) != 0U; in res_nmkquery() 207 res_nopt(res_state statp, in res_nopt() argument 218 if ((statp->options & RES_DEBUG) != 0U) in res_nopt() 239 if (statp->options & RES_USE_DNSSEC) { in res_nopt() 241 if (statp->options & RES_DEBUG) in res_nopt() 263 res_nopt_rdata(res_state statp, in res_nopt_rdata() argument [all …]
|
| H A D | res_update.c | 89 if ((statp->options & RES_DEBUG) != 0U) res_dprintf x; \ 96 res_nupdate(res_state statp, ns_updrec *rrecp_in, ns_tsig_key *key) { in res_nupdate() argument 118 nscnt = res_findzonecut2(statp, rrecp->r_dname, tgrp.z_class, in res_nupdate() 161 n = res_nmkupdate(statp, HEAD(zptr->z_rrlist), in res_nupdate() 168 nscount = res_getservers(statp, nsaddrs, MAXNS); in res_nupdate() 169 res_setservers(statp, zptr->z_nsaddrs, zptr->z_nscount); in res_nupdate() 175 RES_SET_H_ERRNO(statp, NO_RECOVERY); in res_nupdate() 178 n = res_nsendsigned(statp, packet, n, key, in res_nupdate() 182 n = res_nsend(statp, packet, n, answer, sizeof answer); in res_nupdate() 192 res_setservers(statp, nsaddrs, nscount); in res_nupdate() [all …]
|
| H A D | res_debug.c | 133 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 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-14.2/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-14.2/lib/libc/net/ |
| H A D | getnetbydns.c | 276 res_state statp; in _dns_getnetbyaddr() local 286 statp = __res_state(); in _dns_getnetbyaddr() 287 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) { in _dns_getnetbyaddr() 381 res_state statp; in _dns_getnetbyname() local 390 statp = __res_state(); in _dns_getnetbyname() 391 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) { in _dns_getnetbyname() 447 res_state statp; in _setnetdnsent() local 449 statp = __res_state(); in _setnetdnsent() 450 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) in _setnetdnsent() 459 res_state statp; in _endnetdnsent() local [all …]
|
| H A D | gethostbydns.c | 395 statp); in gethostanswer() 440 res_state statp; in __dns_getanswer() local 442 statp = __res_state(); in __dns_getanswer() 461 he, hed, statp); in __dns_getanswer() 477 res_state statp; in _dns_gethostbyname() local 489 statp = __res_state(); in _dns_gethostbyname() 570 res_state statp; in _dns_gethostbyaddr() local 760 res_state statp; in _sethostdnsent() local 763 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) in _sethostdnsent() 772 res_state statp; in _endhostdnsent() local [all …]
|
| H A D | gethostbyht.c | 91 res_state statp) in gethostent_p() argument 180 res_state statp; in gethostent_r() local 182 statp = __res_state(); in gethostent_r() 183 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) { in gethostent_r() 185 *h_errnop = statp->res_h_errno; in gethostent_r() 190 *h_errnop = statp->res_h_errno; in gethostent_r() 193 if (gethostent_p(&he, hed, statp->options & RES_USE_INET6, statp) != 0) in gethostent_r() 230 res_state statp; in _ht_gethostbyname() local 243 statp = __res_state(); in _ht_gethostbyname() 294 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 | 155 res_state statp; in getnetent_r() local 157 statp = __res_state(); in getnetent_r() 160 *h_errnop = statp->res_h_errno; in getnetent_r() 167 *h_errnop = statp->res_h_errno; in getnetent_r() 199 res_state statp; in _ht_getnetbyname() local 209 statp = __res_state(); in _ht_getnetbyname() 212 *h_errnop = statp->res_h_errno; in _ht_getnetbyname() 228 *h_errnop = statp->res_h_errno; in _ht_getnetbyname() 234 *h_errnop = statp->res_h_errno; in _ht_getnetbyname() 251 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-14.2/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-14.2/lib/libgeom/ |
| H A D | geom_stats.c | 50 static u_char *statp; variable 57 if (statp != NULL) { in geom_stats_close() 58 if (munmap(statp, npages * pagesize) != 0) in geom_stats_close() 60 statp = NULL; in geom_stats_close() 79 if (statp != NULL && munmap(statp, npages * pagesize) != 0) in geom_stats_resync() 84 statp = p; in geom_stats_resync() 129 memcpy(sp->ptr, statp, pagesize * npages); in geom_stats_snapshot_get()
|
| /freebsd-14.2/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-14.2/usr.bin/kdump/ |
| H A D | kdump.c | 1948 ktrstat(struct stat *statp) in ktrstat() argument 1961 (uintmax_t)statp->st_dev, (uintmax_t)statp->st_ino); in ktrstat() 1965 strmode(statp->st_mode, mode); in ktrstat() 1977 pwd = getpwuid(statp->st_uid); in ktrstat() 1991 grp = getgrgid(statp->st_gid); in ktrstat() 2006 if (statp->st_atim.tv_nsec != 0) in ktrstat() 2018 if (statp->st_mtim.tv_nsec != 0) in ktrstat() 2030 if (statp->st_ctim.tv_nsec != 0) in ktrstat() 2042 if (statp->st_birthtim.tv_nsec != 0) in ktrstat() 2047 (uintmax_t)statp->st_size, (uintmax_t)statp->st_blksize, in ktrstat() [all …]
|
| /freebsd-14.2/lib/librpcsvc/ |
| H A D | rstat.c | 47 rstat(char *host, struct statstime *statp) in rstat() argument 51 (xdrproc_t)xdr_statstime, (char *) statp)); in rstat()
|