Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_init.c170 res_ninit(res_state statp) { in res_ninit() argument
172 return (__res_vinit(statp, 0)); in res_ninit()
177 __res_vinit(res_state statp, int preinit) { in __res_vinit() argument
193 RES_SET_H_ERRNO(statp, 0); in __res_vinit()
194 if (statp->_u._ext.ext != NULL) in __res_vinit()
195 res_ndestroy(statp); in __res_vinit()
198 statp->retrans = RES_TIMEOUT; in __res_vinit()
199 statp->retry = RES_DFLRETRY; in __res_vinit()
200 statp->options = RES_DEFAULT; in __res_vinit()
201 res_rndinit(statp); in __res_vinit()
[all …]
H A Dres_send.c172 res_ourserver_p(const res_state statp, const struct sockaddr *sa) { in res_ourserver_p() argument
180 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p()
181 srv = (struct sockaddr_in *)get_nsaddr(statp, ns); in res_ourserver_p()
190 if (EXT(statp).ext == NULL) in res_ourserver_p()
193 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p()
194 srv6 = (struct sockaddr_in6 *)get_nsaddr(statp, ns); in res_ourserver_p()
303 res_nsend(res_state statp, in res_nsend() argument
314 if (statp->nscount == 0 || EXT(statp).ext == NULL) { in res_nsend()
322 DprintQ((statp->options & RES_DEBUG) || (statp->pfcode & RES_PRF_QUERY), in res_nsend()
324 v_circuit = (statp->options & RES_USEVC) || buflen > PACKETSZ; in res_nsend()
[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()
134 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_sendsigned.c29 res_nsendsigned(res_state statp, const u_char *msg, int msglen, in res_nsendsigned() argument
45 nstatp = (res_state) malloc(sizeof(*statp)); in res_nsendsigned()
50 memcpy(nstatp, statp, sizeof(*statp)); in res_nsendsigned()
116 Dprint((statp->options & RES_DEBUG) || in res_nsendsigned()
117 ((statp->pfcode & RES_PRF_REPLY) && in res_nsendsigned()
118 (statp->pfcode & RES_PRF_HEAD1)), in res_nsendsigned()
121 DprintQ((statp->options & RES_DEBUG) || in res_nsendsigned()
122 (statp->pfcode & RES_PRF_REPLY), in res_nsendsigned()
127 Dprint(statp->pfcode & RES_PRF_REPLY, in res_nsendsigned()
131 Dprint(statp->pfcode & RES_PRF_REPLY, in res_nsendsigned()
[all …]
H A Dres_mkquery.c102 static int _confcheck(res_state statp);
111 res_nmkquery(res_state statp, in res_nmkquery() argument
129 if (statp->options & RES_DEBUG) in res_nmkquery()
139 if (_confcheck(statp) == -1) { in res_nmkquery()
140 RES_SET_H_ERRNO(statp, NO_RECOVERY); in res_nmkquery()
152 statp->id = res_nrandomid(statp); in res_nmkquery()
153 hp->id = htons(statp->id); in res_nmkquery()
155 hp->rd = (statp->options & RES_RECURSE) != 0U; in res_nmkquery()
235 res_nopt(res_state statp, in res_nopt() argument
246 if ((statp->options & RES_DEBUG) != 0U) in res_nopt()
[all …]
H A Dres_findzonecut.c89 if ((statp->options & RES_DEBUG) != 0U) res_dprintf x; \
150 res_findzonecut(res_state statp, const char *dname, ns_class class, int opts, in res_findzonecut() argument
164 result = res_findzonecut2(statp, dname, class, opts, zname, zsize, in res_findzonecut()
175 res_findzonecut2(res_state statp, const char *dname, ns_class class, int opts, in res_findzonecut2() argument
186 save_pfcode = statp->pfcode; in res_findzonecut2()
187 statp->pfcode |= RES_PRF_HEAD2 | RES_PRF_HEAD1 | RES_PRF_HEADX | in res_findzonecut2()
193 if ((n = get_soa(statp, dname, class, opts, zname, zsize, in res_findzonecut2()
196 (n = satisfy(statp, mname, &nsrrs, addrs, naddrs)) > 0)) in res_findzonecut2()
200 if ((n = get_ns(statp, zname, class, opts, &nsrrs)) < 0 || in res_findzonecut2()
202 (n = satisfy(statp, mname, &nsrrs, addrs, naddrs)) > 0)) in res_findzonecut2()
[all …]
H A Dres_update.c83 if ((statp->options & RES_DEBUG) != 0U) res_dprintf x; \
90 res_nupdate(res_state statp, ns_updrec *rrecp_in, ns_tsig_key *key) { in res_nupdate() argument
112 nscnt = res_findzonecut2(statp, rrecp->r_dname, tgrp.z_class, in res_nupdate()
155 n = res_nmkupdate(statp, HEAD(zptr->z_rrlist), in res_nupdate()
162 nscount = res_getservers(statp, nsaddrs, MAXNS); in res_nupdate()
163 res_setservers(statp, zptr->z_nsaddrs, zptr->z_nscount); in res_nupdate()
167 n = res_nsendsigned(statp, packet, n, key, in res_nupdate()
170 n = res_nsend(statp, packet, n, answer, sizeof answer); in res_nupdate()
180 res_setservers(statp, nsaddrs, nscount); in res_nupdate()
192 res_setservers(statp, nsaddrs, nscount); in res_nupdate()
H A Dres_debug.c153 fp_resstat(const res_state statp, FILE *file) { in fp_resstat() argument
158 if (statp->options & mask) in fp_resstat()
164 do_section(const res_state statp, in do_section() argument
177 sflag = (statp->pfcode & pflag); in do_section()
178 if (statp->pfcode && !sflag) in do_section()
195 (statp->pfcode & RES_PRF_HEAD1)) in do_section()
199 if (rrnum == 0 && sflag != 0 && (statp->pfcode & RES_PRF_HEAD1)) in do_section()
293 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) { in res_pquery() argument
313 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX) || rcode) in res_pquery()
317 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX)) in res_pquery()
[all …]
H A Dres_debug.h24 # define Aerror(statp, file, string, error, address) /*empty*/ argument
25 # define Perror(statp, file, string, error) /*empty*/ argument
30 res_pquery(statp, query, size, stdout);\
/illumos-gate/usr/src/uts/sun4u/sunfire/io/
H A Dac_stat.c61 ac_stat_t *statp; in ac_mem_stat() local
100 statp = kmem_zalloc(sizeof (ac_stat_t), KM_SLEEP); in ac_mem_stat()
102 statp->rstate = mem_info->rstate; in ac_mem_stat()
103 statp->ostate = mem_info->ostate; in ac_mem_stat()
104 statp->condition = mem_info->condition; in ac_mem_stat()
105 statp->status_time = mem_info->status_change; in ac_mem_stat()
106 statp->board = ac->board; in ac_mem_stat()
107 statp->real_size = mem_info->real_size; in ac_mem_stat()
108 statp->use_size = mem_info->use_size; in ac_mem_stat()
109 statp->ac_memctl = *(ac->ac_memctl); in ac_mem_stat()
[all …]
H A Dsimmstat.c298 volatile char *statp; /* pointer to hardware register */ in simmstat_kstat_update() local
305 statp = (char *)softsp->simmstat_base; in simmstat_kstat_update()
316 for (i = 0; i < SIMM_COUNT; i++, statp++, kstatp++) { in simmstat_kstat_update()
317 *kstatp = *statp; in simmstat_kstat_update()
/illumos-gate/usr/src/lib/nsswitch/dns/common/
H A Ddns_common.c397 struct __res_state stat, *statp; /* dns state block */ in _nss_dns_gethost_withttl() local
428 statp = &stat; in _nss_dns_gethost_withttl()
429 (void) memset(statp, '\0', sizeof (struct __res_state)); in _nss_dns_gethost_withttl()
430 if (res_ninit(statp) == -1) { in _nss_dns_gethost_withttl()
444 res_ndestroy(statp); in _nss_dns_gethost_withttl()
503 res_ndestroy(statp); in _nss_dns_gethost_withttl()
508 res_ndestroy(statp); in _nss_dns_gethost_withttl()
513 res_ndestroy(statp); in _nss_dns_gethost_withttl()
540 ret = res_nsearch(statp, name, C_IN, qtype, resbuf.buf, NS_MAXMSG); in _nss_dns_gethost_withttl()
547 if (statp->res_h_errno == NO_RECOVERY) { in _nss_dns_gethost_withttl()
[all …]
/illumos-gate/usr/src/uts/common/ipp/dscpmk/
H A Ddscpmkddi.c451 dscpmk_dscp_stats_t *statp; in dscpmk_det_statinit() local
465 statp = (dscpmk_dscp_stats_t *) in dscpmk_det_statinit()
467 ASSERT(statp != NULL); in dscpmk_det_statinit()
470 "dscp", IPP_STAT_UINT32, &statp->dscp)) != 0) { in dscpmk_det_statinit()
477 "npackets", IPP_STAT_UINT64, &statp->npackets)) != 0) { in dscpmk_det_statinit()
492 dscpmk_stat_t *statp; in dscpmk_summ_statinit() local
502 statp = (dscpmk_stat_t *)(dscpmk_data->stats)->ipps_data; in dscpmk_summ_statinit()
503 ASSERT(statp != NULL); in dscpmk_summ_statinit()
506 IPP_STAT_UINT64, &statp->npackets)) != 0) { in dscpmk_summ_statinit()
513 IPP_STAT_UINT64, &statp->dscp_changed)) != 0) { in dscpmk_summ_statinit()
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dmap.c1204 dns_map_lookup(map, name, av, statp) in dns_map_lookup() argument
1208 int *statp;
1234 *statp = EX_UNAVAILABLE;
1252 *statp = EX_TEMPFAIL;
1254 *statp = EX_NOTFOUND;
1257 *statp = EX_OK;
1323 *statp = EX_DATAERR;
1368 *statp = EX_NOTFOUND;
1671 ndbm_map_lookup(map, name, av, statp) in ndbm_map_lookup() argument
1675 int *statp;
[all …]
H A Ddomain.c650 bestmx_map_lookup(map, name, av, statp) in bestmx_map_lookup() argument
654 int *statp;
670 nmx = getmxrr(name, mxhosts, NULL, false, statp, false, NULL);
703 *statp = EX_UNAVAILABLE;
785 dns_getcanonname(host, hbsize, trymx, statp, pttl) in dns_getcanonname() argument
789 int *statp;
817 *statp = EX_UNAVAILABLE;
821 *statp = EX_OK;
920 if (*statp == EX_OK)
921 *statp = EX_TEMPFAIL;
[all …]
/illumos-gate/usr/src/lib/libndmp/common/
H A Dlibndmp.c368 ndmp_get_stats(ndmp_stat_t *statp) in ndmp_get_stats() argument
373 if (!statp) { in ndmp_get_stats()
384 statp->ns_trun = ndmp_door_get_uint32(dec_ctx); in ndmp_get_stats()
385 statp->ns_twait = ndmp_door_get_uint32(dec_ctx); in ndmp_get_stats()
386 statp->ns_nbk = ndmp_door_get_uint32(dec_ctx); in ndmp_get_stats()
387 statp->ns_nrs = ndmp_door_get_uint32(dec_ctx); in ndmp_get_stats()
388 statp->ns_rfile = ndmp_door_get_uint32(dec_ctx); in ndmp_get_stats()
389 statp->ns_wfile = ndmp_door_get_uint32(dec_ctx); in ndmp_get_stats()
390 statp->ns_rdisk = ndmp_door_get_uint64(dec_ctx); in ndmp_get_stats()
391 statp->ns_wdisk = ndmp_door_get_uint64(dec_ctx); in ndmp_get_stats()
[all …]
/illumos-gate/usr/src/tools/cscope-fast/
H A Dvpstat.c39 vpstat(char *path, struct stat *statp) in vpstat() argument
45 if ((returncode = stat(path, statp)) == -1 && path[0] != '/') { in vpstat()
49 if ((returncode = stat(buf, statp)) != -1) { in vpstat()
/illumos-gate/usr/src/lib/librpcsvc/common/
H A Drstat_simple.c32 rstat(host, statp) in rstat() argument
34 struct statstime *statp;
38 xdr_statstime, (char *) statp, (char *) NULL));
/illumos-gate/usr/src/uts/common/ipp/dlcosmk/
H A Ddlcosmkddi.c362 dlcosmk_stat_t *statp; in dlcosmk_statinit() local
373 statp = (dlcosmk_stat_t *)(dlcosmk_data->stats)->ipps_data; in dlcosmk_statinit()
374 ASSERT(statp != NULL); in dlcosmk_statinit()
377 IPP_STAT_UINT64, &statp->npackets)) != 0) { in dlcosmk_statinit()
384 IPP_STAT_UINT64, &statp->ipackets)) != 0) { in dlcosmk_statinit()
391 IPP_STAT_UINT64, &statp->epackets)) != 0) { in dlcosmk_statinit()
398 IPP_STAT_INT32, &statp->usr_pri)) != 0) { in dlcosmk_statinit()
405 IPP_STAT_INT32, &statp->b_band)) != 0) { in dlcosmk_statinit()
412 IPP_STAT_INT32, &statp->dl_max)) != 0) { in dlcosmk_statinit()
/illumos-gate/usr/src/ucbcmd/touch/
H A Dtouch.c268 oldtouch(filename, statp) in oldtouch() argument
270 struct stat *statp;
274 if ((statp->st_mode & S_IFMT) != S_IFREG) {
288 rwstatus = readwrite(filename, statp->st_size);
289 if (chmod(filename, (int)statp->st_mode)) {
297 return (readwrite(filename, statp->st_size));
/illumos-gate/usr/src/cmd/cat/
H A Dcat.c334 cat(FILE *fi, struct stat *statp, struct stat *outp, char *filenm) in cat() argument
347 if (S_ISREG(statp->st_mode) && (lseek(fi_desc, (off_t)0, SEEK_CUR) in cat()
348 == 0) && (statp->st_size > SMALLFILESIZE)) { in cat()
350 if (statp->st_size < mapsize) in cat()
351 mapsize = statp->st_size; in cat()
381 filesize = statp->st_size; in cat()
440 if (S_ISREG(statp->st_mode) && S_ISREG(outp->st_mode)) { in cat()
/illumos-gate/usr/src/lib/libresolv2/common/sunw/
H A Dsunw_updrec.c167 res_nmkupdate(res_state statp, ns_updrec *rrecp_in, uchar_t *buf, int length) { in res_nmkupdate() argument
175 ret = __ISC_res_nmkupdate(statp, r, buf, length); in res_nmkupdate()
200 res_nupdate(res_state statp, ns_updrec *rrecp_in, ns_tsig_key *key) { in res_nupdate() argument
208 ret = __ISC_res_nupdate(statp, r, key); in res_nupdate()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfs_vfsops.c89 static int zfs_statvfs(vfs_t *vfsp, struct statvfs64 *statp);
1562 zfs_statfs_project(zfsvfs_t *zfsvfs, znode_t *zp, struct statvfs64 *statp, in zfs_statfs_project() argument
1605 statp->f_blocks = quota >> bshift; in zfs_statfs_project()
1606 statp->f_bfree = (quota > used) ? ((quota - used) >> bshift) : 0; in zfs_statfs_project()
1607 statp->f_bavail = statp->f_bfree; in zfs_statfs_project()
1632 statp->f_files = quota; in zfs_statfs_project()
1633 statp->f_ffree = (quota > used) ? (quota - used) : 0; in zfs_statfs_project()
2026 zfs_statvfs(vfs_t *vfsp, struct statvfs64 *statp) in zfs_statvfs() argument
2043 statp->f_frsize = 1UL << SPA_MINBLOCKSHIFT; in zfs_statvfs()
2044 statp->f_bsize = zfsvfs->z_max_blksz; in zfs_statvfs()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnftw.c610 cdstat(const char *path, struct stat *statp, struct Save *lp __unused, in cdstat() argument
613 return (fstatat(AT_FDCWD, path, statp, flags)); in cdstat()
620 cdlstat(const char *path, struct stat *statp, struct Save *lp __unused, in cdlstat() argument
623 return (fstatat(AT_FDCWD, path, statp, in cdlstat()
631 nocdstat(const char *path, struct stat *statp, struct Save *lp, int flags) in nocdstat() argument
647 return (fstatat(fd, basepath, statp, flags)); in nocdstat()
654 nocdlstat(const char *path, struct stat *statp, struct Save *lp, int flags) in nocdlstat() argument
670 return (fstatat(fd, basepath, statp, flags | AT_SYMLINK_NOFOLLOW)); in nocdlstat()
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dldap.c649 int statp; local
660 statp = EX_NOTFOUND;
691 statp = EX_OK;
824 statp = EX_OK;
1119 statp = EX_TEMPFAIL;
1134 statp = EX_RESTART;
1141 return statp;
1281 statp = EX_TEMPFAIL;
1296 statp = EX_RESTART;
1300 return statp;
[all …]

123