| /onnv-gate/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);\
|
| /onnv-gate/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 | 301 volatile char *statp; /* pointer to hardware register */ in simmstat_kstat_update() local 308 statp = (char *)softsp->simmstat_base; in simmstat_kstat_update() 319 for (i = 0; i < SIMM_COUNT; i++, statp++, kstatp++) { in simmstat_kstat_update() 320 *kstatp = *statp; in simmstat_kstat_update()
|
| /onnv-gate/usr/src/cmd/cmd-inet/usr.sadm/dhcpmgr/lib/ |
| H A D | dd_opt.c | 295 res_state statp; in get_dns_domain() local 297 statp = calloc(1, sizeof (*statp)); in get_dns_domain() 298 if (statp == NULL) { in get_dns_domain() 300 } else if (res_ninit(statp) == -1) { in get_dns_domain() 312 if (statp->nsaddr_list[0].sin_family == AF_INET && in get_dns_domain() 313 statp->nsaddr_list[0].sin_addr.s_addr == in get_dns_domain() 318 strdup(statp->defdname); in get_dns_domain() 326 if (statp != NULL) { in get_dns_domain() 327 (void) res_ndestroy(statp); in get_dns_domain() 328 free(statp); in get_dns_domain() [all …]
|
| /onnv-gate/usr/src/lib/nsswitch/dns/common/ |
| H A D | dns_common.c | 359 struct __res_state stat, *statp; /* dns state block */ in _nss_dns_gethost_withttl() local 388 statp = &stat; in _nss_dns_gethost_withttl() 389 (void) memset(statp, '\0', sizeof (struct __res_state)); in _nss_dns_gethost_withttl() 390 if (res_ninit(statp) == -1) in _nss_dns_gethost_withttl() 403 res_ndestroy(statp); in _nss_dns_gethost_withttl() 410 res_ndestroy(statp); in _nss_dns_gethost_withttl() 422 ret = res_nsearch(statp, name, C_IN, qtype, resbuf.buf, NS_MAXMSG); in _nss_dns_gethost_withttl() 424 if (statp->res_h_errno == HOST_NOT_FOUND) { in _nss_dns_gethost_withttl() 428 res_ndestroy(statp); in _nss_dns_gethost_withttl() 432 res_ndestroy(statp); in _nss_dns_gethost_withttl() [all …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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()
|
| /onnv-gate/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));
|
| /onnv-gate/usr/src/lib/pkcs11/pkcs11_kms/common/ |
| H A D | kmsKeystoreUtil.c | 262 struct stat statp; in kms_is_initialized() local 271 if (stat(cfgfile_path, &statp)) in kms_is_initialized() 287 struct stat statp; in kms_read_config_data() local 292 if (stat(path, &statp) == -1) { in kms_read_config_data() 296 cfgbuf = calloc(1, statp.st_size); in kms_read_config_data() 300 buflen = kms_slurp_file(path, cfgbuf, statp.st_size); in kms_read_config_data() 301 if (buflen != statp.st_size) { in kms_read_config_data() 370 struct stat statp; in kms_is_pin_set() local 391 if (stat(filepath, &statp)) in kms_is_pin_set() 450 struct stat statp; in kms_reload_labels() local [all …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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()
|
| /onnv-gate/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));
|
| /onnv-gate/usr/src/cmd/filebench/common/ |
| H A D | fsplug.h | 133 #define FB_STAT(path, statp) \ argument 134 (*fs_functions_vec->fsp_stat)(path, statp) 136 #define FB_FSTAT(fdesc, statp) \ argument 137 (*fs_functions_vec->fsp_fstat)(fdesc, statp)
|
| /onnv-gate/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()
|
| /onnv-gate/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()
|