/titanic_41/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_init.c | 175 res_ninit(res_state statp) { in res_ninit() argument 177 return (__res_vinit(statp, 0)); in res_ninit() 182 __res_vinit(res_state statp, int preinit) { in __res_vinit() argument 198 RES_SET_H_ERRNO(statp, 0); in __res_vinit() 199 if (statp->_u._ext.ext != NULL) in __res_vinit() 200 res_ndestroy(statp); in __res_vinit() 203 statp->retrans = RES_TIMEOUT; in __res_vinit() 204 statp->retry = RES_DFLRETRY; in __res_vinit() 205 statp->options = RES_DEFAULT; in __res_vinit() 206 res_rndinit(statp); in __res_vinit() [all …]
|
H A D | res_send.c | 174 res_ourserver_p(const res_state statp, const struct sockaddr *sa) { in res_ourserver_p() argument 182 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p() 183 srv = (struct sockaddr_in *)get_nsaddr(statp, ns); in res_ourserver_p() 192 if (EXT(statp).ext == NULL) in res_ourserver_p() 195 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p() 196 srv6 = (struct sockaddr_in6 *)get_nsaddr(statp, ns); in res_ourserver_p() 305 res_nsend(res_state statp, in res_nsend() argument 316 if (statp->nscount == 0 || EXT(statp).ext == NULL) { in res_nsend() 324 DprintQ((statp->options & RES_DEBUG) || (statp->pfcode & RES_PRF_QUERY), in res_nsend() 326 v_circuit = (statp->options & RES_USEVC) || buflen > PACKETSZ; in res_nsend() [all …]
|
H A D | res_query.c | 111 res_nquery(res_state statp, in res_nquery() argument 123 oflags = statp->_flags; in res_nquery() 128 if (statp->options & RES_DEBUG) in res_nquery() 132 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL, in res_nquery() 135 if (n > 0 && (statp->_flags & RES_F_EDNS0ERR) == 0 && in res_nquery() 136 (statp->options & (RES_USE_EDNS0|RES_USE_DNSSEC|RES_NSID))) { in res_nquery() 137 n = res_nopt(statp, n, buf, sizeof(buf), anslen); in res_nquery() 139 if (n > 0 && (statp->options & RES_NSID) != 0U) { in res_nquery() 140 n = res_nopt_rdata(statp, n, buf, sizeof(buf), rdata, in res_nquery() 147 if (statp->options & RES_DEBUG) in res_nquery() [all …]
|
H A D | res_sendsigned.c | 29 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 D | res_mkquery.c | 107 static int _confcheck(res_state statp); 116 res_nmkquery(res_state statp, in res_nmkquery() argument 134 if (statp->options & RES_DEBUG) in res_nmkquery() 144 if (_confcheck(statp) == -1) { in res_nmkquery() 145 RES_SET_H_ERRNO(statp, NO_RECOVERY); in res_nmkquery() 157 statp->id = res_nrandomid(statp); in res_nmkquery() 158 hp->id = htons(statp->id); in res_nmkquery() 160 hp->rd = (statp->options & RES_RECURSE) != 0U; in res_nmkquery() 240 res_nopt(res_state statp, in res_nopt() argument 251 if ((statp->options & RES_DEBUG) != 0U) in res_nopt() [all …]
|
H A D | res_findzonecut.c | 93 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() 179 res_findzonecut2(res_state statp, const char *dname, ns_class class, int opts, in res_findzonecut2() argument 190 save_pfcode = statp->pfcode; in res_findzonecut2() 191 statp->pfcode |= RES_PRF_HEAD2 | RES_PRF_HEAD1 | RES_PRF_HEADX | in res_findzonecut2() 197 if ((n = get_soa(statp, dname, class, opts, zname, zsize, in res_findzonecut2() 200 (n = satisfy(statp, mname, &nsrrs, addrs, naddrs)) > 0)) in res_findzonecut2() 204 if ((n = get_ns(statp, zname, class, opts, &nsrrs)) < 0 || in res_findzonecut2() 206 (n = satisfy(statp, mname, &nsrrs, addrs, naddrs)) > 0)) in res_findzonecut2() [all …]
|
H A D | res_update.c | 87 if ((statp->options & RES_DEBUG) != 0U) res_dprintf x; \ 94 res_nupdate(res_state statp, ns_updrec *rrecp_in, ns_tsig_key *key) { in res_nupdate() argument 116 nscnt = res_findzonecut2(statp, rrecp->r_dname, tgrp.z_class, in res_nupdate() 159 n = res_nmkupdate(statp, HEAD(zptr->z_rrlist), in res_nupdate() 166 nscount = res_getservers(statp, nsaddrs, MAXNS); in res_nupdate() 167 res_setservers(statp, zptr->z_nsaddrs, zptr->z_nscount); in res_nupdate() 171 n = res_nsendsigned(statp, packet, n, key, in res_nupdate() 174 n = res_nsend(statp, packet, n, answer, sizeof answer); in res_nupdate() 184 res_setservers(statp, nsaddrs, nscount); in res_nupdate() 196 res_setservers(statp, nsaddrs, nscount); in res_nupdate()
|
H A D | res_debug.c | 158 fp_resstat(const res_state statp, FILE *file) { in fp_resstat() argument 163 if (statp->options & mask) in fp_resstat() 169 do_section(const res_state statp, in do_section() argument 182 sflag = (statp->pfcode & pflag); in do_section() 183 if (statp->pfcode && !sflag) in do_section() 200 (statp->pfcode & RES_PRF_HEAD1)) in do_section() 204 if (rrnum == 0 && sflag != 0 && (statp->pfcode & RES_PRF_HEAD1)) in do_section() 298 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) { in res_pquery() argument 318 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX) || rcode) in res_pquery() 322 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX)) in res_pquery() [all …]
|
H A D | res_debug.h | 24 # 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);\
|
/titanic_41/usr/src/uts/sun4u/sunfire/io/ |
H A D | ac_stat.c | 61 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 D | simmstat.c | 298 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()
|
/titanic_41/usr/src/lib/nsswitch/dns/common/ |
H A D | dns_common.c | 404 struct __res_state stat, *statp; /* dns state block */ in _nss_dns_gethost_withttl() local 435 statp = &stat; in _nss_dns_gethost_withttl() 436 (void) memset(statp, '\0', sizeof (struct __res_state)); in _nss_dns_gethost_withttl() 437 if (res_ninit(statp) == -1) { in _nss_dns_gethost_withttl() 451 res_ndestroy(statp); in _nss_dns_gethost_withttl() 510 res_ndestroy(statp); in _nss_dns_gethost_withttl() 515 res_ndestroy(statp); in _nss_dns_gethost_withttl() 520 res_ndestroy(statp); in _nss_dns_gethost_withttl() 547 ret = res_nsearch(statp, name, C_IN, qtype, resbuf.buf, NS_MAXMSG); in _nss_dns_gethost_withttl() 554 if (statp->res_h_errno == NO_RECOVERY) { in _nss_dns_gethost_withttl() [all …]
|
/titanic_41/usr/src/uts/common/ipp/dscpmk/ |
H A D | dscpmkddi.c | 451 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 …]
|
/titanic_41/usr/src/cmd/sendmail/src/ |
H A D | map.c | 1204 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 D | domain.c | 652 bestmx_map_lookup(map, name, av, statp) in bestmx_map_lookup() argument 656 int *statp; 672 nmx = getmxrr(name, mxhosts, NULL, false, statp, false, NULL); 705 *statp = EX_UNAVAILABLE; 787 dns_getcanonname(host, hbsize, trymx, statp, pttl) in dns_getcanonname() argument 791 int *statp; 819 *statp = EX_UNAVAILABLE; 823 *statp = EX_OK; 922 if (*statp == EX_OK) 923 *statp = EX_TEMPFAIL; [all …]
|
/titanic_41/usr/src/tools/cscope-fast/ |
H A D | vpstat.c | 41 vpstat(char *path, struct stat *statp) in vpstat() argument 47 if ((returncode = stat(path, statp)) == -1 && path[0] != '/') { in vpstat() 51 if ((returncode = stat(buf, statp)) != -1) { in vpstat()
|
/titanic_41/usr/src/lib/librpcsvc/common/ |
H A D | rstat_simple.c | 33 rstat(host, statp) in rstat() argument 35 struct statstime *statp; 39 xdr_statstime, (char *) statp, (char *) NULL));
|
/titanic_41/usr/src/lib/libndmp/common/ |
H A D | libndmp.c | 368 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 …]
|
/titanic_41/usr/src/uts/common/ipp/dlcosmk/ |
H A D | dlcosmkddi.c | 362 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()
|
/titanic_41/usr/src/ucbcmd/touch/ |
H A D | touch.c | 272 oldtouch(filename, statp) in oldtouch() argument 274 struct stat *statp; 278 if ((statp->st_mode & S_IFMT) != S_IFREG) { 292 rwstatus = readwrite(filename, statp->st_size); 293 if (chmod(filename, (int)statp->st_mode)) { 301 return (readwrite(filename, statp->st_size));
|
/titanic_41/usr/src/cmd/cat/ |
H A D | cat.c | 329 cat(FILE *fi, struct stat *statp, struct stat *outp, char *filenm) in cat() argument 342 if (S_ISREG(statp->st_mode) && (lseek(fi_desc, (off_t)0, SEEK_CUR) in cat() 343 == 0) && (statp->st_size > SMALLFILESIZE)) { in cat() 345 if (statp->st_size < mapsize) in cat() 346 mapsize = statp->st_size; in cat() 376 filesize = statp->st_size; in cat() 435 if (S_ISREG(statp->st_mode) && S_ISREG(outp->st_mode)) { in cat()
|
/titanic_41/usr/src/lib/libresolv2/common/sunw/ |
H A D | sunw_updrec.c | 167 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()
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | nftw.c | 613 cdstat(const char *path, struct stat *statp, struct Save *lp, int flags) in cdstat() argument 615 return (fstatat(AT_FDCWD, path, statp, flags)); in cdstat() 623 cdlstat(const char *path, struct stat *statp, struct Save *lp, int flags) in cdlstat() argument 625 return (fstatat(AT_FDCWD, path, statp, in cdlstat() 633 nocdstat(const char *path, struct stat *statp, struct Save *lp, int flags) in nocdstat() argument 649 return (fstatat(fd, basepath, statp, flags)); in nocdstat() 656 nocdlstat(const char *path, struct stat *statp, struct Save *lp, int flags) in nocdlstat() argument 672 return (fstatat(fd, basepath, statp, flags | AT_SYMLINK_NOFOLLOW)); in nocdlstat()
|
/titanic_41/usr/src/cmd/sendmail/libsm/ |
H A D | ldap.c | 649 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 …]
|
/titanic_41/usr/src/uts/common/fs/zfs/ |
H A D | zfs_vfsops.c | 82 static int zfs_statvfs(vfs_t *vfsp, struct statvfs64 *statp); 1703 zfs_statvfs(vfs_t *vfsp, struct statvfs64 *statp) in zfs_statvfs() argument 1719 statp->f_frsize = 1UL << SPA_MINBLOCKSHIFT; in zfs_statvfs() 1720 statp->f_bsize = zfsvfs->z_max_blksz; in zfs_statvfs() 1728 statp->f_blocks = (refdbytes + availbytes) >> SPA_MINBLOCKSHIFT; in zfs_statvfs() 1729 statp->f_bfree = availbytes >> SPA_MINBLOCKSHIFT; in zfs_statvfs() 1730 statp->f_bavail = statp->f_bfree; /* no root reservation */ in zfs_statvfs() 1740 statp->f_ffree = MIN(availobjs, statp->f_bfree); in zfs_statvfs() 1741 statp->f_favail = statp->f_ffree; /* no "root reservation" */ in zfs_statvfs() 1742 statp->f_files = statp->f_ffree + usedobjs; in zfs_statvfs() [all …]
|