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

12

/freebsd-10-stable/lib/libc/resolv/
H A Dres_state.c53 res_state statp = ptr; local
55 if (statp->_u._ext.ext != NULL)
56 res_ndestroy(statp);
57 free(statp);
67 res_check_reload(res_state statp) argument
73 if ((statp->options & RES_INIT) == 0) {
74 return (statp);
77 ext = statp->_u._ext.ext;
79 return (statp);
84 return (statp);
100 res_state statp; local
[all...]
H A Dres_data.c83 res_state statp = &_res; local
104 if (!statp->retrans)
105 statp->retrans = RES_TIMEOUT;
106 if (!statp->retry)
107 statp->retry = RES_DFLRETRY;
108 if (!(statp->options & RES_INIT))
109 statp->options = RES_DEFAULT;
111 return (__res_vinit(statp, 1));
126 res_state statp = &_res; local
127 if ((statp
143 res_state statp = &_res; local
155 res_state statp = &_res; local
170 res_state statp = &_res; local
197 res_state statp = &_res; local
211 res_state statp = &_res; local
228 res_state statp = &_res; local
243 res_state statp = &_res; local
259 res_state statp = &_res; local
272 res_state statp = &_res; local
298 res_state statp; local
[all...]
H A Dres_send.c173 res_ourserver_p(const res_state statp, const struct sockaddr *sa) { argument
181 for (ns = 0; ns < statp->nscount; ns++) {
182 srv = (struct sockaddr_in *)get_nsaddr(statp, ns);
191 if (EXT(statp).ext == NULL)
194 for (ns = 0; ns < statp->nscount; ns++) {
195 srv6 = (struct sockaddr_in6 *)get_nsaddr(statp, ns);
304 res_nsend(res_state statp, argument
314 if (statp->nscount == 0 || EXT(statp).ext == NULL) {
322 DprintQ((statp
624 send_vc(res_state statp, const u_char *buf, int buflen, u_char *ans, int anssiz, int *terrno, int ns) argument
826 send_dg(res_state statp, int kq, const u_char *buf, int buflen, u_char *ans, int anssiz, int *terrno, int ns, int tries, int *v_circuit, int *gotsomewhere) argument
1101 Aerror(const res_state statp, FILE *file, const char *string, int error, const struct sockaddr *address, int alen) argument
1123 Perror(const res_state statp, FILE *file, const char *string, int error) argument
[all...]
H A Dres_init.c165 res_ninit(res_state statp) { argument
168 return (__res_vinit(statp, 0));
173 __res_vinit(res_state statp, int preinit) { argument
189 RES_SET_H_ERRNO(statp, 0);
190 if (statp->_u._ext.ext != NULL)
191 res_ndestroy(statp);
194 statp->retrans = RES_TIMEOUT;
195 statp->retry = RES_DFLRETRY;
196 statp->options = RES_DEFAULT;
199 statp
597 res_setoptions(res_state statp, const char *options, const char *source) argument
758 res_rndinit(res_state statp) argument
777 res_nrandomid(res_state statp) argument
807 res_nclose(res_state statp) argument
824 res_ndestroy(res_state statp) argument
839 res_get_nibblesuffix(res_state statp) argument
846 res_get_nibblesuffix2(res_state statp) argument
854 res_setservers(res_state statp, const union res_sockaddr_union *set, int cnt) argument
905 res_getservers(res_state statp, union res_sockaddr_union *set, int cnt) argument
[all...]
H A Dres_query.c112 res_nquery(res_state statp, argument
124 oflags = statp->_flags;
129 if (statp->options & RES_DEBUG)
133 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL,
136 if (n > 0 && (statp->_flags & RES_F_EDNS0ERR) == 0 &&
137 (statp->options & (RES_USE_EDNS0|RES_USE_DNSSEC|RES_NSID))) {
138 n = res_nopt(statp, n, buf, sizeof(buf), anslen);
139 if (n > 0 && (statp->options & RES_NSID) != 0U) {
141 n = res_nopt_rdata(statp, n, buf, sizeof(buf), rdata,
148 if (statp
213 res_nsearch(res_state statp, const char *name, int class, int type, u_char *answer, int anslen) argument
407 res_nquerydomain(res_state statp, const char *name, const char *domain, int class, int type, u_char *answer, int anslen) argument
452 res_hostalias(const res_state statp, const char *name, char *dst, size_t siz) 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_private.h23 res_ourserver_p(const res_state statp, const struct sockaddr *sa);
H A Dres_findzonecut.c96 if ((statp->options & RES_DEBUG) != 0U) res_dprintf x; \
158 res_findzonecut(res_state statp, const char *dname, ns_class class, int opts, argument
172 result = res_findzonecut2(statp, dname, class, opts, zname, zsize,
184 res_findzonecut2(res_state statp, const char *dname, ns_class class, int opts, argument
195 save_pfcode = statp->pfcode;
196 statp->pfcode |= RES_PRF_HEAD2 | RES_PRF_HEAD1 | RES_PRF_HEADX |
202 if ((n = get_soa(statp, dname, class, opts, zname, zsize,
205 (n = satisfy(statp, mname, &nsrrs, addrs, naddrs)) > 0))
209 if ((n = get_ns(statp, zname, class, opts, &nsrrs)) < 0 ||
211 (n = satisfy(statp, mnam
228 satisfy(res_state statp, const char *mname, rrset_ns *nsrrsp, union res_sockaddr_union *addrs, int naddrs) argument
256 add_addrs(res_state statp, rr_ns *nsrr, union res_sockaddr_union *addrs, int naddrs) argument
274 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
414 get_ns(res_state statp, const char *zname, ns_class class, int opts, rrset_ns *nsrrsp) argument
447 get_glue(res_state statp, ns_class class, int opts, rrset_ns *nsrrsp) argument
522 save_ns(res_state statp, ns_msg *msg, ns_sect sect, const char *owner, ns_class class, int opts, rrset_ns *nsrrsp) argument
581 save_a(res_state statp, ns_msg *msg, ns_sect sect, const char *owner, ns_class class, int opts, rr_ns *nsrr) argument
675 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_mkquery.c97 res_nmkquery(res_state statp, argument
115 if (statp->options & RES_DEBUG)
126 statp->id = res_nrandomid(statp);
127 hp->id = htons(statp->id);
129 hp->rd = (statp->options & RES_RECURSE) != 0U;
209 res_nopt(res_state statp, argument
220 if ((statp->options & RES_DEBUG) != 0U)
241 if (statp->options & RES_USE_DNSSEC) {
243 if (statp
265 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
[all...]
H A Dres_update.c90 if ((statp->options & RES_DEBUG) != 0U) res_dprintf x; \
97 res_nupdate(res_state statp, ns_updrec *rrecp_in, ns_tsig_key *key) { argument
119 nscnt = res_findzonecut2(statp, rrecp->r_dname, tgrp.z_class,
162 n = res_nmkupdate(statp, HEAD(zptr->z_rrlist),
169 nscount = res_getservers(statp, nsaddrs, MAXNS);
170 res_setservers(statp, zptr->z_nsaddrs, zptr->z_nscount);
176 RES_SET_H_ERRNO(statp, NO_RECOVERY);
179 n = res_nsendsigned(statp, packet, n, key,
183 n = res_nsend(statp, packet, n, answer, sizeof answer);
193 res_setservers(statp, nsaddr
[all...]
H A Dres_debug.c135 fp_resstat(const res_state statp, FILE *file) { argument
140 if (statp->options & mask)
146 do_section(const res_state statp, argument
159 sflag = (statp->pfcode & pflag);
160 if (statp->pfcode && !sflag)
177 (statp->pfcode & RES_PRF_HEAD1))
181 if (rrnum == 0 && sflag != 0 && (statp->pfcode & RES_PRF_HEAD1))
275 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) { argument
295 if ((!statp->pfcode) || (statp
[all...]
/freebsd-10-stable/lib/libc/net/
H A Dgethostbydns.c130 RES_SET_H_ERRNO(statp, NO_RECOVERY); \
138 RES_SET_H_ERRNO(statp, NO_RECOVERY); \
145 struct hostent *he, struct hostent_data *hed, res_state statp)
171 RES_SET_H_ERRNO(statp, NO_RECOVERY);
185 RES_SET_H_ERRNO(statp, NO_RECOVERY);
190 RES_SET_H_ERRNO(statp, NO_RECOVERY);
201 RES_SET_H_ERRNO(statp, NO_RECOVERY);
252 RES_SET_H_ERRNO(statp, NO_RECOVERY);
282 RES_SET_H_ERRNO(statp, NO_RECOVERY);
321 RES_SET_H_ERRNO(statp, NO_RECOVER
144 gethostanswer(const querybuf *answer, int anslen, const char *qname, int qtype, struct hostent *he, struct hostent_data *hed, res_state statp) argument
442 res_state statp; local
479 res_state statp; local
572 res_state statp; local
762 res_state statp; local
774 res_state statp; local
[all...]
H A Dgetnetbydns.c157 struct netent_data *ned, res_state statp)
192 RES_SET_H_ERRNO(statp, HOST_NOT_FOUND);
194 RES_SET_H_ERRNO(statp, TRY_AGAIN);
240 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
247 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
258 RES_SET_H_ERRNO(statp, TRY_AGAIN);
277 res_state statp; local
287 statp = __res_state();
288 if ((statp->options & RES_INIT) == 0 && res_ninit(statp)
156 getnetanswer(querybuf *answer, int anslen, int net_i, struct netent *ne, struct netent_data *ned, res_state statp) argument
382 res_state statp; local
448 res_state statp; local
460 res_state statp; local
[all...]
H A Dgethostbyht.c92 res_state statp)
100 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
105 RES_SET_H_ERRNO(statp, HOST_NOT_FOUND);
147 RES_SET_H_ERRNO(statp, NO_RECOVERY);
171 RES_SET_H_ERRNO(statp, NETDB_SUCCESS);
181 res_state statp; local
183 statp = __res_state();
184 if ((statp->options & RES_INIT) == 0 && res_ninit(statp) == -1) {
185 RES_SET_H_ERRNO(statp, NETDB_INTERNA
91 gethostent_p(struct hostent *he, struct hostent_data *hed, int mapped, res_state statp) argument
231 res_state statp; local
295 res_state statp; local
[all...]
H A Dgethostbynis.c60 res_state statp; local
62 statp = __res_state();
72 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
78 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
84 RES_SET_H_ERRNO(statp, HOST_NOT_FOUND);
106 if (statp->options & RES_USE_INET6) {
118 RES_SET_H_ERRNO(statp, HOST_NOT_FOUND);
135 RES_SET_H_ERRNO(statp, NO_RECOVERY);
212 res_state statp; local
224 statp
261 res_state statp; local
[all...]
H A Dgetnetbyht.c156 res_state statp; local
158 statp = __res_state();
160 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
161 *h_errnop = statp->res_h_errno;
167 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
168 *h_errnop = statp->res_h_errno;
200 res_state statp; local
210 statp = __res_state();
212 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
213 *h_errnop = statp
252 res_state statp; local
[all...]
H A Dgethostnamadr.c167 res_state statp; local
181 statp = __res_state();
182 res_options = statp->options & (RES_RECURSE | RES_DEFNAMES |
440 size_t buflen, res_state statp)
447 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
454 RES_SET_H_ERRNO(statp, HOST_NOT_FOUND);
459 if (af == AF_INET && (statp->options & RES_USE_INET6) != 0U) {
474 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
484 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
487 RES_SET_H_ERRNO(statp, NETDB_SUCCES
439 fakeaddr(const char *name, int af, struct hostent *hp, char *buf, size_t buflen, res_state statp) argument
495 res_state statp; local
519 res_state statp; local
531 gethostbyname_internal(const char *name, int af, struct hostent *hp, char *buf, size_t buflen, struct hostent **result, int *h_errnop, res_state statp) argument
598 res_state statp; local
[all...]
H A Dgetnetbynis.c142 res_state statp; local
151 statp = __res_state();
153 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
154 *h_errnop = statp->res_h_errno;
159 *h_errnop = statp->res_h_errno;
164 RES_SET_H_ERRNO(statp, NETDB_INTERNAL);
165 *h_errnop = statp->res_h_errno;
192 res_state statp; local
202 statp = __res_state();
204 RES_SET_H_ERRNO(statp, NETDB_INTERNA
[all...]
H A Dname6.c222 res_state statp; local
274 statp = __res_state();
275 if ((statp->options & RES_INIT) == 0) {
276 if (res_ninit(statp) < 0) {
282 options = statp->options;
283 statp->options &= ~RES_USE_INET6;
296 *errp = statp->res_h_errno;
310 *errp = statp->res_h_errno;
312 statp->options = options;
313 return _hpsort(hp, statp);
320 res_state statp; local
588 _hpsort(struct hostent *hp, res_state statp) argument
[all...]
/freebsd-10-stable/lib/librpcsvc/
H A Drstat.c49 rstat(char *host, struct statstime *statp) argument
53 (xdrproc_t)xdr_statstime, (char *) statp));
/freebsd-10-stable/lib/libgeom/
H A Dgeom_stats.c47 static u_char *statp; variable
54 munmap(statp, npages *pagesize);
55 statp = NULL;
68 p = mmap(statp, (npages + 1) * pagesize,
73 statp = p;
99 statp = p;
132 memcpy(sp->ptr, statp, pagesize * npages);
/freebsd-10-stable/contrib/sendmail/src/
H A Dmap.c1205 ** statp -- pointer to status (EX_)
1213 dns_map_lookup(map, name, av, statp)
1217 int *statp;
1243 *statp = EX_UNAVAILABLE;
1261 *statp = EX_TEMPFAIL;
1263 *statp = EX_NOTFOUND;
1266 *statp = EX_OK;
1332 *statp = EX_DATAERR;
1377 *statp = EX_NOTFOUND;
1680 ndbm_map_lookup(map, name, av, statp)
[all...]
H A Ddomain.c631 bestmx_map_lookup(map, name, av, statp)
635 int *statp;
651 nmx = getmxrr(name, mxhosts, NULL, false, statp, false, NULL);
684 *statp = EX_UNAVAILABLE;
757 ** statp -- pointer to place to store status.
766 dns_getcanonname(host, hbsize, trymx, statp, pttl)
770 int *statp;
798 *statp = EX_UNAVAILABLE;
802 *statp = EX_OK;
901 if (*statp
[all...]
/freebsd-10-stable/sys/dev/fatm/
H A Dif_fatm.c150 H_SYNCSTAT_POSTREAD(sc, q->q.statp);
151 if(H_GETSTAT(q->q.statp) & FATM_STAT_ERROR) {
180 H_SYNCSTAT_POSTREAD(sc, q->q.statp);
181 if (!(H_GETSTAT(q->q.statp) & FATM_STAT_FREE)) {
189 H_SETSTAT(q->q.statp, FATM_STAT_PENDING);
190 H_SYNCSTAT_PREWRITE(sc, q->q.statp);
230 H_SYNCSTAT_POSTREAD(sc, q->q.statp);
231 if (H_GETSTAT(q->q.statp) & FATM_STAT_ERROR) {
267 H_SYNCSTAT_POSTREAD(sc, q->q.statp);
268 if (!(H_GETSTAT(q->q.statp)
715 u_char *statp; local
[all...]
/freebsd-10-stable/usr.bin/kdump/
H A Dkdump.c1763 ktrstat(struct stat *statp) argument
1771 * note: ktrstruct() has already verified that statp points to a
1776 (uintmax_t)statp->st_dev, (uintmax_t)statp->st_ino);
1778 printf("mode=0%jo, ", (uintmax_t)statp->st_mode);
1780 strmode(statp->st_mode, mode);
1783 printf("nlink=%ju, ", (uintmax_t)statp->st_nlink);
1784 if (resolv == 0 || (pwd = getpwuid(statp->st_uid)) == NULL)
1785 printf("uid=%ju, ", (uintmax_t)statp->st_uid);
1788 if (resolv == 0 || (grp = getgrgid(statp
[all...]

Completed in 158 milliseconds

12