HomeSort by: relevance | last modified time | path
    Searched refs:statp (Results 1 - 15 of 15) sorted by relevancy

  /src/lib/libc/resolv/
res_init.c 189 res_ninit(res_state statp) {
190 return (__res_vinit(statp, 0));
194 __res_kqinit(res_state statp)
197 struct __res_state_ext *ext = statp->_u._ext.ext;
210 __res_vinit(res_state statp, int preinit) {
226 RES_SET_H_ERRNO(statp, 0);
228 if ((statp->options & RES_INIT) != 0U)
229 res_ndestroy(statp);
232 statp->retrans = RES_TIMEOUT;
233 statp->retry = RES_DFLRETRY
    [all...]
res_send.c 210 res_ourserver_p(const res_state statp, const struct sockaddr *sa) {
218 for (ns = 0; ns < statp->nscount; ns++) {
219 srv = (struct sockaddr_in *)(void *)get_nsaddr(statp, (size_t)ns);
228 if (EXT(statp).ext == NULL)
231 for (ns = 0; ns < statp->nscount; ns++) {
232 srv6 = (struct sockaddr_in6 *)(void *)get_nsaddr(statp, (size_t)ns);
341 res_nsend(res_state statp,
350 (void)res_check(statp, NULL);
353 if (statp->nscount == 0 || EXT(statp).ext == NULL)
    [all...]
res_query.c 145 res_nquery(res_state statp,
156 oflags = statp->_flags;
161 if (statp->options & RES_DEBUG)
165 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL,
168 if (n > 0 && (statp->_flags & RES_F_EDNS0ERR) == 0 &&
169 (statp->options & (RES_USE_EDNS0|RES_USE_DNSSEC|RES_NSID)) != 0U) {
170 n = res_nopt(statp, n, buf, (int)sizeof(buf), anslen);
171 if (n > 0 && (statp->options & RES_NSID) != 0U) {
172 n = res_nopt_rdata(statp, n, buf, (int)sizeof(buf),
179 if (statp->options & RES_DEBUG
    [all...]
res_debug.h 26 # define Aerror(statp, file, string, error, address) /*empty*/
27 # define Perror(statp, file, string, error) /*empty*/
32 res_pquery(statp, (query), (int)(size), stdout);\
res_mkquery.c 112 res_nmkquery(res_state statp,
130 if (statp->options & RES_DEBUG)
141 statp->id = res_nrandomid(statp);
142 hp->id = htons(statp->id);
144 hp->rd = (statp->options & RES_RECURSE) != 0U;
145 hp->ad = (statp->options & RES_USE_DNSSEC) != 0U;
226 res_nopt(res_state statp,
237 if ((statp->options & RES_DEBUG) != 0U)
258 if (statp->options & RES_USE_DNSSEC)
    [all...]
res_debug.c 145 fp_resstat(const res_state statp, FILE *file) {
150 if (statp->options & mask)
157 do_section(const res_state statp,
170 sflag = (int)(statp->pfcode & pflag);
171 if (statp->pfcode && !sflag)
188 (statp->pfcode & RES_PRF_HEAD1))
192 if (rrnum == 0 && sflag != 0 && (statp->pfcode & RES_PRF_HEAD1))
289 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) {
309 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX) || rcode
    [all...]
  /src/lib/libresolv/
res_sendsigned.c 32 res_nsendsigned(res_state statp, const u_char *msg, int msglen,
48 nstatp = (res_state) malloc(sizeof(*statp));
53 memcpy(nstatp, statp, sizeof(*statp));
119 Dprint((statp->options & RES_DEBUG) ||
120 ((statp->pfcode & RES_PRF_REPLY) &&
121 (statp->pfcode & RES_PRF_HEAD1)),
124 DprintQ((statp->options & RES_DEBUG) ||
125 (statp->pfcode & RES_PRF_REPLY),
130 Dprint(statp->pfcode & RES_PRF_REPLY
    [all...]
res_private.h 20 res_ourserver_p(const res_state statp, const struct sockaddr *sa);
res_update.c 92 if ((statp->options & RES_DEBUG) != 0U) res_dprintf x; \
99 res_nupdate(res_state statp, ns_updrec *rrecp_in, ns_tsig_key *key) {
120 nscnt = res_findzonecut2(statp, rrecp->r_dname, tgrp.z_class,
163 n = res_nmkupdate(statp, TAILQ_FIRST(&zptr->z_rrlist),
170 nscount = res_getservers(statp, nsaddrs, MAXNS);
171 res_setservers(statp, zptr->z_nsaddrs, zptr->z_nscount);
175 n = res_nsendsigned(statp, packet, n, key,
178 n = res_nsend(statp, packet, n, answer,
190 res_setservers(statp, nsaddrs, nscount);
202 res_setservers(statp, nsaddrs, nscount)
    [all...]
res_findzonecut.c 97 if ((statp->options & RES_DEBUG) != 0U) res_dprintf x; \
158 res_findzonecut(res_state statp, const char *dname, ns_class class, int opts,
172 result = res_findzonecut2(statp, dname, class, opts, zname, zsize,
183 res_findzonecut2(res_state statp, const char *dname, ns_class class, int opts,
194 save_pfcode = statp->pfcode;
195 statp->pfcode |= RES_PRF_HEAD2 | RES_PRF_HEAD1 | RES_PRF_HEADX |
201 if ((n = get_soa(statp, dname, class, opts, zname, zsize,
204 (n = satisfy(statp, mname, &nsrrs, addrs, naddrs)) > 0))
208 if ((n = get_ns(statp, zname, class, opts, &nsrrs)) < 0 ||
210 (n = satisfy(statp, mname, &nsrrs, addrs, naddrs)) > 0)
    [all...]
res_mkupdate.c 84 res_nmkupdate(res_state statp, ns_updrec *rrecp_in, u_char *buf, int buflen) {
107 statp->id = res_nrandomid(statp);
108 hp->id = htons(statp->id);
  /src/lib/libc/rpc/
xdr_rec.c 535 __xdrrec_getrec(XDR *xdrs, enum xprt_stat *statp, bool_t expectdata)
545 *statp = expectdata ? XPRT_DIED : XPRT_IDLE;
549 *statp = XPRT_DIED;
556 *statp = XPRT_MOREREQS;
563 *statp = XPRT_DIED;
569 *statp = XPRT_DIED;
584 *statp = XPRT_DIED;
589 *statp = expectdata ? XPRT_DIED : XPRT_IDLE;
605 *statp = XPRT_MOREREQS;
610 *statp = XPRT_MOREREQS
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/
tsan_platform_linux.cc 307 struct __res_state *statp = (struct __res_state*)state; local
309 if (statp->_u._ext.nsaddrs[i] && statp->_u._ext.nssocks[i] != -1)
310 fds[cnt++] = statp->_u._ext.nssocks[i];
  /src/bin/rcp/
rcp.c 430 rsource(char *name, struct stat *statp)
447 (long long)statp->st_mtimespec.tv_sec,
448 (long)statp->st_mtimespec.tv_nsec / 1000,
449 (long long)statp->st_atimespec.tv_sec,
450 (long)statp->st_atimespec.tv_nsec / 1000);
458 "D%04o %d %s\n", statp->st_mode & RCPMODEMASK, 0, last);
  /src/lib/libc/net/
getaddrinfo.c 2552 res_state statp)
2575 oflags = statp->_flags;
2586 if (statp->options & RES_DEBUG)
2590 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL,
2593 if (n > 0 && (statp->_flags & RES_F_EDNS0ERR) == 0 &&
2594 (statp->options & (RES_USE_EDNS0|RES_USE_DNSSEC)) != 0) {
2595 n = res_nopt(statp, n, buf, (int)sizeof(buf), anslen);
2597 if (n > 0 && (statp->options & RES_NSID) != 0U) {
2598 n = res_nopt_rdata(statp, n, buf,
2606 if (statp->options & RES_DEBUG
    [all...]

Completed in 28 milliseconds