• Home
  • Raw
  • Download

Lines Matching refs:dsize

1180 	data.dsize = len;  in tdb_parse_data()
2592 key.dsize = sizeof(rec_ptr); in seen_insert()
2799 key.dsize = rec.key_len; in tdb_traverse_internal()
2801 dbuf.dsize = rec.data_len; in tdb_traverse_internal()
2896 key.dsize = rec.key_len; in tdb_firstkey()
2897 key.dptr =tdb_alloc_read(tdb,tdb->travlocks.off+sizeof(rec),key.dsize); in tdb_firstkey()
2920 || memcmp(k, oldkey.dptr, oldkey.dsize) != 0) { in tdb_nextkey()
2952 key.dsize = rec.key_len; in tdb_nextkey()
2954 key.dsize); in tdb_nextkey()
3120 return memcmp(data.dptr, key.dptr, data.dsize); in tdb_key_compare()
3140 && key.dsize==r->key_len in tdb_find()
3179 if (rec.rec_len < key.dsize + dbuf.dsize + sizeof(tdb_off_t)) { in tdb_update_hash()
3185 dbuf.dptr, dbuf.dsize) == -1) in tdb_update_hash()
3188 if (dbuf.dsize != rec.data_len) { in tdb_update_hash()
3190 rec.data_len = dbuf.dsize; in tdb_update_hash()
3217 ret.dsize = rec.data_len; in tdb_fetch()
3521 if (!(p = (char *)malloc(key.dsize + dbuf.dsize))) { in tdb_store()
3526 memcpy(p, key.dptr, key.dsize); in tdb_store()
3527 if (dbuf.dsize) in tdb_store()
3528 memcpy(p+key.dsize, dbuf.dptr, dbuf.dsize); in tdb_store()
3539 key.dsize + dbuf.dsize + sizeof(tdb_off_t)); in tdb_store()
3542 rec.key_len = key.dsize; in tdb_store()
3543 rec.data_len = dbuf.dsize; in tdb_store()
3549 p, key.dsize + dbuf.dsize) == -1) { in tdb_store()
3573 rec_ptr = tdb_allocate(tdb, key.dsize + dbuf.dsize, &rec); in tdb_store()
3585 rec.key_len = key.dsize; in tdb_store()
3586 rec.data_len = dbuf.dsize; in tdb_store()
3592 || tdb->methods->tdb_write(tdb, rec_ptr+sizeof(rec), p, key.dsize+dbuf.dsize)==-1 in tdb_store()
3626 dbuf.dptr = (unsigned char *)malloc(new_dbuf.dsize); in tdb_append()
3629 dbuf.dsize + new_dbuf.dsize); in tdb_append()
3641 memcpy(dbuf.dptr + dbuf.dsize, new_dbuf.dptr, new_dbuf.dsize); in tdb_append()
3642 dbuf.dsize += new_dbuf.dsize; in tdb_append()
3738 for (value = 0, i=0; i < key->dsize; i++) in default_tdb_hash()