/haiku-fatelf/src/kits/network/libbind/resolv/ |
H A D | res_init.c | 155 res_ninit(res_state statp) { argument 158 return (__res_vinit(statp, 0)); 163 __res_vinit(res_state statp, int preinit) { argument 180 RES_SET_H_ERRNO(statp, 0); 181 if (statp->_u._ext.ext != NULL) 182 res_ndestroy(statp); 185 statp->retrans = RES_TIMEOUT; 186 statp->retry = RES_DFLRETRY; 187 statp->options = RES_DEFAULT; 188 res_rndinit(statp); 519 res_setoptions(res_state statp, const char *options, const char *source) argument 664 res_rndinit(res_state statp) argument 682 res_nrandomid(res_state statp) argument 711 res_nclose(res_state statp) argument 728 res_ndestroy(res_state statp) argument 737 res_get_nibblesuffix(res_state statp) argument 744 res_get_nibblesuffix2(res_state statp) argument 751 res_setservers(res_state statp, const union res_sockaddr_union *set, int cnt) argument 802 res_getservers(res_state statp, union res_sockaddr_union *set, int cnt) argument [all...] |
H A D | res_query.c | 111 res_nquery(res_state statp, argument 123 oflags = statp->_flags; 128 if (statp->options & RES_DEBUG) 132 n = res_nmkquery(statp, QUERY, name, class, type, NULL, 0, NULL, 135 if (n > 0 && (statp->_flags & RES_F_EDNS0ERR) == 0 && 136 (statp->options & (RES_USE_EDNS0|RES_USE_DNSSEC|RES_NSID))) { 137 n = res_nopt(statp, n, buf, sizeof(buf), anslen); 139 if (n > 0 && (statp->options & RES_NSID) != 0U) { 140 n = res_nopt_rdata(statp, n, buf, sizeof(buf), rdata, 147 if (statp 212 res_nsearch(res_state statp, const char *name, int class, int type, u_char *answer, int anslen) argument 358 res_nquerydomain(res_state statp, const char *name, const char *domain, int class, int type, u_char *answer, int anslen) argument 403 res_hostalias(const res_state statp, const char *name, char *dst, size_t siz) argument [all...] |
H A D | res_send.c | 164 res_ourserver_p(const res_state statp, const struct sockaddr *sa) { argument 172 for (ns = 0; ns < statp->nscount; ns++) { 173 srv = (struct sockaddr_in *)get_nsaddr(statp, ns); 182 if (EXT(statp).ext == NULL) 185 for (ns = 0; ns < statp->nscount; ns++) { 186 srv6 = (struct sockaddr_in6 *)get_nsaddr(statp, ns); 295 res_nsend(res_state statp, argument 308 if (statp->nscount == 0 || EXT(statp).ext == NULL) { 316 DprintQ((statp 595 send_vc(res_state statp, const u_char *buf, int buflen, u_char *ans, int anssiz, int *terrno, int ns) argument 793 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 1031 Aerror(const res_state statp, FILE *file, const char *string, int error, const struct sockaddr *address, int alen) argument 1055 Perror(const res_state statp, FILE *file, const char *string, int error) argument [all...] |
H A D | res_sendsigned.c | 29 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 D | res_debug.h | 24 # define Aerror(statp, file, string, error, address, addrLen) /*empty*/ 25 # define Perror(statp, file, string, error) /*empty*/ 30 res_pquery(statp, query, size, stdout);\
|
H A D | res_private.h | 18 res_ourserver_p(const res_state statp, const struct sockaddr *sa);
|
H A D | res_update.c | 87 if ((statp->options & RES_DEBUG) != 0U) res_dprintf x; \ 94 res_nupdate(res_state statp, ns_updrec *rrecp_in, ns_tsig_key *key) { argument 116 nscnt = res_findzonecut2(statp, rrecp->r_dname, tgrp.z_class, 159 n = res_nmkupdate(statp, HEAD(zptr->z_rrlist), 166 nscount = res_getservers(statp, nsaddrs, MAXNS); 167 res_setservers(statp, zptr->z_nsaddrs, zptr->z_nscount); 171 n = res_nsendsigned(statp, packet, n, key, 174 n = res_nsend(statp, packet, n, answer, sizeof answer); 184 res_setservers(statp, nsaddrs, nscount); 196 res_setservers(statp, nsaddr [all...] |
H A D | res_findzonecut.c | 93 if ((statp->options & RES_DEBUG) != 0U) res_dprintf x; \ 154 res_findzonecut(res_state statp, const char *dname, ns_class class, int opts, argument 168 result = res_findzonecut2(statp, dname, class, opts, zname, zsize, 179 res_findzonecut2(res_state statp, const char *dname, ns_class class, int opts, argument 190 save_pfcode = statp->pfcode; 191 statp->pfcode |= RES_PRF_HEAD2 | RES_PRF_HEAD1 | RES_PRF_HEADX | 197 if ((n = get_soa(statp, dname, class, opts, zname, zsize, 200 (n = satisfy(statp, mname, &nsrrs, addrs, naddrs)) > 0)) 204 if ((n = get_ns(statp, zname, class, opts, &nsrrs)) < 0 || 206 (n = satisfy(statp, mnam 223 satisfy(res_state statp, const char *mname, rrset_ns *nsrrsp, union res_sockaddr_union *addrs, int naddrs) argument 251 add_addrs(res_state statp, rr_ns *nsrr, union res_sockaddr_union *addrs, int naddrs) argument 269 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 409 get_ns(res_state statp, const char *zname, ns_class class, int opts, rrset_ns *nsrrsp) argument 442 get_glue(res_state statp, ns_class class, int opts, rrset_ns *nsrrsp) argument 517 save_ns(res_state statp, ns_msg *msg, ns_sect sect, const char *owner, ns_class class, int opts, rrset_ns *nsrrsp) argument 576 save_a(res_state statp, ns_msg *msg, ns_sect sect, const char *owner, ns_class class, int opts, rr_ns *nsrr) argument 670 do_query(res_state statp, const char *dname, ns_class class, ns_type qtype, u_char *resp, ns_msg *msg) argument [all...] |
H A D | res_mkquery.c | 97 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) 239 if (statp->options & RES_USE_DNSSEC) { 241 if (statp 263 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 D | res_debug.c | 137 fp_resstat(const res_state statp, FILE *file) { argument 142 if (statp->options & mask) 148 do_section(const res_state statp, argument 161 sflag = (statp->pfcode & pflag); 162 if (statp->pfcode && !sflag) 179 (statp->pfcode & RES_PRF_HEAD1)) 183 if (rrnum == 0 && sflag != 0 && (statp->pfcode & RES_PRF_HEAD1)) 277 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) { argument 297 if ((!statp->pfcode) || (statp [all...] |
H A D | res_mkupdate.c | 81 res_nmkupdate(res_state statp, ns_updrec *rrecp_in, u_char *buf, int buflen) { argument 104 statp->id = res_nrandomid(statp); 105 hp->id = htons(statp->id);
|
/haiku-fatelf/src/bin/coreutils/lib/ |
H A D | filemode.c | 28 # define IS_MIGRATED_FILE(statp) \ 29 (S_ISOFD (statp->st_dm_mode) || S_ISOFL (statp->st_dm_mode)) 31 # define IS_MIGRATED_FILE(statp) 0 166 filemodestring (struct stat const *statp, char *str) argument 168 strmode (statp->st_mode, str); 170 if (S_TYPEISSEM (statp)) 172 else if (IS_MIGRATED_FILE (statp)) 174 else if (S_TYPEISMQ (statp)) 176 else if (S_TYPEISSHM (statp)) [all...] |
H A D | filemode.h | 31 void filemodestring (struct stat const *statp, char *str);
|
/haiku-fatelf/src/bin/findutils/gnulib/lib/ |
H A D | filemode.c | 28 # define IS_MIGRATED_FILE(statp) \ 29 (S_ISOFD (statp->st_dm_mode) || S_ISOFL (statp->st_dm_mode)) 31 # define IS_MIGRATED_FILE(statp) 0 166 filemodestring (struct stat const *statp, char *str) argument 168 strmode (statp->st_mode, str); 170 if (S_TYPEISSEM (statp)) 172 else if (IS_MIGRATED_FILE (statp)) 174 else if (S_TYPEISMQ (statp)) 176 else if (S_TYPEISSHM (statp)) [all...] |
H A D | filemode.h | 30 void filemodestring (struct stat const *statp, char *str);
|
/haiku-fatelf/src/bin/findutils/lib/ |
H A D | listfile.h | 22 void list_file (char *name, char *relname, struct stat *statp, time_t current_time, int output_block_size, FILE *stream);
|
H A D | listfile.c | 177 struct stat *statp, 190 strmode (statp->st_dm_mode, modebuf); 192 strmode (statp->st_mode, modebuf); 196 human_readable ((uintmax_t) statp->st_ino, hbuf, 201 human_readable ((uintmax_t) ST_NBLOCKS (*statp), hbuf, 208 fprintf (stream, "%s%3lu ", modebuf, (unsigned long) statp->st_nlink); 210 user_name = getuser (statp->st_uid); 214 fprintf (stream, "%-8lu ", (unsigned long) statp->st_uid); 216 group_name = getgroup (statp->st_gid); 220 fprintf (stream, "%-8lu ", (unsigned long) statp 175 list_file(char *name, char *relname, struct stat *statp, time_t current_time, int output_block_size, FILE *stream) argument [all...] |
/haiku-fatelf/src/bin/findutils/find/ |
H A D | fstype.c | 82 static char *filesystem_type_uncached PARAMS((const struct stat *statp, const char *path)); 158 filesystem_type (const struct stat *statp, const char *path) argument 165 if (fstype_known && statp->st_dev == current_dev) 169 current_dev = statp->st_dev; 170 current_fstype = filesystem_type_uncached (statp, path); 217 filesystem_type_uncached (const struct stat *statp, const char *path) argument 238 if (entry->me_dev == statp->st_dev)
|
H A D | find.c | 87 static void process_dir PARAMS((char *pathname, char *name, int pathlen, struct stat *statp, char *parent)); 1848 process_dir (char *pathname, char *name, int pathlen, struct stat *statp, char *parent) 1857 if (statp->st_nlink < 2) 1864 subdirs_left = statp->st_nlink - 2; /* Account for name and ".". */ 1827 process_dir(char *pathname, char *name, int pathlen, struct stat *statp, char *parent) argument
|
H A D | defs.h | 354 void list_file PARAMS((char *name, char *relname, struct stat *statp, time_t current_time, int output_block_size, FILE *stream)); 390 char *filesystem_type PARAMS((const struct stat *statp, const char *path));
|
/haiku-fatelf/src/bin/coreutils/src/ |
H A D | df.c | 640 show_point (const char *point, const struct stat *statp) argument 691 || disk_stats.st_dev != statp->st_dev)) 718 if (statp->st_dev == me->me_dev 742 char *mp = find_mount_point (point, statp); 755 show_entry (char const *name, struct stat const *statp) argument 757 if ((S_ISBLK (statp->st_mode) || S_ISCHR (statp->st_mode)) 761 show_point (name, statp);
|
/haiku-fatelf/src/kits/network/libbind/irs/ |
H A D | dns_ho.c | 1111 addrsort(res_state statp, char **ap, int num) { argument 1117 for (j = 0 ; (unsigned)j < statp->nsort; j++) 1118 if (statp->sort_list[j].addr.s_addr == 1120 statp->sort_list[j].mask))
|