/freebsd-9.3-release/lib/libc/db/hash/ |
H A D | hash.c | 101 HTAB *hashp; local 111 if (!(hashp = (HTAB *)calloc(1, sizeof(HTAB)))) 113 hashp->fp = -1; 118 * field in the hashp structure needs to be accurate so that 121 hashp->flags = flags; 124 if ((hashp->fp = _open(file, flags, mode)) == -1) 126 (void)_fcntl(hashp->fp, F_SETFD, 1); 127 new_table = _fstat(hashp->fp, &statbuf) == 0 && 133 if (!(hashp = init_hash(hashp, fil 243 HTAB *hashp; local 258 HTAB *hashp; local 273 init_hash(HTAB *hashp, const char *file, const HASHINFO *info) argument 339 init_htab(HTAB *hashp, int nelem) argument 382 hdestroy(HTAB *hashp) argument 447 HTAB *hashp; local 472 flush_meta(HTAB *hashp) argument 520 HTAB *hashp; local 533 HTAB *hashp; local 552 HTAB *hashp; local 570 hash_access(HTAB *hashp, ACTION action, DBT *key, DBT *val) argument 700 HTAB *hashp; local 788 __expand_table(HTAB *hashp) argument 856 __call_hash(HTAB *hashp, char *k, int len) argument 873 alloc_segs(HTAB *hashp, int nsegs) argument 936 swap_header(HTAB *hashp) argument [all...] |
H A D | hash_buf.c | 87 #define MRU hashp->bufhead.next 88 #define LRU hashp->bufhead.prev 90 #define MRU_INSERT(B) BUF_INSERT((B), &hashp->bufhead) 103 __get_buf(HTAB *hashp, u_int32_t addr, argument 122 segment_ndx = addr & (hashp->SGSIZE - 1); 125 segp = hashp->dir[addr >> hashp->SSHIFT]; 131 is_disk = is_disk_mask || !hashp->new_file; 135 bp = newbuf(hashp, addr, prev_bp); 137 __get_page(hashp, b 156 newbuf(HTAB *hashp, u_int32_t addr, BUFHEAD *prev_bp) argument 297 __buf_init(HTAB *hashp, int nbytes) argument 320 __buf_free(HTAB *hashp, int do_free, int to_disk) argument 351 __reclaim_buf(HTAB *hashp, BUFHEAD *bp) argument [all...] |
H A D | hash_page.c | 85 ((u_int16_t *)(P))[1] = hashp->BSIZE - 3 * sizeof(u_int16_t); \ 86 ((u_int16_t *)(P))[2] = hashp->BSIZE; \ 125 __delpair(HTAB *hashp, BUFHEAD *bufp, int ndx) argument 134 return (__big_delete(hashp, bufp)); 138 newoff = hashp->BSIZE; 158 if (ndx == hashp->cndx) { 164 hashp->cndx -= 2; 171 hashp->NKEYS--; 182 __split_page(HTAB *hashp, u_int32_t obucket, u_int32_t nbucket) argument 192 copyto = (u_int16_t)hashp 276 ugly_split(HTAB *hashp, u_int32_t obucket, BUFHEAD *old_bufp, BUFHEAD *new_bufp, int copyto, int moved) argument 397 __addel(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val) argument 467 __add_ovflpage(HTAB *hashp, BUFHEAD *bufp) argument 517 __get_page(HTAB *hashp, char *p, u_int32_t bucket, int is_bucket, int is_disk, int is_bitmap) argument 572 __put_page(HTAB *hashp, char *p, u_int32_t bucket, int is_bucket, int is_bitmap) argument 614 __ibitmap(HTAB *hashp, int pnum, int nbits, int ndx) argument 649 overflow_page(HTAB *hashp) argument 802 __free_ovflpage(HTAB *hashp, BUFHEAD *obufp) argument 846 open_temp(HTAB *hashp) argument 903 fetch_bitmap(HTAB *hashp, int ndx) argument [all...] |
H A D | hash_bigkey.c | 86 __big_insert(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val) argument 116 bufp = __add_ovflpage(hashp, bufp); 172 bufp = __add_ovflpage(hashp, bufp); 196 __big_delete(HTAB *hashp, BUFHEAD *bufp) argument 221 rbufp = __get_buf(hashp, pageno, rbufp, 0); 223 __free_ovflpage(hashp, last_bfp); 253 FREESPACE(bp) = hashp->BSIZE - PAGE_META(n); 254 OFFSET(bp) = hashp->BSIZE; 258 __free_ovflpage(hashp, rbufp); 260 __free_ovflpage(hashp, last_bf 273 __find_bigpair(HTAB *hashp, BUFHEAD *bufp, int ndx, char *key, int size) argument 320 __find_last_page(HTAB *hashp, BUFHEAD **bpp) argument 359 __big_return(HTAB *hashp, BUFHEAD *bufp, int ndx, DBT *val, int set_current) argument 445 collect_data(HTAB *hashp, BUFHEAD *bufp, int len, int set) argument 498 __big_keydata(HTAB *hashp, BUFHEAD *bufp, DBT *key, DBT *val, int set) argument 512 collect_key(HTAB *hashp, BUFHEAD *bufp, int len, DBT *val, int set) argument 552 __big_split(HTAB *hashp, BUFHEAD *op, BUFHEAD *np, BUFHEAD *big_keyp, int addr, u_int32_t obucket, SPLIT_RETURN *ret) argument [all...] |
H A D | hash.h | 170 (B) + hashp->HDRPAGES + ((B) ? hashp->SPARES[__log2((B)+1)-1] : 0)
|
/freebsd-9.3-release/contrib/binutils/bfd/ |
H A D | coff-aux.c | 61 string, copy, collect, hashp) 71 struct bfd_link_hash_entry **hashp; 82 if (hashp != NULL && *hashp != NULL) 84 h = *hashp; 92 if (hashp != NULL) 93 *hashp = NULL; 106 if (hashp != (struct bfd_link_hash_entry **) NULL) 107 *hashp = h; 134 hashp); [all...] |
H A D | hash.c | 424 struct bfd_hash_entry *hashp; local 441 for (hashp = table->table[index]; 442 hashp != NULL; 443 hashp = hashp->next) 445 if (hashp->hash == hash 446 && strcmp (hashp->string, string) == 0) 447 return hashp; 453 hashp = (*table->newfunc) (NULL, table, string); 454 if (hashp [all...] |
H A D | merge.c | 139 struct sec_merge_hash_entry *hashp; local 193 for (hashp = (struct sec_merge_hash_entry *) table->table.table[index]; 194 hashp != NULL; 195 hashp = (struct sec_merge_hash_entry *) hashp->root.next) 197 if (hashp->root.hash == hash 198 && len == hashp->len 199 && memcmp (hashp->root.string, string, len) == 0) 203 if (hashp->alignment < alignment) 208 hashp [all...] |
H A D | i386linux.c | 330 copy, collect, hashp) 340 struct bfd_link_hash_entry **hashp; 378 if (hashp != NULL) 379 *hashp = (struct bfd_link_hash_entry *) h; 393 hashp))
|
H A D | sparclinux.c | 330 copy, collect, hashp) 340 struct bfd_link_hash_entry **hashp; 378 if (hashp != NULL) 379 *hashp = (struct bfd_link_hash_entry *) h; 393 hashp))
|
H A D | linker.c | 1538 struct bfd_link_hash_entry **hashp) 1565 if (hashp != NULL && *hashp != NULL) 1566 h = *hashp; 1575 if (hashp != NULL) 1576 *hashp = NULL; 1590 if (hashp != NULL) 1591 *hashp = h; 1993 if (hashp != NULL) 1994 *hashp 1524 _bfd_generic_link_add_one_symbol(struct bfd_link_info *info, bfd *abfd, const char *name, flagword flags, asection *section, bfd_vma value, const char *string, bfd_boolean copy, bfd_boolean collect, struct bfd_link_hash_entry **hashp) argument [all...] |
H A D | libcoff.h | 927 value, string, cp, coll, hashp)\ 929 (info, abfd, name, flags, section, value, string, cp, coll, hashp))
|
H A D | sunos.c | 1061 struct bfd_link_hash_entry **hashp) 1076 if (hashp != NULL) 1077 *hashp = (struct bfd_link_hash_entry *) h; 1145 hashp)) 1051 sunos_add_one_symbol(struct bfd_link_info *info, bfd *abfd, const char *name, flagword flags, asection *section, bfd_vma value, const char *string, bfd_boolean copy, bfd_boolean collect, struct bfd_link_hash_entry **hashp) argument
|
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | dsl_bookmark.c | 38 char *hashp; local 42 hashp = strchr(fullname, '#'); 43 if (hashp == NULL) 46 *shortnamep = hashp + 1; 49 (void) strlcpy(buf, fullname, hashp - fullname + 1);
|
H A D | zfs_ioctl.c | 1045 char *hashp = strchr(name, '#'); local 1047 if (hashp == NULL) { 1051 *hashp = '\0'; 1054 *hashp = '#'; 1071 char *hashp = strchr(name, '#'); local 1074 if (hashp == NULL) { 1079 *hashp = '\0'; 1082 *hashp = '#';
|
/freebsd-9.3-release/contrib/cvs/src/ |
H A D | hash.c | 29 hashp (key) function 245 hashval = hashp (p->key); 319 head = list->hasharray[hashp (key)]; 348 head = list->hasharray[hashp (key)];
|
/freebsd-9.3-release/sys/fs/nfsserver/ |
H A D | nfs_nfsdserv.c | 490 u_long *hashp; local 509 nfsvno_setpathbuf(&named, &bufp, &hashp); 510 error = nfsrv_parsename(nd, bufp, hashp, &named.ni_pathlen); 969 u_long *hashp; local 979 nfsvno_setpathbuf(&named, &bufp, &hashp); 980 error = nfsrv_parsename(nd, bufp, hashp, &named.ni_pathlen); 1139 u_long *hashp, cnflags; local 1190 nfsvno_setpathbuf(&named, &bufp, &hashp); 1191 error = nfsrv_parsename(nd, bufp, hashp, &named.ni_pathlen); 1352 u_long *hashp; local 1438 u_long *hashp; local 1608 u_long *hashp; local 1709 u_long *hashp; local 1830 u_long *hashp; local 2547 u_long *hashp; local 3184 u_long *hashp; local [all...] |
H A D | nfs_nfsdsubs.c | 1790 nfsrv_parsename(struct nfsrv_descript *nd, char *bufp, u_long *hashp, argument 1801 if (hashp != NULL) 1802 *hashp = 0; 1983 if (hashp != NULL) 1984 *hashp = hash;
|