| /netbsd-src/external/bsd/libbind/dist/resolv/ |
| H A D | res_init.c | 160 res_ninit(res_state statp) { in res_ninit() argument 163 return (__res_vinit(statp, 0)); in res_ninit() 168 __res_vinit(res_state statp, int preinit) { in __res_vinit() argument 184 RES_SET_H_ERRNO(statp, 0); in __res_vinit() 185 if (statp->_u._ext.ext != NULL) in __res_vinit() 186 res_ndestroy(statp); in __res_vinit() 189 statp->retrans = RES_TIMEOUT; in __res_vinit() 190 statp->retry = RES_DFLRETRY; in __res_vinit() 191 statp->options = RES_DEFAULT; in __res_vinit() 192 res_rndinit(statp); in __res_vinit() [all …]
|
| H A D | res_send.c | 164 res_ourserver_p(const res_state statp, const struct sockaddr *sa) { in res_ourserver_p() argument 172 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p() 173 srv = (struct sockaddr_in *)get_nsaddr(statp, ns); in res_ourserver_p() 182 if (EXT(statp).ext == NULL) in res_ourserver_p() 185 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p() 186 srv6 = (struct sockaddr_in6 *)get_nsaddr(statp, ns); in res_ourserver_p() 295 res_nsend(res_state statp, in res_nsend() argument 306 if (statp->nscount == 0 || EXT(statp).ext == NULL) { in res_nsend() 314 DprintQ((statp->options & RES_DEBUG) || (statp->pfcode & RES_PRF_QUERY), in res_nsend() 316 v_circuit = (statp->options & RES_USEVC) || buflen > PACKETSZ; in res_nsend() [all …]
|
| H A D | res_query.c | 113 res_nquery(res_state statp, in res_nquery() argument 125 oflags = statp->_flags; in res_nquery() 130 if (statp->options & RES_DEBUG) in res_nquery() 134 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL, in res_nquery() 137 if (n > 0 && (statp->_flags & RES_F_EDNS0ERR) == 0 && in res_nquery() 138 (statp->options & (RES_USE_EDNS0|RES_USE_DNSSEC|RES_NSID))) { in res_nquery() 139 n = res_nopt(statp, n, buf, sizeof(buf), anslen); in res_nquery() 141 if (n > 0 && (statp->options & RES_NSID) != 0U) { in res_nquery() 142 n = res_nopt_rdata(statp, n, buf, sizeof(buf), rdata, in res_nquery() 149 if (statp->options & RES_DEBUG) in res_nquery() [all …]
|
| H A D | res_sendsigned.c | 31 res_nsendsigned(res_state statp, const u_char *msg, int msglen, in res_nsendsigned() argument 47 nstatp = (res_state) malloc(sizeof(*statp)); in res_nsendsigned() 52 memcpy(nstatp, statp, sizeof(*statp)); in res_nsendsigned() 118 Dprint((statp->options & RES_DEBUG) || in res_nsendsigned() 119 ((statp->pfcode & RES_PRF_REPLY) && in res_nsendsigned() 120 (statp->pfcode & RES_PRF_HEAD1)), in res_nsendsigned() 123 DprintQ((statp->options & RES_DEBUG) || in res_nsendsigned() 124 (statp->pfcode & RES_PRF_REPLY), in res_nsendsigned() 129 Dprint(statp->pfcode & RES_PRF_REPLY, in res_nsendsigned() 133 Dprint(statp->pfcode & RES_PRF_REPLY, in res_nsendsigned() [all …]
|
| H A D | res_findzonecut.c | 95 if ((statp->options & RES_DEBUG) != 0U) res_dprintf x; \ 156 res_findzonecut(res_state statp, const char *dname, ns_class class, int opts, in res_findzonecut() argument 170 result = res_findzonecut2(statp, dname, class, opts, zname, zsize, in res_findzonecut() 181 res_findzonecut2(res_state statp, const char *dname, ns_class class, int opts, in res_findzonecut2() argument 192 save_pfcode = statp->pfcode; in res_findzonecut2() 193 statp->pfcode |= RES_PRF_HEAD2 | RES_PRF_HEAD1 | RES_PRF_HEADX | in res_findzonecut2() 199 if ((n = get_soa(statp, dname, class, opts, zname, zsize, in res_findzonecut2() 202 (n = satisfy(statp, mname, &nsrrs, addrs, naddrs)) > 0)) in res_findzonecut2() 206 if ((n = get_ns(statp, zname, class, opts, &nsrrs)) < 0 || in res_findzonecut2() 208 (n = satisfy(statp, mname, &nsrrs, addrs, naddrs)) > 0)) in res_findzonecut2() [all …]
|
| H A D | res_mkquery.c | 99 res_nmkquery(res_state statp, in res_nmkquery() argument 117 if (statp->options & RES_DEBUG) in res_nmkquery() 128 statp->id = res_nrandomid(statp); in res_nmkquery() 129 hp->id = htons(statp->id); in res_nmkquery() 131 hp->rd = (statp->options & RES_RECURSE) != 0U; in res_nmkquery() 211 res_nopt(res_state statp, in res_nopt() argument 222 if ((statp->options & RES_DEBUG) != 0U) in res_nopt() 241 if (statp->options & RES_USE_DNSSEC) { in res_nopt() 243 if (statp->options & RES_DEBUG) in res_nopt() 265 res_nopt_rdata(res_state statp, in res_nopt_rdata() argument [all …]
|
| H A D | res_update.c | 89 if ((statp->options & RES_DEBUG) != 0U) res_dprintf x; \ 96 res_nupdate(res_state statp, ns_updrec *rrecp_in, ns_tsig_key *key) { in res_nupdate() argument 118 nscnt = res_findzonecut2(statp, rrecp->r_dname, tgrp.z_class, in res_nupdate() 161 n = res_nmkupdate(statp, HEAD(zptr->z_rrlist), in res_nupdate() 168 nscount = res_getservers(statp, nsaddrs, MAXNS); in res_nupdate() 169 res_setservers(statp, zptr->z_nsaddrs, zptr->z_nscount); in res_nupdate() 173 n = res_nsendsigned(statp, packet, n, key, in res_nupdate() 176 n = res_nsend(statp, packet, n, answer, sizeof answer); in res_nupdate() 186 res_setservers(statp, nsaddrs, nscount); in res_nupdate() 198 res_setservers(statp, nsaddrs, nscount); in res_nupdate()
|
| H A D | res_debug.c | 139 fp_resstat(const res_state statp, FILE *file) { in fp_resstat() argument 144 if (statp->options & mask) in fp_resstat() 150 do_section(const res_state statp, in do_section() argument 163 sflag = (statp->pfcode & pflag); in do_section() 164 if (statp->pfcode && !sflag) in do_section() 181 (statp->pfcode & RES_PRF_HEAD1)) in do_section() 185 if (rrnum == 0 && sflag != 0 && (statp->pfcode & RES_PRF_HEAD1)) in do_section() 279 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) { in res_pquery() argument 299 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX) || rcode) in res_pquery() 303 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX)) in res_pquery() [all …]
|
| H A D | res_debug.h | 26 # define Aerror(statp, file, string, error, address) /*empty*/ argument 27 # define Perror(statp, file, string, error) /*empty*/ argument 32 res_pquery(statp, query, size, stdout);\
|
| /netbsd-src/lib/libc/resolv/ |
| H A D | res_init.c | 189 res_ninit(res_state statp) { in res_ninit() argument 190 return (__res_vinit(statp, 0)); in res_ninit() 194 __res_kqinit(res_state statp) in __res_kqinit() argument 197 struct __res_state_ext *ext = statp->_u._ext.ext; in __res_kqinit() 210 __res_vinit(res_state statp, int preinit) { in __res_vinit() argument 226 RES_SET_H_ERRNO(statp, 0); in __res_vinit() 228 if ((statp->options & RES_INIT) != 0U) in __res_vinit() 229 res_ndestroy(statp); in __res_vinit() 232 statp->retrans = RES_TIMEOUT; in __res_vinit() 233 statp->retry = RES_DFLRETRY; in __res_vinit() [all …]
|
| H A D | res_send.c | 210 res_ourserver_p(const res_state statp, const struct sockaddr *sa) { in res_ourserver_p() argument 218 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p() 219 srv = (struct sockaddr_in *)(void *)get_nsaddr(statp, (size_t)ns); in res_ourserver_p() 228 if (EXT(statp).ext == NULL) in res_ourserver_p() 231 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p() 232 srv6 = (struct sockaddr_in6 *)(void *)get_nsaddr(statp, (size_t)ns); in res_ourserver_p() 341 res_nsend(res_state statp, in res_nsend() argument 350 (void)res_check(statp, NULL); in res_nsend() 353 if (statp->nscount == 0 || EXT(statp).ext == NULL) { in res_nsend() 361 DprintQ((statp->options & RES_DEBUG) || (statp->pfcode & RES_PRF_QUERY), in res_nsend() [all …]
|
| H A D | res_query.c | 145 res_nquery(res_state statp, in res_nquery() argument 156 oflags = statp->_flags; in res_nquery() 161 if (statp->options & RES_DEBUG) in res_nquery() 165 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL, in res_nquery() 168 if (n > 0 && (statp->_flags & RES_F_EDNS0ERR) == 0 && in res_nquery() 169 (statp->options & (RES_USE_EDNS0|RES_USE_DNSSEC|RES_NSID)) != 0U) { in res_nquery() 170 n = res_nopt(statp, n, buf, (int)sizeof(buf), anslen); in res_nquery() 171 if (n > 0 && (statp->options & RES_NSID) != 0U) { in res_nquery() 172 n = res_nopt_rdata(statp, n, buf, (int)sizeof(buf), in res_nquery() 179 if (statp in res_nquery() 246 res_nsearch(res_state statp,const char * name,int class,int type,u_char * answer,int anslen) res_nsearch() argument 392 res_nquerydomain(res_state statp,const char * name,const char * domain,int class,int type,u_char * answer,int anslen) res_nquerydomain() argument 433 res_hostalias(const res_state statp,const char * name,char * dst,size_t siz) res_hostalias() argument [all...] |
| H A D | res_mkquery.c | 112 res_nmkquery(res_state statp, in res_nmkquery() argument 130 if (statp->options & RES_DEBUG) in res_nmkquery() 141 statp->id = res_nrandomid(statp); in res_nmkquery() 142 hp->id = htons(statp->id); in res_nmkquery() 144 hp->rd = (statp->options & RES_RECURSE) != 0U; in res_nmkquery() 145 hp->ad = (statp->options & RES_USE_DNSSEC) != 0U; in res_nmkquery() 226 res_nopt(res_state statp, in res_nopt() argument 237 if ((statp->options & RES_DEBUG) != 0U) in res_nopt() 258 if (statp->options & RES_USE_DNSSEC) { in res_nopt() 260 if (statp->options & RES_DEBUG) in res_nopt() [all …]
|
| H A D | res_debug.c | 145 fp_resstat(const res_state statp, FILE *file) { in fp_resstat() argument 150 if (statp->options & mask) in fp_resstat() 157 do_section(const res_state statp, in do_section() argument 170 sflag = (int)(statp->pfcode & pflag); in do_section() 171 if (statp->pfcode && !sflag) in do_section() 188 (statp->pfcode & RES_PRF_HEAD1)) in do_section() 192 if (rrnum == 0 && sflag != 0 && (statp->pfcode & RES_PRF_HEAD1)) in do_section() 289 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) { in res_pquery() argument 309 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX) || rcode) in res_pquery() 313 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEADX)) in res_pquery() [all …]
|
| H A D | res_debug.h | 26 # define Aerror(statp, file, string, error, address) /*empty*/ argument 27 # define Perror(statp, file, string, error) /*empty*/ argument 32 res_pquery(statp, (query), (int)(size), stdout);\
|
| /netbsd-src/lib/libresolv/ |
| H A D | res_sendsigned.c | 32 res_nsendsigned(res_state statp, const u_char *msg, int msglen, in res_nsendsigned() argument 48 nstatp = (res_state) malloc(sizeof(*statp)); in res_nsendsigned() 53 memcpy(nstatp, statp, sizeof(*statp)); in res_nsendsigned() 119 Dprint((statp->options & RES_DEBUG) || in res_nsendsigned() 120 ((statp->pfcode & RES_PRF_REPLY) && in res_nsendsigned() 121 (statp->pfcode & RES_PRF_HEAD1)), in res_nsendsigned() 124 DprintQ((statp->options & RES_DEBUG) || in res_nsendsigned() 125 (statp->pfcode & RES_PRF_REPLY), in res_nsendsigned() 130 Dprint(statp->pfcode & RES_PRF_REPLY, in res_nsendsigned() 134 Dprint(statp->pfcode & RES_PRF_REPLY, in res_nsendsigned() [all …]
|
| H A D | 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, in res_findzonecut() argument 172 result = res_findzonecut2(statp, dname, class, opts, zname, zsize, in res_findzonecut() 183 res_findzonecut2(res_state statp, const char *dname, ns_class class, int opts, in res_findzonecut2() argument 194 save_pfcode = statp->pfcode; in res_findzonecut2() 195 statp->pfcode |= RES_PRF_HEAD2 | RES_PRF_HEAD1 | RES_PRF_HEADX | in res_findzonecut2() 201 if ((n = get_soa(statp, dname, class, opts, zname, zsize, in res_findzonecut2() 204 (n = satisfy(statp, mname, &nsrrs, addrs, naddrs)) > 0)) in res_findzonecut2() 208 if ((n = get_ns(statp, zname, class, opts, &nsrrs)) < 0 || in res_findzonecut2() 210 (n = satisfy(statp, mname, &nsrrs, addrs, naddrs)) > 0)) in res_findzonecut2() [all …]
|
| H A D | 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) { in res_nupdate() argument 120 nscnt = res_findzonecut2(statp, rrecp->r_dname, tgrp.z_class, in res_nupdate() 163 n = res_nmkupdate(statp, TAILQ_FIRST(&zptr->z_rrlist), in res_nupdate() 170 nscount = res_getservers(statp, nsaddrs, MAXNS); in res_nupdate() 171 res_setservers(statp, zptr->z_nsaddrs, zptr->z_nscount); in res_nupdate() 175 n = res_nsendsigned(statp, packet, n, key, in res_nupdate() 178 n = res_nsend(statp, packet, n, answer, in res_nupdate() 190 res_setservers(statp, nsaddrs, nscount); in res_nupdate() 202 res_setservers(statp, nsaddrs, nscount); in res_nupdate()
|
| /netbsd-src/external/ibm-public/postfix/dist/src/global/ |
| H A D | mail_open_ok.c | 80 struct stat * statp, const char **path) in mail_open_ok() argument 98 if (lstat(*path, statp) < 0) { in mail_open_ok() 103 if (!S_ISREG(statp->st_mode)) { in mail_open_ok() 104 msg_warn("%s: uid %ld: not a regular file", *path, (long) statp->st_uid); in mail_open_ok() 107 if ((statp->st_mode & S_IRWXU) != MAIL_QUEUE_STAT_READY) in mail_open_ok() 120 if (statp->st_nlink > 1) { in mail_open_ok() 123 (long) statp->st_uid, (int) statp->st_nlink); in mail_open_ok() 124 else if (statp->st_ctime < time((time_t *) 0) - MINUTE_SECONDS) in mail_open_ok() 126 (long) statp->st_uid, (int) statp->st_nlink); in mail_open_ok()
|
| /netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| H A D | zfs_vfsops.c | 98 static int zfs_statfs(vfs_t *vfsp, struct statfs *statp); 138 static int zfs_statvfs(vfs_t *vfsp, struct statvfs *statp); 2146 zfs_statfs(vfs_t *vfsp, struct statfs *statp) in zfs_statfs() argument 2150 zfs_statvfs(vfs_t *vfsp, struct statvfs *statp) in zfs_statfs() 2157 statp->f_version = STATFS_VERSION; in zfs_statfs() 2170 statp->f_bsize = SPA_MINBLOCKSIZE; in zfs_statfs() 2172 statp->f_frsize = SPA_MINBLOCKSIZE; in zfs_statfs() 2174 statp->f_iosize = zfsvfs->z_vfs->mnt_stat.f_iosize; in zfs_statfs() 2182 statp->f_blocks = (refdbytes + availbytes) >> SPA_MINBLOCKSHIFT; in zfs_statfs() 2183 statp->f_bfree = availbytes / statp->f_bsize; in zfs_statfs() [all …]
|
| /netbsd-src/lib/libc/rpc/ |
| H A D | xdr_rec.c | 535 __xdrrec_getrec(XDR *xdrs, enum xprt_stat *statp, bool_t expectdata) in __xdrrec_getrec() argument 545 *statp = expectdata ? XPRT_DIED : XPRT_IDLE; in __xdrrec_getrec() 549 *statp = XPRT_DIED; in __xdrrec_getrec() 556 *statp = XPRT_MOREREQS; in __xdrrec_getrec() 563 *statp = XPRT_DIED; in __xdrrec_getrec() 569 *statp = XPRT_DIED; in __xdrrec_getrec() 584 *statp = XPRT_DIED; in __xdrrec_getrec() 589 *statp = expectdata ? XPRT_DIED : XPRT_IDLE; in __xdrrec_getrec() 605 *statp = XPRT_MOREREQS; in __xdrrec_getrec() 610 *statp = XPRT_MOREREQS; in __xdrrec_getrec()
|
| /netbsd-src/external/ibm-public/postfix/dist/src/dns/ |
| H A D | dns_lookup.c | 314 #define DNS_GET_H_ERRNO(statp) ((statp)->res_h_errno) argument 322 #define DNS_RES_NINIT(statp) res_init() argument 323 #define DNS_RES_NMKQUERY(statp, op, dname, class, type, data, datalen, \ argument 327 #define DNS_RES_NSEARCH(statp, dname, class, type, answer, anslen) \ argument 329 #define DNS_RES_NSEND(statp, msg, msglen, answer, anslen) \ argument 331 #define DNS_GET_H_ERRNO(statp) (h_errno) argument 335 #define DNS_SET_H_ERRNO(statp, err) (set_h_errno(err)) argument 337 #define DNS_SET_H_ERRNO(statp, err) (DNS_GET_H_ERRNO(statp) = (err)) argument
|
| /netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/tsan/ |
| H A D | tsan_platform_linux.cc | 305 struct __res_state *statp = (struct __res_state*)state; in ExtractResolvFDs() local 307 if (statp->_u._ext.nsaddrs[i] && statp->_u._ext.nssocks[i] != -1) in ExtractResolvFDs() 308 fds[cnt++] = statp->_u._ext.nssocks[i]; in ExtractResolvFDs()
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/ |
| H A D | tsan_platform_linux.cc | 307 struct __res_state *statp = (struct __res_state*)state; in ExtractResolvFDs() local 309 if (statp->_u._ext.nsaddrs[i] && statp->_u._ext.nssocks[i] != -1) in ExtractResolvFDs() 310 fds[cnt++] = statp->_u._ext.nssocks[i]; in ExtractResolvFDs()
|
| /netbsd-src/bin/rcp/ |
| H A D | rcp.c | 430 rsource(char *name, struct stat *statp) in rsource() argument 447 (long long)statp->st_mtimespec.tv_sec, in rsource() 448 (long)statp->st_mtimespec.tv_nsec / 1000, in rsource() 449 (long long)statp->st_atimespec.tv_sec, in rsource() 450 (long)statp->st_atimespec.tv_nsec / 1000); in rsource() 458 "D%04o %d %s\n", statp->st_mode & RCPMODEMASK, 0, last); in rsource()
|