Home
last modified time | relevance | path

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

12

/freebsd/lib/libc/resolv/
H A Dres_init.c159 res_ninit(res_state statp) { in res_ninit() argument
162 return (__res_vinit(statp, 0)); in res_ninit()
167 __res_vinit(res_state statp, int preinit) { in __res_vinit() argument
183 RES_SET_H_ERRNO(statp, 0); in __res_vinit()
184 if (statp->_u._ext.ext != NULL) in __res_vinit()
185 res_ndestroy(statp); in __res_vinit()
188 statp->retrans = RES_TIMEOUT; in __res_vinit()
189 statp->retry = RES_DFLRETRY; in __res_vinit()
190 statp->options = RES_DEFAULT; in __res_vinit()
193 statp->_rnd = malloc(16); in __res_vinit()
[all …]
H A Dres_send.c167 res_ourserver_p(const res_state statp, const struct sockaddr *sa) { in res_ourserver_p() argument
175 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p()
176 srv = (struct sockaddr_in *)get_nsaddr(statp, ns); in res_ourserver_p()
185 if (EXT(statp).ext == NULL) in res_ourserver_p()
188 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p()
189 srv6 = (struct sockaddr_in6 *)get_nsaddr(statp, ns); in res_ourserver_p()
298 res_nsend(res_state statp, in res_nsend() argument
308 if (statp->nscount == 0 || EXT(statp).ext == NULL) { in res_nsend()
316 DprintQ((statp->options & RES_DEBUG) || (statp->pfcode & RES_PRF_QUERY), in res_nsend()
318 v_circuit = (statp->options & RES_USEVC) || buflen > PACKETSZ; in res_nsend()
[all …]
H A Dres_data.c78 res_state statp = &_res; in res_init() local
99 if (!statp->retrans) in res_init()
100 statp->retrans = RES_TIMEOUT; in res_init()
101 if (!statp->retry) in res_init()
102 statp->retry = RES_DFLRETRY; in res_init()
103 if (!(statp->options & RES_INIT)) in res_init()
104 statp->options = RES_DEFAULT; in res_init()
106 return (__res_vinit(statp, 1)); in res_init()
121 res_state statp = &_res; in fp_nquery() local
122 if ((statp->options & RES_INIT) == 0U && res_init() == -1) in fp_nquery()
[all …]
H A Dres_query.c106 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()
127 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL, in res_nquery()
130 if (n > 0 && (statp->_flags & RES_F_EDNS0ERR) == 0 && in res_nquery()
131 (statp->options & (RES_USE_EDNS0|RES_USE_DNSSEC|RES_NSID))) { in res_nquery()
132 n = res_nopt(statp, n, buf, sizeof(buf), anslen); in res_nquery()
133 if (n > 0 && (statp->options & RES_NSID) != 0U) { in res_nquery()
135 n = res_nopt_rdata(statp, n, buf, sizeof(buf), rdata, in res_nquery()
142 if (statp->options & RES_DEBUG) in res_nquery()
[all …]
H A Dres_state.c53 res_state statp = ptr; in free_res() local
55 if (statp->_u._ext.ext != NULL) in free_res()
56 res_ndestroy(statp); in free_res()
57 free(statp); in free_res()
67 res_check_reload(res_state statp) in res_check_reload() argument
73 if ((statp->options & RES_INIT) == 0) { in res_check_reload()
74 return (statp); in res_check_reload()
77 ext = statp->_u._ext.ext; in res_check_reload()
79 return (statp); in res_check_reload()
84 return (statp); in res_check_reload()
[all …]
H A Dres_findzonecut.c92 if ((statp->options & RES_DEBUG) != 0U) res_dprintf x; \
154 res_findzonecut(res_state statp, const char *dname, ns_class class, int opts, in res_findzonecut() argument
168 result = res_findzonecut2(statp, dname, class, opts, zname, zsize, in res_findzonecut()
180 res_findzonecut2(res_state statp, const char *dname, ns_class class, int opts, in res_findzonecut2() argument
191 save_pfcode = statp->pfcode; in res_findzonecut2()
192 statp->pfcode |= RES_PRF_HEAD2 | RES_PRF_HEAD1 | RES_PRF_HEADX | in res_findzonecut2()
198 if ((n = get_soa(statp, dname, class, opts, zname, zsize, in res_findzonecut2()
201 (n = satisfy(statp, mname, &nsrrs, addrs, naddrs)) > 0)) in res_findzonecut2()
205 if ((n = get_ns(statp, zname, class, opts, &nsrrs)) < 0 || in res_findzonecut2()
207 (n = satisfy(statp, mname, &nsrrs, addrs, naddrs)) > 0)) in res_findzonecut2()
[all …]
H A Dres_mkquery.c91 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 Dres_update.c86 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 Dres_debug.c129 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()
175 if (rrnum == 0 && sflag != 0 && (statp->pfcode & RES_PRF_HEAD1)) in do_section()
269 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) { in res_pquery() argument
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()
[all …]
H A Dres_debug.h26 # 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 Defx_mon.c336 __out efx_mon_stat_t *statp) in efx_mon_mcdi_to_efx_stat() argument
341 *statp = EFX_MON_NSTATS; in efx_mon_mcdi_to_efx_stat()
347 *statp = EFX_MON_STAT_IN_I0V9; in efx_mon_mcdi_to_efx_stat()
350 *statp = EFX_MON_STAT_CONTROLLER_SLAVE_VPTAT_EXTADC; in efx_mon_mcdi_to_efx_stat()
353 *statp = EFX_MON_STAT_CONTROLLER_SLAVE_VPTAT; in efx_mon_mcdi_to_efx_stat()
356 *statp = EFX_MON_STAT_PSU_TEMP; in efx_mon_mcdi_to_efx_stat()
359 *statp = EFX_MON_STAT_FAN_2; in efx_mon_mcdi_to_efx_stat()
362 *statp = EFX_MON_STAT_CONTROLLER_INTERNAL_TEMP_EXTADC; in efx_mon_mcdi_to_efx_stat()
365 *statp = EFX_MON_STAT_BOARD_BACK_TEMP; in efx_mon_mcdi_to_efx_stat()
368 *statp = EFX_MON_STAT_IN_1V3; in efx_mon_mcdi_to_efx_stat()
[all …]
/freebsd/lib/libc/net/
H A Dgetnetbydns.c153 struct netent_data *ned, res_state statp) in getnetanswer() argument
188 RES_SET_H_ERRNO(statp, HOST_NOT_FOUND); in getnetanswer()
190 RES_SET_H_ERRNO(statp, TRY_AGAIN); in getnetanswer()
236 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); in getnetanswer()
243 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); in getnetanswer()
254 RES_SET_H_ERRNO(statp, TRY_AGAIN); in getnetanswer()
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()
285 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); in _dns_getnetbyaddr()
[all …]
H A Dgethostbydns.c121 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) in gethostanswer() argument
162 RES_SET_H_ERRNO(statp, NO_RECOVERY); in gethostanswer()
176 RES_SET_H_ERRNO(statp, NO_RECOVERY); in gethostanswer()
181 RES_SET_H_ERRNO(statp, NO_RECOVERY); in gethostanswer()
192 RES_SET_H_ERRNO(statp, NO_RECOVERY); in gethostanswer()
243 RES_SET_H_ERRNO(statp, NO_RECOVERY); in gethostanswer()
273 RES_SET_H_ERRNO(statp, NO_RECOVERY); in gethostanswer()
315 RES_SET_H_ERRNO(statp, NO_RECOVERY); in gethostanswer()
[all …]
H A Dgethostbyht.c88 res_state statp) in gethostent_p() argument
96 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); in gethostent_p()
101 RES_SET_H_ERRNO(statp, HOST_NOT_FOUND); in gethostent_p()
143 RES_SET_H_ERRNO(statp, NO_RECOVERY); in gethostent_p()
167 RES_SET_H_ERRNO(statp, NETDB_SUCCESS); in gethostent_p()
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()
181 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); in gethostent_r()
182 *h_errnop = statp->res_h_errno; in gethostent_r()
[all …]
H A Dgethostbynis.c59 res_state statp; in _gethostbynis() local
61 statp = __res_state(); in _gethostbynis()
71 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); in _gethostbynis()
77 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); in _gethostbynis()
83 RES_SET_H_ERRNO(statp, HOST_NOT_FOUND); in _gethostbynis()
106 if (statp->options & RES_USE_INET6) { in _gethostbynis()
118 RES_SET_H_ERRNO(statp, HOST_NOT_FOUND); in _gethostbynis()
135 RES_SET_H_ERRNO(statp, NO_RECOVERY); in _gethostbynis()
212 res_state statp; in _nis_gethostbyname() local
224 statp = __res_state(); in _nis_gethostbyname()
[all …]
H A Dgetnetbyht.c151 res_state statp; in getnetent_r() local
153 statp = __res_state(); in getnetent_r()
155 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); in getnetent_r()
156 *h_errnop = statp->res_h_errno; in getnetent_r()
162 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 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()
207 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); in _ht_getnetbyname()
208 *h_errnop = statp->res_h_errno; in _ht_getnetbyname()
[all …]
H A Dgethostnamadr.c159 res_state statp; in host_id_func() local
173 statp = __res_state(); in host_id_func()
174 res_options = statp->options & (RES_RECURSE | RES_DEFNAMES | in host_id_func()
432 size_t buflen, res_state statp) in fakeaddr() argument
439 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); in fakeaddr()
446 RES_SET_H_ERRNO(statp, HOST_NOT_FOUND); in fakeaddr()
451 if (af == AF_INET && (statp->options & RES_USE_INET6) != 0U) { in fakeaddr()
466 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); in fakeaddr()
476 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); in fakeaddr()
479 RES_SET_H_ERRNO(statp, NETDB_SUCCESS); in fakeaddr()
[all …]
H A Dgetnetbynis.c142 res_state statp; in _nis_getnetbyname() local
151 statp = __res_state(); in _nis_getnetbyname()
153 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); in _nis_getnetbyname()
154 *h_errnop = statp->res_h_errno; in _nis_getnetbyname()
159 *h_errnop = statp->res_h_errno; in _nis_getnetbyname()
164 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); 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()
204 RES_SET_H_ERRNO(statp, NETDB_INTERNAL); in _nis_getnetbyaddr()
[all …]
H A Dname6.c220 res_state statp; in getipnodebyname() local
272 statp = __res_state(); in getipnodebyname()
273 if ((statp->options & RES_INIT) == 0) { in getipnodebyname()
274 if (res_ninit(statp) < 0) { in getipnodebyname()
280 options = statp->options; in getipnodebyname()
281 statp->options &= ~RES_USE_INET6; in getipnodebyname()
294 *errp = statp->res_h_errno; in getipnodebyname()
308 *errp = statp->res_h_errno; in getipnodebyname()
310 statp->options = options; in getipnodebyname()
311 return _hpsort(hp, statp); in getipnodebyname()
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzpl_super.c125 zpl_statfs(struct dentry *dentry, struct kstatfs *statp) in zpl_statfs() argument
131 error = -zfs_statvfs(dentry->d_inode, statp); in zpl_statfs()
142 while (statp->f_blocks > UINT32_MAX && in zpl_statfs()
143 statp->f_bsize < SPA_MAXBLOCKSIZE) { in zpl_statfs()
144 statp->f_frsize <<= 1; in zpl_statfs()
145 statp->f_bsize <<= 1; in zpl_statfs()
147 statp->f_blocks >>= 1; in zpl_statfs()
148 statp->f_bfree >>= 1; in zpl_statfs()
149 statp->f_bavail >>= 1; in zpl_statfs()
152 uint64_t usedobjs = statp->f_files - statp->f_ffree; in zpl_statfs()
[all …]
H A Dzfs_vfsops.c1025 zfs_statfs_project(zfsvfs_t *zfsvfs, znode_t *zp, struct kstatfs *statp, in zfs_statfs_project() argument
1069 statp->f_blocks = quota >> bshift; in zfs_statfs_project()
1070 statp->f_bfree = (quota > used) ? ((quota - used) >> bshift) : 0; in zfs_statfs_project()
1071 statp->f_bavail = statp->f_bfree; in zfs_statfs_project()
1096 statp->f_files = quota; in zfs_statfs_project()
1097 statp->f_ffree = (quota > used) ? (quota - used) : 0; in zfs_statfs_project()
1103 zfs_statvfs(struct inode *ip, struct kstatfs *statp) in zfs_statvfs() argument
1125 statp->f_frsize = zfsvfs->z_max_blksz; in zfs_statvfs()
1126 statp->f_bsize = zfsvfs->z_max_blksz; in zfs_statvfs()
1127 uint32_t bshift = fls(statp->f_bsize) - 1; in zfs_statvfs()
[all …]
/freebsd/lib/libgeom/
H A Dgeom_stats.c50 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/contrib/sendmail/src/
H A Dmap.c1470 dns_map_lookup(map, name, av, statp) in dns_map_lookup() argument
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) in ndbm_map_lookup() argument
1926 int *statp;
[all …]
/freebsd/usr.bin/kdump/
H A Dkdump.c1972 ktrstat(struct stat *statp) in ktrstat() argument
1985 (uintmax_t)statp->st_dev, (uintmax_t)statp->st_ino); in ktrstat()
1987 printf("mode=0%jo, ", (uintmax_t)statp->st_mode); in ktrstat()
1989 strmode(statp->st_mode, mode); in ktrstat()
1992 printf("nlink=%ju, ", (uintmax_t)statp->st_nlink); in ktrstat()
1998 pwd = cap_getpwuid(cappwd, statp->st_uid); in ktrstat()
2001 pwd = getpwuid(statp->st_uid); in ktrstat()
2004 printf("uid=%ju, ", (uintmax_t)statp->st_uid); in ktrstat()
2012 grp = cap_getgrgid(capgrp, statp->st_gid); in ktrstat()
2015 grp = getgrgid(statp->st_gid); in ktrstat()
[all …]
/freebsd/lib/libc/xdr/
H A Dxdr_rec.c517 __xdrrec_getrec(XDR *xdrs, enum xprt_stat *statp, bool_t expectdata) in __xdrrec_getrec() argument
527 *statp = expectdata ? XPRT_DIED : XPRT_IDLE; in __xdrrec_getrec()
531 *statp = XPRT_DIED; in __xdrrec_getrec()
537 *statp = XPRT_MOREREQS; in __xdrrec_getrec()
544 *statp = XPRT_DIED; in __xdrrec_getrec()
567 *statp = XPRT_DIED; in __xdrrec_getrec()
572 *statp = expectdata ? XPRT_DIED : XPRT_IDLE; in __xdrrec_getrec()
587 *statp = XPRT_MOREREQS; in __xdrrec_getrec()
592 *statp = XPRT_MOREREQS; in __xdrrec_getrec()

12