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.c202 statp->id = res_nrandomid(statp); in __res_vinit()
231 statp->ndots = 1; in __res_vinit()
238 statp->_u._ext.ext = malloc(sizeof(*statp->_u._ext.ext)); in __res_vinit()
241 statp->_u._ext.ext->nsaddrs[0].sin = statp->nsaddr; in __res_vinit()
261 statp->nsort = 0; in __res_vinit()
367 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit()
375 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit()
428 strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit()
429 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit()
444 strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit()
[all …]
H A Dres_send.c314 if (statp->nscount == 0 || EXT(statp).ext == NULL) { in res_nsend()
337 if (EXT(statp).nscount != statp->nscount) in res_nsend()
380 EXT(statp).nscount = statp->nscount; in res_nsend()
404 statp->nsaddr_list[ns] = statp->nsaddr_list[ns + 1]; in res_nsend()
405 EXT(statp).nssocks[ns] = EXT(statp).nssocks[ns + 1]; in res_nsend()
406 EXT(statp).nstimes[ns] = EXT(statp).nstimes[ns + 1]; in res_nsend()
539 res_nclose(statp); in res_nsend()
579 res_state statp; in get_nsaddr()
583 if (!statp->nsaddr_list[n].sin_family && EXT(statp).ext) {
626 if (statp->_vcsock >= 0 && (statp->_flags & RES_F_VC) != 0) { in send_vc()
[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()
142 if (statp->options & RES_DEBUG) in res_nquery()
156 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
293 switch (statp->res_h_errno) { in res_nsearch()
353 res_nquerydomain(res_state statp, in res_nquerydomain() argument
[all …]
H A Dres_sendsigned.c50 memcpy(nstatp, statp, sizeof(*statp)); in res_nsendsigned()
116 Dprint((statp->options & RES_DEBUG) || 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()
152 Dprint((statp->options & RES_DEBUG) || in res_nsendsigned()
154 (statp->pfcode & RES_PRF_HEAD1)), in res_nsendsigned()
157 DprintQ((statp->options & RES_DEBUG) || in res_nsendsigned()
[all …]
H A Dres_mkquery.c111 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()
152 statp->id = res_nrandomid(statp); in res_nmkquery()
153 hp->id = htons(statp->id); in res_nmkquery()
235 res_nopt(res_state statp, in res_nopt() argument
246 if ((statp->options & RES_DEBUG) != 0U) in res_nopt()
265 if (statp->options & RES_USE_DNSSEC) { in res_nopt()
267 if (statp->options & RES_DEBUG) in res_nopt()
289 res_nopt_rdata(res_state statp, in res_nopt_rdata() argument
[all …]
H A Dres_findzonecut.c186 save_pfcode = statp->pfcode; in res_findzonecut2()
207 n = satisfy(statp, mname, &nsrrs, addrs, naddrs); in res_findzonecut2()
212 statp->pfcode = save_pfcode; in res_findzonecut2()
228 x = add_addrs(statp, nsrr, addrs, naddrs); in satisfy()
237 x = add_addrs(statp, nsrr, addrs, naddrs); in satisfy()
247 add_addrs(res_state statp, rr_ns *nsrr, in add_addrs() argument
373 if (save_ns(statp, &msg, ns_s_ns, in get_soa()
454 n = do_query(statp, nsrr->name, class, ns_t_a, in get_glue()
561 if (save_a(statp, msg, ns_s_ar, in save_ns()
572 save_a(res_state statp, ns_msg *msg, ns_sect sect, in save_a() argument
[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()
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()
319 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEAD2)) { in res_pquery()
338 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEAD1)) { 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
102 statp->rstate = mem_info->rstate; in ac_mem_stat()
103 statp->ostate = mem_info->ostate; in ac_mem_stat()
106 statp->board = ac->board; in ac_mem_stat()
113 statp->page_size = PAGESIZE; in ac_mem_stat()
160 statp->managed = memq.managed; in ac_mem_stat()
168 statp->phys_pages = npgs; in ac_mem_stat()
182 stat32p->rstate = statp->rstate; in ac_mem_stat()
183 stat32p->ostate = statp->ostate; in ac_mem_stat()
186 stat32p->board = statp->board; 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.c428 statp = &stat; in _nss_dns_gethost_withttl()
444 res_ndestroy(statp); in _nss_dns_gethost_withttl()
549 res_ndestroy(statp); in _nss_dns_gethost_withttl()
573 res_ndestroy(statp); in _nss_dns_gethost_withttl()
587 res_ndestroy(statp); in _nss_dns_gethost_withttl()
605 res_ndestroy(statp); in _nss_dns_gethost_withttl()
610 res_ndestroy(statp); in _nss_dns_gethost_withttl()
616 res_ndestroy(statp); in _nss_dns_gethost_withttl()
621 res_ndestroy(statp); in _nss_dns_gethost_withttl()
758 res_ndestroy(statp); 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()
492 dscpmk_stat_t *statp; in dscpmk_summ_statinit() local
503 ASSERT(statp != NULL); in dscpmk_summ_statinit()
506 IPP_STAT_UINT64, &statp->npackets)) != 0) { in dscpmk_summ_statinit()
527 IPP_STAT_UINT64, &statp->ipackets)) != 0) { in dscpmk_summ_statinit()
549 dscpmk_dscp_stats_t *statp; in dscpmk_update_det_stats() local
555 statp = (dscpmk_dscp_stats_t *) in dscpmk_update_det_stats()
557 ASSERT(statp != NULL); in dscpmk_update_det_stats()
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dmap.c1208 int *statp;
1675 int *statp;
2304 int *statp;
2732 int *statp;
2799 int *statp;
3045 int *statp;
3184 int *statp;
3564 int *statp;
3766 if (*statp != EX_OK && *statp != EX_NOTFOUND)
5287 int *statp;
[all …]
H A Ddomain.c654 int *statp;
703 *statp = EX_UNAVAILABLE;
789 int *statp;
821 *statp = EX_OK;
920 if (*statp == EX_OK)
924 *statp = EX_TEMPFAIL;
998 *statp = EX_SOFTWARE;
1082 *statp = EX_CONFIG;
1142 if (*statp == EX_OK)
1143 *statp = EX_NOHOST;
[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/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/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.c1605 statp->f_blocks = quota >> bshift; in zfs_statfs_project()
1607 statp->f_bavail = statp->f_bfree; in zfs_statfs_project()
1632 statp->f_files = quota; in zfs_statfs_project()
2044 statp->f_bsize = zfsvfs->z_max_blksz; in zfs_statvfs()
2054 statp->f_bavail = statp->f_bfree; /* no root reservation */ in zfs_statvfs()
2064 statp->f_ffree = MIN(availobjs, statp->f_bfree); in zfs_statvfs()
2065 statp->f_favail = statp->f_ffree; /* no "root reservation" */ in zfs_statvfs()
2066 statp->f_files = statp->f_ffree + usedobjs; in zfs_statvfs()
2069 statp->f_fsid = d32; in zfs_statvfs()
2078 statp->f_namemax = MAXNAMELEN - 1; 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