Searched refs:statp (Results 1 - 25 of 60) sorted by relevance

123

/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_query.c106 res_nquery(res_state statp, argument
118 oflags = statp->_flags;
123 if (statp->options & RES_DEBUG)
127 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL,
130 if (n > 0 && (statp->_flags & RES_F_EDNS0ERR) == 0 &&
131 (statp->options & (RES_USE_EDNS0|RES_USE_DNSSEC|RES_NSID))) {
132 n = res_nopt(statp, n, buf, sizeof(buf), anslen);
134 if (n > 0 && (statp->options & RES_NSID) != 0U) {
135 n = res_nopt_rdata(statp, n, buf, sizeof(buf), rdata,
142 if (statp
207 res_nsearch(res_state statp, const char *name, int class, int type, u_char *answer, int anslen) argument
353 res_nquerydomain(res_state statp, const char *name, const char *domain, int class, int type, u_char *answer, int anslen) argument
398 res_hostalias(const res_state statp, const char *name, char *dst, size_t siz) argument
[all...]
H A Dres_send.c172 res_ourserver_p(const res_state statp, const struct sockaddr *sa) { argument
180 for (ns = 0; ns < statp->nscount; ns++) {
181 srv = (struct sockaddr_in *)get_nsaddr(statp, ns);
190 if (EXT(statp).ext == NULL)
193 for (ns = 0; ns < statp->nscount; ns++) {
194 srv6 = (struct sockaddr_in6 *)get_nsaddr(statp, ns);
303 res_nsend(res_state statp, argument
314 if (statp->nscount == 0 || EXT(statp).ext == NULL) {
322 DprintQ((statp
601 send_vc(res_state statp, const u_char *buf, int buflen, u_char *ans, int anssiz, int *terrno, int ns) argument
822 send_dg(res_state statp, const u_char *buf, int buflen, u_char *ans, int anssiz, int *terrno, int ns, int tries, int *v_circuit, int *gotsomewhere) argument
1058 Aerror(const res_state statp, FILE *file, const char *string, int error, const struct sockaddr *address, int alen) argument
1082 Perror(const res_state statp, FILE *file, const char *string, int error) argument
[all...]
H A Dres_init.c170 res_ninit(res_state statp) { argument
172 return (__res_vinit(statp, 0));
177 __res_vinit(res_state statp, int preinit) { argument
193 RES_SET_H_ERRNO(statp, 0);
194 if (statp->_u._ext.ext != NULL)
195 res_ndestroy(statp);
198 statp->retrans = RES_TIMEOUT;
199 statp->retry = RES_DFLRETRY;
200 statp->options = RES_DEFAULT;
201 res_rndinit(statp);
623 res_setoptions(res_state statp, const char *options, const char *source) argument
768 res_rndinit(res_state statp) argument
787 res_nrandomid(res_state statp) argument
817 res_nclose(res_state statp) argument
834 res_ndestroy(res_state statp) argument
843 res_get_nibblesuffix(res_state statp) argument
850 res_get_nibblesuffix2(res_state statp) argument
857 res_setservers(res_state statp, const union res_sockaddr_union *set, int cnt) argument
908 res_getservers(res_state statp, union res_sockaddr_union *set, int cnt) argument
[all...]
H A Dres_debug.h24 # define Aerror(statp, file, string, error, address) /*empty*/
25 # define Perror(statp, file, string, error) /*empty*/
30 res_pquery(statp, query, size, stdout);\
H A Dres_sendsigned.c29 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 Dres_mkquery.c102 static int _confcheck(res_state statp);
111 res_nmkquery(res_state statp, argument
129 if (statp->options & RES_DEBUG)
139 if (_confcheck(statp) == -1) {
140 RES_SET_H_ERRNO(statp, NO_RECOVERY);
152 statp->id = res_nrandomid(statp);
153 hp->id = htons(statp->id);
155 hp->rd = (statp->options & RES_RECURSE) != 0U;
235 res_nopt(res_state statp, argument
289 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
336 _confcheck(res_state statp) argument
[all...]
H A Dres_private.h18 res_ourserver_p(const res_state statp, const struct sockaddr *sa);
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) { argument
112 nscnt = res_findzonecut2(statp, rrecp->r_dname, tgrp.z_class,
155 n = res_nmkupdate(statp, HEAD(zptr->z_rrlist),
162 nscount = res_getservers(statp, nsaddrs, MAXNS);
163 res_setservers(statp, zptr->z_nsaddrs, zptr->z_nscount);
167 n = res_nsendsigned(statp, packet, n, key,
170 n = res_nsend(statp, packet, n, answer, sizeof answer);
180 res_setservers(statp, nsaddrs, nscount);
192 res_setservers(statp, nsaddr
[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, argument
164 result = res_findzonecut2(statp, dname, class, opts, zname, zsize,
175 res_findzonecut2(res_state statp, const char *dname, ns_class class, int opts, argument
186 save_pfcode = statp->pfcode;
187 statp->pfcode |= RES_PRF_HEAD2 | RES_PRF_HEAD1 | RES_PRF_HEADX |
193 if ((n = get_soa(statp, dname, class, opts, zname, zsize,
196 (n = satisfy(statp, mname, &nsrrs, addrs, naddrs)) > 0))
200 if ((n = get_ns(statp, zname, class, opts, &nsrrs)) < 0 ||
202 (n = satisfy(statp, mnam
219 satisfy(res_state statp, const char *mname, rrset_ns *nsrrsp, union res_sockaddr_union *addrs, int naddrs) argument
247 add_addrs(res_state statp, rr_ns *nsrr, union res_sockaddr_union *addrs, int naddrs) argument
265 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
405 get_ns(res_state statp, const char *zname, ns_class class, int opts, rrset_ns *nsrrsp) argument
438 get_glue(res_state statp, ns_class class, int opts, rrset_ns *nsrrsp) argument
513 save_ns(res_state statp, ns_msg *msg, ns_sect sect, const char *owner, ns_class class, int opts, rrset_ns *nsrrsp) argument
572 save_a(res_state statp, ns_msg *msg, ns_sect sect, const char *owner, ns_class class, int opts, rr_ns *nsrr) argument
666 do_query(res_state statp, const char *dname, ns_class class, ns_type qtype, u_char *resp, ns_msg *msg) argument
[all...]
H A Dres_debug.c153 fp_resstat(const res_state statp, FILE *file) { argument
158 if (statp->options & mask)
164 do_section(const res_state statp, argument
177 sflag = (statp->pfcode & pflag);
178 if (statp->pfcode && !sflag)
195 (statp->pfcode & RES_PRF_HEAD1))
199 if (rrnum == 0 && sflag != 0 && (statp->pfcode & RES_PRF_HEAD1))
293 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) { argument
313 if ((!statp->pfcode) || (statp
[all...]
/illumos-gate/usr/src/lib/librpcsvc/common/
H A Drstat_simple.c33 rstat(host, statp)
35 struct statstime *statp;
39 xdr_statstime, (char *) statp, (char *) NULL));
/illumos-gate/usr/src/tools/cscope-fast/
H A Dvpstat.c41 vpstat(char *path, struct stat *statp) argument
47 if ((returncode = stat(path, statp)) == -1 && path[0] != '/') {
51 if ((returncode = stat(buf, statp)) != -1) {
H A Dlibrary.h58 int vpstat(char *path, struct stat *statp);
/illumos-gate/usr/src/uts/sun4u/sunfire/io/
H A Dac_stat.c61 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 Dsimmstat.c298 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/nsswitch/dns/common/
H A Ddns_common.c404 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/uts/common/ipp/dscpmk/
H A Ddscpmkddi.c451 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/lib/libndmp/common/
H A Dlibndmp.c368 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/cmd/sendmail/src/
H A Dmap.c1196 ** statp -- pointer to status (EX_)
1204 dns_map_lookup(map, name, av, statp)
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)
[all...]
H A Ddomain.c650 bestmx_map_lookup(map, name, av, statp)
654 int *statp;
670 nmx = getmxrr(name, mxhosts, NULL, false, statp, false, NULL);
703 *statp = EX_UNAVAILABLE;
776 ** statp -- pointer to place to store status.
785 dns_getcanonname(host, hbsize, trymx, statp, pttl)
789 int *statp;
817 *statp = EX_UNAVAILABLE;
821 *statp = EX_OK;
920 if (*statp
[all...]
/illumos-gate/usr/src/ucbcmd/touch/
H A Dtouch.c272 oldtouch(filename, statp)
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));
/illumos-gate/usr/src/cmd/cat/
H A Dcat.c334 cat(FILE *fi, struct stat *statp, struct stat *outp, char *filenm) argument
347 if (S_ISREG(statp->st_mode) && (lseek(fi_desc, (off_t)0, SEEK_CUR)
348 == 0) && (statp->st_size > SMALLFILESIZE)) {
350 if (statp->st_size < mapsize)
351 mapsize = statp->st_size;
381 filesize = statp->st_size;
440 if (S_ISREG(statp->st_mode) && S_ISREG(outp->st_mode)) {
/illumos-gate/usr/src/uts/common/ipp/dlcosmk/
H A Ddlcosmkddi.c362 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/lib/libresolv2/common/sunw/
H A Dsunw_updrec.c167 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/libc/port/gen/
H A Dnftw.c613 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));

Completed in 244 milliseconds

123