/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | vpstat.c | 41 vpstat(char *path, struct stat *statp) argument 47 if ((returncode = stat(path, statp)) == -1 && path[0] != '/') { 51 if ((returncode = stat(buf, statp)) != -1) {
|
/illumos-gate/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_sendsigned.c | 29 res_nsendsigned(res_state statp, const u_char *msg, int msglen, argument 45 nstatp = (res_state) malloc(sizeof(*statp)); 50 memcpy(nstatp, statp, sizeof(*statp)); 116 Dprint((statp->options & RES_DEBUG) || 117 ((statp->pfcode & RES_PRF_REPLY) && 118 (statp->pfcode & RES_PRF_HEAD1)), 121 DprintQ((statp->options & RES_DEBUG) || 122 (statp->pfcode & RES_PRF_REPLY), 127 Dprint(statp [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) { argument 116 nscnt = res_findzonecut2(statp, rrecp->r_dname, tgrp.z_class, 159 n = res_nmkupdate(statp, HEAD(zptr->z_rrlist), 166 nscount = res_getservers(statp, nsaddrs, MAXNS); 167 res_setservers(statp, zptr->z_nsaddrs, zptr->z_nscount); 171 n = res_nsendsigned(statp, packet, n, key, 174 n = res_nsend(statp, packet, n, answer, sizeof answer); 184 res_setservers(statp, nsaddrs, nscount); 196 res_setservers(statp, nsaddr [all...] |
H A D | res_mkquery.c | 107 static int _confcheck(res_state statp); 116 res_nmkquery(res_state statp, argument 134 if (statp->options & RES_DEBUG) 144 if (_confcheck(statp) == -1) { 145 RES_SET_H_ERRNO(statp, NO_RECOVERY); 157 statp->id = res_nrandomid(statp); 158 hp->id = htons(statp->id); 160 hp->rd = (statp->options & RES_RECURSE) != 0U; 240 res_nopt(res_state statp, argument 294 res_nopt_rdata(res_state statp, int n0, u_char *buf, int buflen, u_char *rdata, u_short code, u_short len, u_char *data) argument 341 _confcheck(res_state statp) argument [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, argument 168 result = res_findzonecut2(statp, dname, class, opts, zname, zsize, 179 res_findzonecut2(res_state statp, const char *dname, ns_class class, int opts, argument 190 save_pfcode = statp->pfcode; 191 statp->pfcode |= RES_PRF_HEAD2 | RES_PRF_HEAD1 | RES_PRF_HEADX | 197 if ((n = get_soa(statp, dname, class, opts, zname, zsize, 200 (n = satisfy(statp, mname, &nsrrs, addrs, naddrs)) > 0)) 204 if ((n = get_ns(statp, zname, class, opts, &nsrrs)) < 0 || 206 (n = satisfy(statp, mnam 223 satisfy(res_state statp, const char *mname, rrset_ns *nsrrsp, union res_sockaddr_union *addrs, int naddrs) argument 251 add_addrs(res_state statp, rr_ns *nsrr, union res_sockaddr_union *addrs, int naddrs) argument 269 get_soa(res_state statp, const char *dname, ns_class class, int opts, char *zname, size_t zsize, char *mname, size_t msize, rrset_ns *nsrrsp) argument 409 get_ns(res_state statp, const char *zname, ns_class class, int opts, rrset_ns *nsrrsp) argument 442 get_glue(res_state statp, ns_class class, int opts, rrset_ns *nsrrsp) argument 517 save_ns(res_state statp, ns_msg *msg, ns_sect sect, const char *owner, ns_class class, int opts, rrset_ns *nsrrsp) argument 576 save_a(res_state statp, ns_msg *msg, ns_sect sect, const char *owner, ns_class class, int opts, rr_ns *nsrr) argument 670 do_query(res_state statp, const char *dname, ns_class class, ns_type qtype, u_char *resp, ns_msg *msg) argument [all...] |
H A D | res_init.c | 175 res_ninit(res_state statp) { argument 177 return (__res_vinit(statp, 0)); 182 __res_vinit(res_state statp, int preinit) { argument 198 RES_SET_H_ERRNO(statp, 0); 199 if (statp->_u._ext.ext != NULL) 200 res_ndestroy(statp); 203 statp->retrans = RES_TIMEOUT; 204 statp->retry = RES_DFLRETRY; 205 statp->options = RES_DEFAULT; 206 res_rndinit(statp); 628 res_setoptions(res_state statp, const char *options, const char *source) argument 773 res_rndinit(res_state statp) argument 792 res_nrandomid(res_state statp) argument 822 res_nclose(res_state statp) argument 839 res_ndestroy(res_state statp) argument 848 res_get_nibblesuffix(res_state statp) argument 855 res_get_nibblesuffix2(res_state statp) argument 862 res_setservers(res_state statp, const union res_sockaddr_union *set, int cnt) argument 913 res_getservers(res_state statp, union res_sockaddr_union *set, int cnt) argument [all...] |
H A D | res_query.c | 111 res_nquery(res_state statp, argument 123 oflags = statp->_flags; 128 if (statp->options & RES_DEBUG) 132 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL, 135 if (n > 0 && (statp->_flags & RES_F_EDNS0ERR) == 0 && 136 (statp->options & (RES_USE_EDNS0|RES_USE_DNSSEC|RES_NSID))) { 137 n = res_nopt(statp, n, buf, sizeof(buf), anslen); 139 if (n > 0 && (statp->options & RES_NSID) != 0U) { 140 n = res_nopt_rdata(statp, n, buf, sizeof(buf), rdata, 147 if (statp 212 res_nsearch(res_state statp, const char *name, int class, int type, u_char *answer, int anslen) argument 358 res_nquerydomain(res_state statp, const char *name, const char *domain, int class, int type, u_char *answer, int anslen) argument 403 res_hostalias(const res_state statp, const char *name, char *dst, size_t siz) argument [all...] |
H A D | res_mkupdate.c | 81 res_nmkupdate(res_state statp, ns_updrec *rrecp_in, u_char *buf, int buflen) { argument 104 statp->id = res_nrandomid(statp); 105 hp->id = htons(statp->id);
|
/illumos-gate/usr/src/uts/sun4u/sunfire/io/ |
H A D | ac_stat.c | 61 ac_stat_t *statp; local 100 statp = kmem_zalloc(sizeof (ac_stat_t), KM_SLEEP); 102 statp->rstate = mem_info->rstate; 103 statp->ostate = mem_info->ostate; 104 statp->condition = mem_info->condition; 105 statp->status_time = mem_info->status_change; 106 statp->board = ac->board; 107 statp->real_size = mem_info->real_size; 108 statp->use_size = mem_info->use_size; 109 statp [all...] |
H A D | simmstat.c | 298 volatile char *statp; /* pointer to hardware register */ local 305 statp = (char *)softsp->simmstat_base; 316 for (i = 0; i < SIMM_COUNT; i++, statp++, kstatp++) { 317 *kstatp = *statp;
|
/illumos-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) { argument 175 ret = __ISC_res_nmkupdate(statp, r, buf, length); 200 res_nupdate(res_state statp, ns_updrec *rrecp_in, ns_tsig_key *key) { argument 208 ret = __ISC_res_nupdate(statp, r, key);
|
/illumos-gate/usr/src/lib/libndmp/common/ |
H A D | libndmp.c | 368 ndmp_get_stats(ndmp_stat_t *statp) argument 373 if (!statp) { 384 statp->ns_trun = ndmp_door_get_uint32(dec_ctx); 385 statp->ns_twait = ndmp_door_get_uint32(dec_ctx); 386 statp->ns_nbk = ndmp_door_get_uint32(dec_ctx); 387 statp->ns_nrs = ndmp_door_get_uint32(dec_ctx); 388 statp->ns_rfile = ndmp_door_get_uint32(dec_ctx); 389 statp->ns_wfile = ndmp_door_get_uint32(dec_ctx); 390 statp->ns_rdisk = ndmp_door_get_uint64(dec_ctx); 391 statp [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | _xftw.c | 42 * (*fn) (pathname, statp, ftwflag) 322 nocdstat(const char *path, struct stat *statp, struct Var *vp, int sym) argument 330 rc = fstatat(AT_FDCWD, path, statp, sym); 357 rc = fstatat(fd, unrootp, statp, sym);
|
H A D | nftw.c | 613 cdstat(const char *path, struct stat *statp, struct Save *lp, int flags) argument 615 return (fstatat(AT_FDCWD, path, statp, flags)); 623 cdlstat(const char *path, struct stat *statp, struct Save *lp, int flags) argument 625 return (fstatat(AT_FDCWD, path, statp, 633 nocdstat(const char *path, struct stat *statp, struct Save *lp, int flags) argument 649 return (fstatat(fd, basepath, statp, flags)); 656 nocdlstat(const char *path, struct stat *statp, struct Save *lp, int flags) argument 672 return (fstatat(fd, basepath, statp, flags | AT_SYMLINK_NOFOLLOW));
|
/illumos-gate/usr/src/uts/common/io/hxge/ |
H A D | hpi_vir.c | 257 hpi_fzc_sys_err_stat_get(hpi_handle_t handle, dev_err_stat_t *statp) argument 259 HXGE_REG_RD32(handle, DEV_ERR_STAT, &statp->value);
|
/illumos-gate/usr/src/uts/common/ipp/dlcosmk/ |
H A D | dlcosmkddi.c | 362 dlcosmk_stat_t *statp; local 373 statp = (dlcosmk_stat_t *)(dlcosmk_data->stats)->ipps_data; 374 ASSERT(statp != NULL); 377 IPP_STAT_UINT64, &statp->npackets)) != 0) { 384 IPP_STAT_UINT64, &statp->ipackets)) != 0) { 391 IPP_STAT_UINT64, &statp->epackets)) != 0) { 398 IPP_STAT_INT32, &statp->usr_pri)) != 0) { 405 IPP_STAT_INT32, &statp->b_band)) != 0) { 412 IPP_STAT_INT32, &statp->dl_max)) != 0) {
|
/illumos-gate/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...] |
/illumos-gate/usr/src/cmd/cat/ |
H A D | cat.c | 329 cat(FILE *fi, struct stat *statp, struct stat *outp, char *filenm) argument 342 if (S_ISREG(statp->st_mode) && (lseek(fi_desc, (off_t)0, SEEK_CUR) 343 == 0) && (statp->st_size > SMALLFILESIZE)) { 345 if (statp->st_size < mapsize) 346 mapsize = statp->st_size; 376 filesize = statp->st_size; 435 if (S_ISREG(statp->st_mode) && S_ISREG(outp->st_mode)) {
|
/illumos-gate/usr/src/uts/common/ipp/dscpmk/ |
H A D | dscpmkddi.c | 451 dscpmk_dscp_stats_t *statp; local 465 statp = (dscpmk_dscp_stats_t *) 467 ASSERT(statp != NULL); 470 "dscp", IPP_STAT_UINT32, &statp->dscp)) != 0) { 477 "npackets", IPP_STAT_UINT64, &statp->npackets)) != 0) { 492 dscpmk_stat_t *statp; local 502 statp = (dscpmk_stat_t *)(dscpmk_data->stats)->ipps_data; 503 ASSERT(statp != NULL); 506 IPP_STAT_UINT64, &statp->npackets)) != 0) { 513 IPP_STAT_UINT64, &statp 549 dscpmk_dscp_stats_t *statp; local [all...] |
/illumos-gate/usr/src/cmd/grep/ |
H A D | grep.c | 273 recursive(const char *name, const struct stat *statp, int info, struct FTW *ftw) argument 288 if (!Rflag && !S_ISREG(statp->st_mode))
|
/illumos-gate/usr/src/tools/findunref/ |
H A D | findunref.c | 444 checkpath(const char *path, const struct stat *statp, int type, argument 452 if (statp->st_atime >= tstamp || pnset_check(exsetp, path))
|
/illumos-gate/usr/src/lib/nsswitch/dns/common/ |
H A D | dns_common.c | 404 struct __res_state stat, *statp; /* dns state block */ local 435 statp = &stat; 436 (void) memset(statp, '\0', sizeof (struct __res_state)); 437 if (res_ninit(statp) == -1) { 451 res_ndestroy(statp); 510 res_ndestroy(statp); 515 res_ndestroy(statp); 520 res_ndestroy(statp); 547 ret = res_nsearch(statp, name, C_IN, qtype, resbuf.buf, NS_MAXMSG); 554 if (statp [all...] |
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | db_mindex.cc | 317 * Sets db_status 'statp' if error encountered; otherwise, leaves it unchanged. 320 db_mindex::prepare_results(int count, db_index_entry_p res, db_status *statp) argument 342 *statp = DB_INTERNAL_ERROR;
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | dns_ho.c | 1095 addrsort(res_state statp, char **ap, int num) { argument 1101 for (j = 0 ; (unsigned)j < statp->nsort; j++) 1102 if (statp->sort_list[j].addr.s_addr == 1104 statp->sort_list[j].mask))
|
/illumos-gate/usr/src/cmd/lvm/rpc.metamhd/ |
H A D | mhd_drive.c | 1196 const struct stat *statp, 1206 if ((type != FTW_F) || (! S_ISCHR(statp->st_mode)) || 1194 do_disk( const char *path, const struct stat *statp, int type ) argument
|