/freebsd-10.0-release/lib/libc/gen/ |
H A D | dirname.c | 31 static char *dname = NULL; local 35 if (dname == NULL) { 36 dname = (char *)malloc(MAXPATHLEN); 37 if (dname == NULL) 43 dname[0] = '.'; 44 dname[1] = '\0'; 45 return (dname); 59 dname[0] = *endp == '/' ? '/' : '.'; 60 dname[1] = '\0'; 61 return (dname); [all...] |
/freebsd-10.0-release/crypto/openssh/openbsd-compat/ |
H A D | dirname.c | 31 static char dname[MAXPATHLEN]; local 37 dname[0] = '.'; 38 dname[1] = '\0'; 39 return (dname); 53 dname[0] = *endp == '/' ? '/' : '.'; 54 dname[1] = '\0'; 55 return (dname); 64 if (len >= sizeof(dname)) { 68 memcpy(dname, path, len); 69 dname[le [all...] |
/freebsd-10.0-release/contrib/unbound/util/data/ |
H A D | dname.h | 2 * util/data/dname.h - domain name routines 53 * Determine length of dname in buffer, no compression ptrs allowed, 54 * @param query: the ldns buffer, current position at start of dname. 55 * at end, position is at end of the dname. 56 * @return: 0 on parse failure, or length including ending 0 of dname. 61 * Determine if dname in memory is correct. no compression ptrs allowed. 62 * @param dname: where dname starts in memory. 63 * @param len: dname is not allowed to exceed this length (i.e. of allocation). 64 * @return length of dname i [all...] |
H A D | dname.c | 2 * util/data/dname.h - domain name handling 44 #include "util/data/dname.h" 49 /* determine length of a dname in buffer, no compression pointers allowed */ 73 dname_valid(uint8_t* dname, size_t maxlen) argument 77 labellen = *dname++; 86 dname += labellen; 87 labellen = *dname++; 105 /* if one dname ends, it has labellength 0 */ 132 query_dname_tolower(uint8_t* dname) argument 134 /* the dname i 148 pkt_dname_tolower(ldns_buffer* pkt, uint8_t* dname) argument 271 dname_query_hash(uint8_t* dname, hashvalue_t h) argument 293 dname_pkt_hash(ldns_buffer* pkt, uint8_t* dname, hashvalue_t h) argument 320 dname_pkt_copy(ldns_buffer* pkt, uint8_t* to, uint8_t* dname) argument 350 dname_print(FILE* out, ldns_buffer* pkt, uint8_t* dname) argument 382 dname_count_labels(uint8_t* dname) argument 397 dname_count_size_labels(uint8_t* dname, size_t* size) argument 520 dname_buffer_write(ldns_buffer* pkt, uint8_t* dname) argument 539 dname_str(uint8_t* dname, char* str) argument 618 dname_is_root(uint8_t* dname) argument 628 dname_remove_label(uint8_t** dname, size_t* len) argument 642 dname_remove_labels(uint8_t** dname, size_t* len, int n) argument 650 dname_signame_label_count(uint8_t* dname) argument 669 dname_is_wild(uint8_t* dname) argument [all...] |
H A D | msgparse.c | 42 #include "util/data/dname.h" 53 /* ptr points to a previous dname */ 57 /* prev dname is also a ptr, both ptrs are the same. */ 69 new_rrset(struct msg_parse* msg, uint8_t* dname, size_t dnamelen, argument 85 p->dname = dname; 159 pkt_hash_rrset(ldns_buffer* pkt, uint8_t* dname, uint16_t type, argument 165 h = dname_pkt_hash(pkt, dname, h); 172 /** create partial dname hash for rrset hash */ 174 pkt_hash_rrset_first(ldns_buffer* pkt, uint8_t* dname) argument 200 rrset_parse_equals(struct rrset_parse* p, ldns_buffer* pkt, hashvalue_t h, uint32_t rrset_flags, uint8_t* dname, size_t dnamelen, uint16_t type, uint16_t dclass) argument 213 msgparse_hashtable_lookup(struct msg_parse* msg, ldns_buffer* pkt, hashvalue_t h, uint32_t rrset_flags, uint8_t* dname, size_t dnamelen, uint16_t type, uint16_t dclass) argument 453 find_rrset(struct msg_parse* msg, ldns_buffer* pkt, uint8_t* dname, size_t dnamelen, uint16_t type, uint16_t dclass, hashvalue_t* hash, uint32_t* rrset_flags, uint8_t** prev_dname_first, uint8_t** prev_dname_last, size_t* prev_dnamelen, uint16_t* prev_type, uint16_t* prev_dclass, struct rrset_parse** rrset_prev, ldns_pkt_section section, struct regional* region) argument 818 uint8_t* dname, *prev_dname_f = NULL, *prev_dname_l = NULL; local [all...] |
H A D | packed_rrset.c | 45 #include "util/data/dname.h" 61 if(pkey->rk.dname) 62 free(pkey->rk.dname); 63 pkey->rk.dname = NULL; 111 if((c=query_dname_compare(key1->rk.dname, key2->rk.dname)) != 0) 132 free(k->rk.dname); 133 k->rk.dname = NULL; 169 h = dname_query_hash(key->dname, h); 195 get_cname_target(struct ub_packed_rrset_key* rrset, uint8_t** dname, argument [all...] |
H A D | msgencode.c | 47 #include "util/data/dname.h" 80 uint8_t* dname; member in struct:compress_tree_node 83 /** offset in packet that points to this dname */ 90 * @param dname: pointer to uncompressed dname. 93 * guaranteed to be smaller or equal to the sought dname. 97 * @param insertpt: insert location for dname, if not found. 101 compress_tree_search(struct compress_tree_node** tree, uint8_t* dname, argument 110 if((c = dname_lab_cmp(dname, labs, p->dname, 141 compress_tree_lookup(struct compress_tree_node** tree, uint8_t* dname, int labs, struct compress_tree_node*** insertpt) argument 172 compress_tree_newnode(uint8_t* dname, int labs, size_t offset, struct regional* region) argument 200 compress_tree_store(uint8_t* dname, int labs, size_t offset, struct regional* region, struct compress_tree_node* closest, struct compress_tree_node** insertpt) argument 246 write_compressed_dname(ldns_buffer* pkt, uint8_t* dname, int labs, struct compress_tree_node* p) argument 330 compress_any_dname(uint8_t* dname, ldns_buffer* pkt, int labs, struct regional* region, struct compress_tree_node** tree) argument [all...] |
H A D | msgparse.h | 106 /** query dname (pointer to start location in packet, NULL if none */ 108 /** length of query dname in octets, 0 if none */ 141 /** start of (possibly compressed) dname in packet */ 142 uint8_t* dname; member in struct:rrset_parse 143 /** length of the dname uncompressed wireformat */ 174 * its dname, type and class are the same and stored for the rrset. 180 /** the length of the rdata if allocated (with no dname compression)*/ 217 * Obtain size in the packet of an rr type, that is before dname type. 267 * @param dname: pointer to uncompressed dname, o [all...] |
/freebsd-10.0-release/contrib/ldns/ldns/ |
H A D | dname.h | 2 * dname.h 4 * dname definitions 14 * \file dname.h 16 * dname contains function to read and manipulate domain names. 68 * Returns a clone of the given dname with the labels 70 * \param[in] d the dname to reverse 71 * \return clone of the dname with the labels reversed. 76 * Clones the given dname from the nth label on 77 * \param[in] d The dname to clone 79 * dname i [all...] |
/freebsd-10.0-release/tools/tools/ifinfo/ |
H A D | ifinfo.c | 75 char *dname; local 115 dname = NULL; 121 if ((dname = malloc(len)) == NULL) 123 if (sysctl(name, 6, dname, &len, 0, 0) < 0) { 126 free(dname); 127 dname = NULL; 130 printit(&ifmd, dname); 131 free(dname); 156 printit(const struct ifmibdata *ifmd, const char *dname) argument 159 if (dname ! [all...] |
/freebsd-10.0-release/lib/libc/resolv/ |
H A D | res_findzonecut.c | 103 * find enclosing zone for a <dname,class>, and some server addresses 107 *\li dname - domain name whose enclosing zone is desired 108 *\li class - class of dname (and its enclosing zone) 124 *\li we start by asking for an SOA<dname,class>. if we get one as an 125 * answer, that just means <dname,class> is a zone top, which is fine. 138 * match our dname (since that would have been returned in the answer 139 * section). an authority section SOA has to be "above" our dname. 143 * ripping labels off the front of our dname -- this is known as "doing 158 res_findzonecut(res_state statp, const char *dname, ns_class class, int opts, argument 172 result = res_findzonecut2(statp, dname, clas 184 res_findzonecut2(res_state statp, const char *dname, ns_class class, int opts, char *zname, size_t zsize, 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 665 find_ns(rrset_ns *nsrrsp, const char *dname) argument 675 do_query(res_state statp, const char *dname, ns_class class, ns_type qtype, u_char *resp, ns_msg *msg) argument [all...] |
/freebsd-10.0-release/contrib/unbound/iterator/ |
H A D | iter_resptype.c | 48 #include "util/data/dname.h" 80 query_dname_compare(mname, s->rk.dname) == 0) { 87 query_dname_compare(mname, s->rk.dname) == 0) { 127 s->rk.dname) == 0) { 164 dname_strict_subdomain_c(s->rk.dname, 178 query_dname_compare(mname, s->rk.dname) == 0) { 191 query_dname_compare(mname, s->rk.dname) == 0) { 214 dname_subdomain_c(request->qname, s->rk.dname)) { 235 if(query_dname_compare(s->rk.dname, origzone) == 0) { 256 if(dname_subdomain_c(origzone, s->rk.dname)) { [all...] |
H A D | iter_scrub.c | 53 #include "util/data/dname.h" 68 dname_pkt_copy(pkt, buf, (*rrset)->dname); 249 cn->dname = (uint8_t*)regional_alloc(region, *snamelen); 250 if(!cn->dname) 252 dname_pkt_copy(pkt, cn->dname, *sname); 259 cn->hash=pkt_hash_rrset(pkt, cn->dname, cn->type, cn->rrset_class, 0); 260 /* allocate TTL + rdatalen + uncompressed dname */ 351 pkt_strict_sub(pkt, sname, rrset->dname)) { 370 dname_pkt_compare(pkt, sname, nx->dname) == 0) { 399 if(dname_pkt_compare(pkt, sname, rrset->dname) ! [all...] |
/freebsd-10.0-release/usr.sbin/bsnmpd/modules/snmp_hostres/ |
H A D | hostres_network_tbl.c | 135 char *dname; local 155 if ((dname = malloc(len)) == NULL) { 159 if (sysctl(name, 6, dname, &len, 0, 0) < 0) { 162 free(dname); 166 HRDBG("got device %s (%s)", ifp->name, dname); 168 if ((dev = device_find_by_name(dname)) == NULL) { 169 HRDBG("%s not in hrDeviceTable", dname); 170 free(dname); 173 HRDBG("%s found in hrDeviceTable", dname); 178 free(dname); [all...] |
/freebsd-10.0-release/contrib/ldns/ |
H A D | dname.c | 2 * dname.c 4 * dname specific rdata implementations 5 * A dname is a rdf structure with type LDNS_RDF_TYPE_DNAME 38 ldns_dname_last_label_is_root_label(const ldns_rdf* dname) argument 43 for (src_pos = 0; src_pos < ldns_rdf_size(dname); src_pos += len + 1) { 44 len = ldns_rdf_data(dname)[src_pos]; 46 assert(src_pos == ldns_rdf_size(dname)); 79 /* put the two dname's after each other */ 124 ldns_dname_reverse(const ldns_rdf *dname) argument 132 assert(ldns_rdf_get_type(dname) 453 ldns_dname_is_wildcard(const ldns_rdf* dname) argument 461 ldns_dname_match_wildcard(const ldns_rdf *dname, const ldns_rdf *wildcard) argument [all...] |
/freebsd-10.0-release/sys/mips/sibyte/ |
H A D | sb_zbbus.c | 232 zbbus_hinted_child(device_t bus, const char *dname, int dunit) argument 238 if (resource_disabled(dname, dunit)) 241 child = BUS_ADD_CHILD(bus, 0, dname, dunit); 243 panic("zbbus: could not add child %s unit %d\n", dname, dunit); 247 device_printf(bus, "Adding hinted child %s%d\n", dname, dunit); 252 if (resource_long_value(dname, dunit, "msize", &msize) == 0 && 253 resource_long_value(dname, dunit, "maddr", &maddr) == 0) { 257 maddr, msize, dname, dunit); 263 maddr, msize, dname, dunit, err); 267 if (resource_int_value(dname, duni [all...] |
/freebsd-10.0-release/contrib/ldns-host/ |
H A D | ldns-host.c | 581 ldns_rdf *dname; local 584 if ((status = ldns_str2rdf_dname(&dname, name)) != LDNS_STATUS_OK) { 588 return dname; 646 ldns_rdf *dname, **searchlist; local 652 if ((dname = ldns_resolver_domain(res)) != NULL) { 653 dname = safe_dname_cat_clone(domain, dname); 654 if (query(res, dname, pkt)) 655 return dname; 661 dname 731 ldns_rdf *dname; local 744 ldns_rdf *dname; local 758 ldns_rdf *dname, *addr; local 839 ldns_rdf *addr, *dname; local [all...] |
/freebsd-10.0-release/usr.sbin/ckdist/ |
H A D | ckdist.c | 226 const char *dname; local 233 dname = NULL; 243 if ((dname = distname(path, name, NULL)) == NULL) 246 if ((fd = open(dname, O_RDONLY)) == -1) 249 err(2, "%s", dname); 250 } else if (!MD5File(dname, chk)) 258 rval |= report(path, dname, error); 271 const char *dname; local 282 dname = NULL; 293 else if ((dname 421 static const char dname[DISTTYPES][4] = {"md5", "inf"}; local [all...] |
/freebsd-10.0-release/sbin/swapon/ |
H A D | swapon.c | 255 char *dname, *p; local 257 dname = strdup(name); 258 p = strrchr(dname, '.'); 262 return (dname); 270 char *dname; local 273 dname = swap_basename(name); 274 if (dname == NULL) 284 dname, pass); 287 free(dname); 293 dname, pas 408 char *dname, *args; local [all...] |
/freebsd-10.0-release/contrib/ntp/util/ |
H A D | audio-pcm.c | 93 char *dname = ai_dev; /* device name */ local 103 fd = open(dname, O_RDWR | O_NONBLOCK, 0777); 117 printf("input: <%s> %d\n", dname, fd);
|
/freebsd-10.0-release/contrib/unbound/validator/ |
H A D | val_nsec.c | 48 #include "util/data/dname.h" 118 * @return false on a bad NSEC RR (too short, malformed dname). 255 if(wc && dname_is_wild(rep->rrsets[i]->rk.dname)) 291 if(query_dname_compare(nsec->rk.dname, qinfo->qname) != 0) { 305 dname_canonical_compare(nsec->rk.dname, 317 if(dname_is_wild(nsec->rk.dname)) { 319 uint8_t* ce = nsec->rk.dname; 382 uint8_t* owner = nsec->rk.dname; 440 nsec->rk.dname)) 443 if(dname_subdomain_c(qinfo->qname, nsec->rk.dname)) [all...] |
H A D | val_utils.c | 53 #include "util/data/dname.h" 92 query_dname_compare(rep->rrsets[0]->rk.dname, 149 /* bad dname in this rrsig. */ 224 rep->rrsets[i]->rk.dname) == 0) { 233 /* check for the first signed cname/dname rrset */ 320 rrset->rk.dname, ntohs(rrset->rk.type), 328 rrset->rk.dname, ntohs(rrset->rk.type), 332 log_nametypeclass(VERB_ALGO, "verify rrset", rrset->rk.dname, 376 dnskey.rk.dname = kkey->name; 465 query_dname_compare(dnskey_rrset->rk.dname, ds_rrse [all...] |
/freebsd-10.0-release/contrib/nvi/ex/ |
H A D | tag.h | 21 char *dname; /* Base directory of this cscope connection. */ member in struct:_csc
|
/freebsd-10.0-release/crypto/heimdal/lib/gssapi/krb5/ |
H A D | add_cred.c | 52 krb5_const_principal dname; local 56 dname = (krb5_const_principal)desired_name; 86 if (dname != NULL && 87 krb5_principal_compare(context, dname,
|
/freebsd-10.0-release/usr.sbin/ctm/ctm_rmail/ |
H A D | ctm_rmail.c | 41 int combine(char *delta, int npieces, char *dname, char *pname, char *tname); 439 char dname[PATH_MAX]; local 447 mk_delta_name(dname, delta); 449 if (rename(pname, dname) == 0) 451 chmod(dname, 0666 & ~mask); 487 e = combine(delta, npieces, dname, pname, tname); 496 * Note: dname, pname, and tname are room for some file names that just 500 combine(char *delta, int npieces, char *dname, char *pname, char *tname) argument 556 mk_delta_name(dname, delta); 557 if (rename(tname, dname) < [all...] |