/freebsd-11-stable/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 | O_CLOEXEC, mode)) == -1) 126 new_table = _fstat(hashp->fp, &statbuf) == 0 && 132 if (!(hashp = init_hash(hashp, file, info))) 137 hashp 241 HTAB *hashp; local 256 HTAB *hashp; local 271 init_hash(HTAB *hashp, const char *file, const HASHINFO *info) argument 337 init_htab(HTAB *hashp, int nelem) argument 380 hdestroy(HTAB *hashp) argument 448 HTAB *hashp; local 475 flush_meta(HTAB *hashp) argument 523 HTAB *hashp; local 536 HTAB *hashp; local 555 HTAB *hashp; local 573 hash_access(HTAB *hashp, ACTION action, DBT *key, DBT *val) argument 703 HTAB *hashp; local 791 __expand_table(HTAB *hashp) argument 859 __call_hash(HTAB *hashp, char *k, int len) argument 876 alloc_segs(HTAB *hashp, int nsegs) argument 938 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 | 86 ((u_int16_t *)(P))[1] = hashp->BSIZE - 3 * sizeof(u_int16_t); \ 87 ((u_int16_t *)(P))[2] = hashp->BSIZE; \ 126 __delpair(HTAB *hashp, BUFHEAD *bufp, int ndx) argument 135 return (__big_delete(hashp, bufp)); 139 newoff = hashp->BSIZE; 159 if (ndx == hashp->cndx) { 165 hashp->cndx -= 2; 172 hashp->NKEYS--; 183 __split_page(HTAB *hashp, u_int32_t obucket, u_int32_t nbucket) argument 193 copyto = (u_int16_t)hashp 277 ugly_split(HTAB *hashp, u_int32_t obucket, BUFHEAD *old_bufp, BUFHEAD *new_bufp, int copyto, int moved) argument 398 __addel(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val) argument 468 __add_ovflpage(HTAB *hashp, BUFHEAD *bufp) argument 518 __get_page(HTAB *hashp, char *p, u_int32_t bucket, int is_bucket, int is_disk, int is_bitmap) argument 573 __put_page(HTAB *hashp, char *p, u_int32_t bucket, int is_bucket, int is_bitmap) argument 620 __ibitmap(HTAB *hashp, int pnum, int nbits, int ndx) argument 655 overflow_page(HTAB *hashp) argument 808 __free_ovflpage(HTAB *hashp, BUFHEAD *obufp) argument 852 open_temp(HTAB *hashp) argument 907 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-11-stable/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-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | dsl_bookmark.c | 40 char *hashp; local 44 hashp = strchr(fullname, '#'); 45 if (hashp == NULL) 48 *shortnamep = hashp + 1; 51 (void) strlcpy(buf, fullname, hashp - fullname + 1);
|
H A D | zfs_ioctl.c | 1077 char *hashp = strchr(name, '#'); local 1079 if (hashp == NULL) { 1083 *hashp = '\0'; 1086 *hashp = '#'; 1111 char *hashp = strchr(name, '#'); local 1114 if (hashp == NULL) { 1119 *hashp = '\0'; 1122 *hashp = '#';
|
/freebsd-11-stable/sys/fs/nfsserver/ |
H A D | nfs_nfsdserv.c | 511 u_long *hashp; local 530 nfsvno_setpathbuf(&named, &bufp, &hashp); 531 error = nfsrv_parsename(nd, bufp, hashp, &named.ni_pathlen); 998 u_long *hashp; local 1008 nfsvno_setpathbuf(&named, &bufp, &hashp); 1009 error = nfsrv_parsename(nd, bufp, hashp, &named.ni_pathlen); 1168 u_long *hashp, cnflags; local 1219 nfsvno_setpathbuf(&named, &bufp, &hashp); 1220 error = nfsrv_parsename(nd, bufp, hashp, &named.ni_pathlen); 1381 u_long *hashp; local 1467 u_long *hashp; local 1637 u_long *hashp; local 1738 u_long *hashp; local 1859 u_long *hashp; local 2603 u_long *hashp; local 3392 u_long *hashp; local [all...] |
H A D | nfs_nfsdsubs.c | 1829 nfsrv_parsename(struct nfsrv_descript *nd, char *bufp, u_long *hashp, argument 1840 if (hashp != NULL) 1841 *hashp = 0; 2022 if (hashp != NULL) 2023 *hashp = hash;
|