• Home
  • Raw
  • Download

Lines Matching refs:dptr

1177 		data.dptr = offset + (unsigned char *)tdb->map_ptr;  in tdb_parse_data()
1181 if (!(data.dptr = tdb_alloc_read(tdb, offset, len))) { in tdb_parse_data()
1186 free(data.dptr); in tdb_parse_data()
2572 key.dptr = (unsigned char *)&rec_ptr; in seen_insert()
2770 key.dptr = tdb_alloc_read(tdb, tl->off + sizeof(rec), in tdb_traverse_internal()
2772 if (!key.dptr) { in tdb_traverse_internal()
2781 dbuf.dptr = key.dptr + rec.key_len; in tdb_traverse_internal()
2787 SAFE_FREE(key.dptr); in tdb_traverse_internal()
2797 SAFE_FREE(key.dptr); in tdb_traverse_internal()
2800 SAFE_FREE(key.dptr); in tdb_traverse_internal()
2878 key.dptr =tdb_alloc_read(tdb,tdb->travlocks.off+sizeof(rec),key.dsize); in tdb_firstkey()
2901 || memcmp(k, oldkey.dptr, oldkey.dsize) != 0) { in tdb_nextkey()
2934 key.dptr = tdb_alloc_read(tdb, tdb->travlocks.off+sizeof(rec), in tdb_nextkey()
3099 return memcmp(data.dptr, key.dptr, data.dsize); in tdb_key_compare()
3164 dbuf.dptr, dbuf.dsize) == -1) in tdb_update_hash()
3194 ret.dptr = tdb_alloc_read(tdb, rec_ptr + sizeof(rec) + rec.key_len, in tdb_fetch()
3505 memcpy(p, key.dptr, key.dsize); in tdb_store()
3507 memcpy(p+key.dsize, dbuf.dptr, dbuf.dsize); in tdb_store()
3604 if (dbuf.dptr == NULL) { in tdb_append()
3605 dbuf.dptr = (unsigned char *)malloc(new_dbuf.dsize); in tdb_append()
3607 unsigned char *new_dptr = (unsigned char *)realloc(dbuf.dptr, in tdb_append()
3610 free(dbuf.dptr); in tdb_append()
3612 dbuf.dptr = new_dptr; in tdb_append()
3615 if (dbuf.dptr == NULL) { in tdb_append()
3620 memcpy(dbuf.dptr + dbuf.dsize, new_dbuf.dptr, new_dbuf.dsize); in tdb_append()
3627 SAFE_FREE(dbuf.dptr); in tdb_append()
3717 value = value * 256 + key->dptr[i] + (value >> 24) * 241; in default_tdb_hash()