/freebsd-11.0-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 | 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 615 __ibitmap(HTAB *hashp, int pnum, int nbits, int ndx) argument 650 overflow_page(HTAB *hashp) argument 803 __free_ovflpage(HTAB *hashp, BUFHEAD *obufp) argument 847 open_temp(HTAB *hashp) argument 902 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.0-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-11.0-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 | 1047 char *hashp = strchr(name, '#'); local 1049 if (hashp == NULL) { 1053 *hashp = '\0'; 1056 *hashp = '#'; 1073 char *hashp = strchr(name, '#'); local 1076 if (hashp == NULL) { 1081 *hashp = '\0'; 1084 *hashp = '#';
|
/freebsd-11.0-release/sys/fs/nfsserver/ |
H A D | nfs_nfsdserv.c | 502 u_long *hashp; local 521 nfsvno_setpathbuf(&named, &bufp, &hashp); 522 error = nfsrv_parsename(nd, bufp, hashp, &named.ni_pathlen); 989 u_long *hashp; local 999 nfsvno_setpathbuf(&named, &bufp, &hashp); 1000 error = nfsrv_parsename(nd, bufp, hashp, &named.ni_pathlen); 1159 u_long *hashp, cnflags; local 1210 nfsvno_setpathbuf(&named, &bufp, &hashp); 1211 error = nfsrv_parsename(nd, bufp, hashp, &named.ni_pathlen); 1372 u_long *hashp; local 1458 u_long *hashp; local 1628 u_long *hashp; local 1729 u_long *hashp; local 1850 u_long *hashp; local 2593 u_long *hashp; local 3351 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;
|