Lines Matching refs:dptr
1184 data.dptr = offset + (unsigned char *)tdb->map_ptr; in tdb_parse_data()
1188 if (!(data.dptr = tdb_alloc_read(tdb, offset, len))) { in tdb_parse_data()
1193 free(data.dptr); in tdb_parse_data()
2579 key.dptr = (unsigned char *)&rec_ptr; in seen_insert()
2777 key.dptr = tdb_alloc_read(tdb, tl->off + sizeof(rec), in tdb_traverse_internal()
2779 if (!key.dptr) { in tdb_traverse_internal()
2788 dbuf.dptr = key.dptr + rec.key_len; in tdb_traverse_internal()
2794 SAFE_FREE(key.dptr); in tdb_traverse_internal()
2804 SAFE_FREE(key.dptr); in tdb_traverse_internal()
2807 SAFE_FREE(key.dptr); in tdb_traverse_internal()
2885 key.dptr =tdb_alloc_read(tdb,tdb->travlocks.off+sizeof(rec),key.dsize); in tdb_firstkey()
2908 || memcmp(k, oldkey.dptr, oldkey.dsize) != 0) { in tdb_nextkey()
2941 key.dptr = tdb_alloc_read(tdb, tdb->travlocks.off+sizeof(rec), in tdb_nextkey()
3106 return memcmp(data.dptr, key.dptr, data.dsize); in tdb_key_compare()
3171 dbuf.dptr, dbuf.dsize) == -1) in tdb_update_hash()
3201 ret.dptr = tdb_alloc_read(tdb, rec_ptr + sizeof(rec) + rec.key_len, in tdb_fetch()
3512 memcpy(p, key.dptr, key.dsize); in tdb_store()
3514 memcpy(p+key.dsize, dbuf.dptr, dbuf.dsize); in tdb_store()
3611 if (dbuf.dptr == NULL) { in tdb_append()
3612 dbuf.dptr = (unsigned char *)malloc(new_dbuf.dsize); in tdb_append()
3614 unsigned char *new_dptr = (unsigned char *)realloc(dbuf.dptr, in tdb_append()
3617 free(dbuf.dptr); in tdb_append()
3619 dbuf.dptr = new_dptr; in tdb_append()
3622 if (dbuf.dptr == NULL) { in tdb_append()
3627 memcpy(dbuf.dptr + dbuf.dsize, new_dbuf.dptr, new_dbuf.dsize); in tdb_append()
3634 SAFE_FREE(dbuf.dptr); in tdb_append()
3724 value = value * 256 + key->dptr[i] + (value >> 24) * 241; in default_tdb_hash()