/netbsd/external/bsd/libbind/dist/resolv/ |
H A D | res_init.c | 193 statp->id = res_nrandomid(statp); in __res_vinit() 222 statp->ndots = 1; in __res_vinit() 229 statp->_u._ext.ext = malloc(sizeof(*statp->_u._ext.ext)); in __res_vinit() 232 statp->_u._ext.ext->nsaddrs[0].sin = statp->nsaddr; in __res_vinit() 252 statp->nsort = 0; in __res_vinit() 273 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit() 281 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit() 334 strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit() 335 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit() 350 strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit() [all …]
|
H A D | res_send.c | 306 if (statp->nscount == 0 || EXT(statp).ext == NULL) { in res_nsend() 329 if (EXT(statp).nscount != statp->nscount) in res_nsend() 372 EXT(statp).nscount = statp->nscount; in res_nsend() 396 statp->nsaddr_list[ns] = statp->nsaddr_list[ns + 1]; in res_nsend() 397 EXT(statp).nssocks[ns] = EXT(statp).nssocks[ns + 1]; in res_nsend() 398 EXT(statp).nstimes[ns] = EXT(statp).nstimes[ns + 1]; in res_nsend() 531 res_nclose(statp); in res_nsend() 571 res_state statp; in get_nsaddr() 575 if (!statp->nsaddr_list[n].sin_family && EXT(statp).ext) { 618 if (statp->_vcsock >= 0 && (statp->_flags & RES_F_VC) != 0) { in send_vc() [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() 149 if (statp->options & RES_DEBUG) in res_nquery() 163 if (statp->options & RES_DEBUG) in res_nquery() 169 if (statp->options & RES_DEBUG) in res_nquery() 178 if (statp->options & RES_DEBUG) in res_nquery() 214 res_nsearch(res_state statp, in res_nsearch() argument 300 switch (statp->res_h_errno) { in res_nsearch() 360 res_nquerydomain(res_state statp, in res_nquerydomain() argument [all …]
|
H A D | res_sendsigned.c | 52 memcpy(nstatp, statp, sizeof(*statp)); in res_nsendsigned() 118 Dprint((statp->options & RES_DEBUG) || 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() 154 Dprint((statp->options & RES_DEBUG) || in res_nsendsigned() 156 (statp->pfcode & RES_PRF_HEAD1)), in res_nsendsigned() 159 DprintQ((statp->options & RES_DEBUG) || in res_nsendsigned() [all …]
|
H A D | res_findzonecut.c | 192 save_pfcode = statp->pfcode; in res_findzonecut2() 213 n = satisfy(statp, mname, &nsrrs, addrs, naddrs); in res_findzonecut2() 218 statp->pfcode = save_pfcode; in res_findzonecut2() 234 x = add_addrs(statp, nsrr, addrs, naddrs); in satisfy() 243 x = add_addrs(statp, nsrr, addrs, naddrs); in satisfy() 253 add_addrs(res_state statp, rr_ns *nsrr, in add_addrs() argument 379 if (save_ns(statp, &msg, ns_s_ns, in get_soa() 460 n = do_query(statp, nsrr->name, class, ns_t_a, in get_glue() 567 if (save_a(statp, msg, ns_s_ar, in save_ns() 578 save_a(res_state statp, ns_msg *msg, ns_sect sect, in save_a() argument [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() 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() 305 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEAD2)) { in res_pquery() 324 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEAD1)) { 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/lib/libc/resolv/ |
H A D | res_init.c | 238 statp->id = res_nrandomid(statp); in __res_vinit() 266 statp->ndots = 1; in __res_vinit() 273 statp->_u._ext.ext = malloc(sizeof(*statp->_u._ext.ext)); in __res_vinit() 276 statp->_u._ext.ext->nsaddrs[0].sin = statp->nsaddr; in __res_vinit() 324 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit() 379 strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit() 380 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit() 395 strncpy(statp->defdname, cp, sizeof(statp->defdname) - 1); in __res_vinit() 396 statp->defdname[sizeof(statp->defdname) - 1] = '\0'; in __res_vinit() 763 u_char *rnd = statp->_rnd == NULL ? srnd : statp->_rnd; in res_rndinit() [all …]
|
H A D | res_send.c | 353 if (statp->nscount == 0 || EXT(statp).ext == NULL) { in res_nsend() 382 if (EXT(statp).nscount != statp->nscount) in res_nsend() 425 EXT(statp).nscount = statp->nscount; in res_nsend() 449 statp->nsaddr_list[ns] = statp->nsaddr_list[ns + 1]; in res_nsend() 450 EXT(statp).nssocks[ns] = EXT(statp).nssocks[ns + 1]; in res_nsend() 451 EXT(statp).nstimes[ns] = EXT(statp).nstimes[ns + 1]; in res_nsend() 594 res_nclose(statp); in res_nsend() 607 res_nclose(statp); in res_nsend() 641 if (!statp->nsaddr_list[n].sin_family && EXT(statp).ext) { in get_nsaddr() 685 if (statp->_vcsock >= 0 && (statp->_flags & RES_F_VC) != 0) { in send_vc() [all …]
|
H A D | res_query.c | 145 res_nquery(res_state statp, in res_nquery() argument 157 oflags = statp->_flags; in res_nquery() 162 if (statp->options & RES_DEBUG) in res_nquery() 181 if (statp->options & RES_DEBUG) in res_nquery() 195 if (statp->options & RES_DEBUG) in res_nquery() 201 if (statp->options & RES_DEBUG) in res_nquery() 210 if (statp->options & RES_DEBUG) in res_nquery() 246 res_nsearch(res_state statp, in res_nsearch() argument 332 switch (statp->res_h_errno) { in res_nsearch() 392 res_nquerydomain(res_state statp, in res_nquerydomain() 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() 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() 283 res_nopt_rdata(res_state statp, in res_nopt_rdata() argument [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() 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() 315 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEAD2)) { in res_pquery() 334 if ((!statp->pfcode) || (statp->pfcode & RES_PRF_HEAD1)) { 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/lib/libresolv/ |
H A D | res_sendsigned.c | 53 memcpy(nstatp, statp, sizeof(*statp)); in res_nsendsigned() 119 Dprint((statp->options & RES_DEBUG) || 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() 155 Dprint((statp->options & RES_DEBUG) || in res_nsendsigned() 157 (statp->pfcode & RES_PRF_HEAD1)), in res_nsendsigned() 160 DprintQ((statp->options & RES_DEBUG) || in res_nsendsigned() [all …]
|
H A D | res_findzonecut.c | 194 save_pfcode = statp->pfcode; in res_findzonecut2() 215 n = satisfy(statp, mname, &nsrrs, addrs, naddrs); in res_findzonecut2() 220 statp->pfcode = save_pfcode; in res_findzonecut2() 236 x = add_addrs(statp, nsrr, addrs, naddrs); in satisfy() 245 x = add_addrs(statp, nsrr, addrs, naddrs); in satisfy() 256 add_addrs(res_state statp, rr_ns *nsrr, in add_addrs() argument 382 if (save_ns(statp, &msg, ns_s_ns, in get_soa() 461 n = do_query(statp, nsrr->name, class, ns_t_a, in get_glue() 567 if (save_a(statp, msg, ns_s_ar, in save_ns() 578 save_a(res_state statp, ns_msg *msg, ns_sect sect, in save_a() argument [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/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/external/cddl/osnet/dist/uts/common/fs/zfs/ |
H A D | zfs_vfsops.c | 2157 statp->f_version = STATFS_VERSION; in zfs_statfs() 2183 statp->f_bfree = availbytes / statp->f_bsize; in zfs_statfs() 2184 statp->f_bavail = statp->f_bfree; /* no root reservation */ in zfs_statfs() 2185 statp->f_bresvd = 0; in zfs_statfs() 2195 statp->f_ffree = MIN(availobjs, statp->f_bfree); in zfs_statfs() 2197 statp->f_favail = statp->f_ffree; /* no "root reservation" */ in zfs_statfs() 2199 statp->f_files = statp->f_ffree + usedobjs; in zfs_statfs() 2200 statp->f_fresvd = 0; in zfs_statfs() 2204 statp->f_fsid = d32; in zfs_statfs() 2214 (void) strlcpy(statp->f_fstypename, "zfs", sizeof(statp->f_fstypename)); in zfs_statfs() [all …]
|
/netbsd/lib/libc/rpc/ |
H A D | xdr_rec.c | 534 __xdrrec_getrec(XDR *xdrs, enum xprt_stat *statp, bool_t expectdata) in __xdrrec_getrec() argument 544 *statp = expectdata ? XPRT_DIED : XPRT_IDLE; in __xdrrec_getrec() 548 *statp = XPRT_DIED; in __xdrrec_getrec() 555 *statp = XPRT_MOREREQS; in __xdrrec_getrec() 562 *statp = XPRT_DIED; in __xdrrec_getrec() 568 *statp = XPRT_DIED; in __xdrrec_getrec() 583 *statp = XPRT_DIED; in __xdrrec_getrec() 588 *statp = expectdata ? XPRT_DIED : XPRT_IDLE; in __xdrrec_getrec() 604 *statp = XPRT_MOREREQS; in __xdrrec_getrec() 609 *statp = XPRT_MOREREQS; in __xdrrec_getrec()
|
/netbsd/external/ibm-public/postfix/dist/src/dns/ |
H A D | dns_lookup.c | 310 #define DNS_GET_H_ERRNO(statp) ((statp)->res_h_errno) argument 318 #define DNS_RES_NINIT(statp) res_init() argument 319 #define DNS_RES_NMKQUERY(statp, op, dname, class, type, data, datalen, \ argument 323 #define DNS_RES_NSEARCH(statp, dname, class, type, answer, anslen) \ argument 325 #define DNS_RES_NSEND(statp, msg, msglen, answer, anslen) \ argument 327 #define DNS_GET_H_ERRNO(statp) (h_errno) argument 331 #define DNS_SET_H_ERRNO(statp, err) (set_h_errno(err)) argument 333 #define DNS_SET_H_ERRNO(statp, err) (DNS_GET_H_ERRNO(statp) = (err)) argument
|
/netbsd/external/gpl3/gcc/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/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/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()
|