Home
last modified time | relevance | path

Searched refs:statp (Results 1 – 25 of 41) sorted by relevance

12

/freebsd-13.1/lib/libc/resolv/
H A Dres_init.c202 statp->id = res_nrandomid(statp); in __res_vinit()
229 statp->_u._ext.ext = malloc(sizeof(*statp->_u._ext.ext)); in __res_vinit()
232 statp->_u._ext.ext->nsaddrs[0].sin = statp->nsaddr; in __res_vinit()
274 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit()
282 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit()
347 strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit()
348 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit()
363 strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit()
364 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit()
757 u_char *rnd = statp->_rnd == NULL ? srnd : statp->_rnd; in res_rndinit()
[all …]
H A Dres_send.c315 if (statp->nscount == 0 || EXT(statp).ext == NULL) { in res_nsend()
345 if (EXT(statp).nscount != statp->nscount) in res_nsend()
388 EXT(statp).nscount = statp->nscount; in res_nsend()
412 statp->nsaddr_list[ns] = statp->nsaddr_list[ns + 1]; in res_nsend()
413 EXT(statp).nssocks[ns] = EXT(statp).nssocks[ns + 1]; in res_nsend()
414 EXT(statp).nstimes[ns] = EXT(statp).nstimes[ns + 1]; in res_nsend()
557 res_nclose(statp); in res_nsend()
570 res_nclose(statp); in res_nsend()
604 if (!statp->nsaddr_list[n].sin_family && EXT(statp).ext) { in get_nsaddr()
647 if (statp->_vcsock >= 0 && (statp->_flags & RES_F_VC) != 0) { in send_vc()
[all …]
H A Dres_data.c84 res_state statp = &_res; in res_init() local
105 if (!statp->retrans) in res_init()
107 if (!statp->retry) in res_init()
127 res_state statp = &_res; in fp_nquery() local
144 res_state statp = &_res; in res_mkquery() local
156 res_state statp = &_res; in res_mkupdate() local
171 res_state statp = &_res; in res_query() local
198 res_state statp = &_res; in res_send() local
299 res_state statp; in local_hostname_length() local
301 statp = &_res; in local_hostname_length()
[all …]
H A Dres_query.c113 res_nquery(res_state statp, in res_nquery() argument
125 oflags = statp->_flags; in res_nquery()
130 if (statp->options & RES_DEBUG) in res_nquery()
149 if (statp->options & RES_DEBUG) in res_nquery()
169 if (statp->options & RES_DEBUG) in res_nquery()
178 if (statp->options & RES_DEBUG) in res_nquery()
214 res_nsearch(res_state statp, in res_nsearch() argument
257 switch (statp->res_h_errno) { in res_nsearch()
318 switch (statp->res_h_errno) { in res_nsearch()
362 switch (statp->res_h_errno) { in res_nsearch()
[all …]
H A Dres_state.c59 free(statp); in free_res()
76 return (statp); in res_check_reload()
81 return (statp); in res_check_reload()
86 return (statp); in res_check_reload()
96 return (statp); in res_check_reload()
102 res_state statp; in __res_state() local
112 if (statp != NULL) in __res_state()
114 statp = calloc(1, sizeof(*statp)); in __res_state()
115 if (statp == NULL) in __res_state()
121 return (statp); in __res_state()
[all …]
H A Dres_findzonecut.c197 save_pfcode = statp->pfcode; in res_findzonecut2()
218 n = satisfy(statp, mname, &nsrrs, addrs, naddrs); in res_findzonecut2()
223 statp->pfcode = save_pfcode; in res_findzonecut2()
239 x = add_addrs(statp, nsrr, addrs, naddrs); in satisfy()
248 x = add_addrs(statp, nsrr, addrs, naddrs); in satisfy()
258 add_addrs(res_state statp, rr_ns *nsrr, in add_addrs() argument
384 if (save_ns(statp, &msg, ns_s_ns, in get_soa()
465 n = do_query(statp, nsrr->name, class, ns_t_a, in get_glue()
572 if (save_a(statp, msg, ns_s_ar, in save_ns()
583 save_a(res_state statp, ns_msg *msg, ns_sect sect, in save_a() argument
[all …]
H A Dres_mkquery.c98 res_nmkquery(res_state statp, in res_nmkquery() argument
116 if (statp->options & RES_DEBUG) in res_nmkquery()
127 statp->id = res_nrandomid(statp); in res_nmkquery()
128 hp->id = htons(statp->id); in res_nmkquery()
130 hp->rd = (statp->options & RES_RECURSE) != 0U; in res_nmkquery()
210 res_nopt(res_state statp, in res_nopt() argument
221 if ((statp->options & RES_DEBUG) != 0U) in res_nopt()
242 if (statp->options & RES_USE_DNSSEC) { in res_nopt()
244 if (statp->options & RES_DEBUG) in res_nopt()
266 res_nopt_rdata(res_state statp, in res_nopt_rdata() argument
[all …]
H A Dres_update.c92 if ((statp->options & RES_DEBUG) != 0U) res_dprintf x; \
99 res_nupdate(res_state statp, ns_updrec *rrecp_in, ns_tsig_key *key) { in res_nupdate() argument
121 nscnt = res_findzonecut2(statp, rrecp->r_dname, tgrp.z_class, in res_nupdate()
164 n = res_nmkupdate(statp, HEAD(zptr->z_rrlist), in res_nupdate()
171 nscount = res_getservers(statp, nsaddrs, MAXNS); in res_nupdate()
172 res_setservers(statp, zptr->z_nsaddrs, zptr->z_nscount); in res_nupdate()
178 RES_SET_H_ERRNO(statp, NO_RECOVERY); in res_nupdate()
181 n = res_nsendsigned(statp, packet, n, key, in res_nupdate()
185 n = res_nsend(statp, packet, n, answer, sizeof answer); in res_nupdate()
195 res_setservers(statp, nsaddrs, nscount); in res_nupdate()
[all …]
H A Dres_debug.c136 fp_resstat(const res_state statp, FILE *file) { in fp_resstat() argument
141 if (statp->options & mask) in fp_resstat()
147 do_section(const res_state statp, in do_section() argument
160 sflag = (statp->pfcode & pflag); in do_section()
161 if (statp->pfcode && !sflag) in do_section()
178 (statp->pfcode & RES_PRF_HEAD1)) in do_section()
296 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX) || rcode) in res_pquery()
300 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX)) in res_pquery()
302 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEAD2)) { in res_pquery()
321 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEAD1)) { in res_pquery()
[all …]
H A Dres_debug.h28 # define Aerror(statp, file, string, error, address) /*empty*/ argument
29 # define Perror(statp, file, string, error) /*empty*/ argument
34 res_pquery(statp, query, size, stdout);\
/freebsd-13.1/sys/dev/sfxge/common/
H A Defx_mon.c343 *statp = EFX_MON_NSTATS; in efx_mon_mcdi_to_efx_stat()
361 *statp = EFX_MON_STAT_FAN_2; in efx_mon_mcdi_to_efx_stat()
370 *statp = EFX_MON_STAT_IN_1V3; in efx_mon_mcdi_to_efx_stat()
376 *statp = EFX_MON_STAT_IN_2V5; in efx_mon_mcdi_to_efx_stat()
388 *statp = EFX_MON_STAT_IN_1V0; in efx_mon_mcdi_to_efx_stat()
391 *statp = EFX_MON_STAT_FAN_1; in efx_mon_mcdi_to_efx_stat()
397 *statp = EFX_MON_STAT_FAN_3; in efx_mon_mcdi_to_efx_stat()
541 *statp = EFX_MON_STAT_FAN_4; in efx_mon_mcdi_to_efx_stat()
580 *statp = EFX_MON_STAT_FAN_0; in efx_mon_mcdi_to_efx_stat()
589 *statp = EFX_MON_NSTATS; in efx_mon_mcdi_to_efx_stat()
[all …]
/freebsd-13.1/lib/libc/net/
H A Dgetnetbydns.c279 res_state statp; in _dns_getnetbyaddr() local
289 statp = __res_state(); in _dns_getnetbyaddr()
290 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) { in _dns_getnetbyaddr()
384 res_state statp; in _dns_getnetbyname() local
393 statp = __res_state(); in _dns_getnetbyname()
394 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) { in _dns_getnetbyname()
450 res_state statp; in _setnetdnsent() local
452 statp = __res_state(); in _setnetdnsent()
453 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) in _setnetdnsent()
462 res_state statp; in _endnetdnsent() local
[all …]
H A Dgethostbydns.c395 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 Dgethostbyht.c94 res_state statp) in gethostent_p() argument
183 res_state statp; in gethostent_r() local
185 statp = __res_state(); in gethostent_r()
186 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) { in gethostent_r()
188 *h_errnop = statp->res_h_errno; in gethostent_r()
193 *h_errnop = statp->res_h_errno; in gethostent_r()
196 if (gethostent_p(&he, hed, statp->options & RES_USE_INET6, statp) != 0) in gethostent_r()
233 res_state statp; in _ht_gethostbyname() local
246 statp = __res_state(); in _ht_gethostbyname()
297 res_state statp; in _ht_gethostbyaddr() local
[all …]
H A Dgethostbynis.c62 res_state statp; in _gethostbynis() local
64 statp = __res_state(); in _gethostbynis()
215 res_state statp; in _nis_gethostbyname() local
227 statp = __res_state(); in _nis_gethostbyname()
230 *h_errnop = statp->res_h_errno; in _nis_gethostbyname()
235 *h_errnop = statp->res_h_errno; in _nis_gethostbyname()
241 *h_errnop = statp->res_h_errno; in _nis_gethostbyname()
264 res_state statp; in _nis_gethostbyaddr() local
277 statp = __res_state(); in _nis_gethostbyaddr()
280 *h_errnop = statp->res_h_errno; in _nis_gethostbyaddr()
[all …]
H A Dgetnetbyht.c158 res_state statp; in getnetent_r() local
160 statp = __res_state(); in getnetent_r()
163 *h_errnop = statp->res_h_errno; in getnetent_r()
170 *h_errnop = statp->res_h_errno; in getnetent_r()
202 res_state statp; in _ht_getnetbyname() local
212 statp = __res_state(); in _ht_getnetbyname()
215 *h_errnop = statp->res_h_errno; in _ht_getnetbyname()
231 *h_errnop = statp->res_h_errno; in _ht_getnetbyname()
237 *h_errnop = statp->res_h_errno; in _ht_getnetbyname()
254 res_state statp; in _ht_getnetbyaddr() local
[all …]
H A Dgethostnamadr.c162 res_state statp; in host_id_func() local
176 statp = __res_state(); in host_id_func()
490 res_state statp; in gethostbyname_r() local
492 statp = __res_state(); in gethostbyname_r()
493 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) { in gethostbyname_r()
514 res_state statp; in gethostbyname2_r() local
516 statp = __res_state(); in gethostbyname2_r()
517 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) { in gethostbyname2_r()
522 h_errnop, statp)); in gethostbyname2_r()
593 res_state statp; in gethostbyaddr_r() local
[all …]
H A Dgetnetbynis.c145 res_state statp; in _nis_getnetbyname() local
154 statp = __res_state(); in _nis_getnetbyname()
157 *h_errnop = statp->res_h_errno; in _nis_getnetbyname()
162 *h_errnop = statp->res_h_errno; in _nis_getnetbyname()
168 *h_errnop = statp->res_h_errno; in _nis_getnetbyname()
195 res_state statp; in _nis_getnetbyaddr() local
205 statp = __res_state(); in _nis_getnetbyaddr()
208 *h_errnop = statp->res_h_errno; in _nis_getnetbyaddr()
214 *h_errnop = statp->res_h_errno; in _nis_getnetbyaddr()
248 *h_errnop = statp->res_h_errno; in _nis_getnetbyaddr()
[all …]
H A Dname6.c223 res_state statp; in getipnodebyname() local
275 statp = __res_state(); in getipnodebyname()
277 if (res_ninit(statp) < 0) { in getipnodebyname()
283 options = statp->options; in getipnodebyname()
313 statp->options = options; in getipnodebyname()
314 return _hpsort(hp, statp); in getipnodebyname()
321 res_state statp; in getipnodebyaddr() local
370 statp = __res_state(); in getipnodebyaddr()
378 options = statp->options; in getipnodebyaddr()
385 statp->options = options; in getipnodebyaddr()
[all …]
/freebsd-13.1/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzpl_super.c141 error = -zfs_statvfs(dentry->d_inode, statp); in zpl_statfs()
152 while (statp->f_blocks > UINT32_MAX && in zpl_statfs()
153 statp->f_bsize < SPA_MAXBLOCKSIZE) { in zpl_statfs()
154 statp->f_frsize <<= 1; in zpl_statfs()
155 statp->f_bsize <<= 1; in zpl_statfs()
157 statp->f_blocks >>= 1; in zpl_statfs()
158 statp->f_bfree >>= 1; in zpl_statfs()
159 statp->f_bavail >>= 1; in zpl_statfs()
162 uint64_t usedobjs = statp->f_files - statp->f_ffree; in zpl_statfs()
163 statp->f_ffree = MIN(statp->f_ffree, UINT32_MAX - usedobjs); in zpl_statfs()
[all …]
H A Dzfs_vfsops.c1058 statp->f_blocks = quota >> bshift; in zfs_statfs_project()
1060 statp->f_bavail = statp->f_bfree; in zfs_statfs_project()
1085 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-13.1/lib/libgeom/
H A Dgeom_stats.c52 static u_char *statp; variable
59 munmap(statp, npages * pagesize); in geom_stats_close()
60 statp = NULL; in geom_stats_close()
78 munmap(statp, npages * pagesize); in geom_stats_resync()
79 p = mmap(statp, mediasize, PROT_READ, MAP_SHARED, statsfd, 0); in geom_stats_resync()
83 statp = p; in geom_stats_resync()
109 statp = p; in geom_stats_open()
141 memcpy(sp->ptr, statp, pagesize * npages); in geom_stats_snapshot_get()
/freebsd-13.1/contrib/sendmail/src/
H A Dmap.c1242 int *statp;
1716 int *statp;
2345 int *statp;
2888 int *statp;
3156 int *statp;
3223 int *statp;
3472 int *statp;
3611 int *statp;
3991 int *statp;
4193 if (*statp != EX_OK && *statp != EX_NOTFOUND)
[all …]
H A Ddomain.c1118 int *statp;
1167 *statp = EX_UNAVAILABLE;
1253 int *statp;
1297 *statp = EX_OK;
1414 if (*statp == EX_OK)
1418 *statp = EX_TEMPFAIL;
1494 *statp = EX_SOFTWARE;
1578 *statp = EX_CONFIG;
1638 if (*statp == EX_OK)
1639 *statp = EX_NOHOST;
[all …]
/freebsd-13.1/usr.bin/kdump/
H A Dkdump.c1871 ktrstat(struct stat *statp) in ktrstat() argument
1884 (uintmax_t)statp->st_dev, (uintmax_t)statp->st_ino); in ktrstat()
1888 strmode(statp->st_mode, mode); in ktrstat()
1900 pwd = getpwuid(statp->st_uid); in ktrstat()
1914 grp = getgrgid(statp->st_gid); in ktrstat()
1929 if (statp->st_atim.tv_nsec != 0) in ktrstat()
1941 if (statp->st_mtim.tv_nsec != 0) in ktrstat()
1953 if (statp->st_ctim.tv_nsec != 0) in ktrstat()
1965 if (statp->st_birthtim.tv_nsec != 0) in ktrstat()
1970 (uintmax_t)statp->st_size, (uintmax_t)statp->st_blksize, in ktrstat()
[all …]

12