/external/e2fsprogs/lib/ext2fs/ |
D | tdb.c | 140 #define TDB_HASHTABLE_SIZE(tdb) ((tdb->header.hash_size+1)*sizeof(tdb_off_t)) argument 150 #define TDB_LOG(x) tdb->log.log_fn x 162 #define BUCKET(hash) ((hash) % tdb->header.hash_size) 164 #define DOCONV() (tdb->flags & TDB_CONVERT) 256 static int tdb_munmap(struct tdb_context *tdb); 257 static void tdb_mmap(struct tdb_context *tdb); 258 static int tdb_lock(struct tdb_context *tdb, int list, int ltype); 259 static int tdb_unlock(struct tdb_context *tdb, int list, int ltype); 260 static int tdb_brlock(struct tdb_context *tdb, tdb_off_t offset, int rw_type, int lck_type, int pro… 261 static int tdb_transaction_lock(struct tdb_context *tdb, int ltype); [all …]
|
D | tdb.h | 51 #define TDB_ERRCODE(code, ret) ((tdb->ecode = (code)), ret) 151 void tdb_set_max_dead(struct tdb_context *tdb, int max_dead); 153 int tdb_reopen(struct tdb_context *tdb); 155 void tdb_set_logging_function(struct tdb_context *tdb, const struct tdb_logging_context *log_ctx); 156 enum TDB_ERROR tdb_error(struct tdb_context *tdb); 157 const char *tdb_errorstr(struct tdb_context *tdb); 158 TDB_DATA tdb_fetch(struct tdb_context *tdb, TDB_DATA key); 159 int tdb_parse_record(struct tdb_context *tdb, TDB_DATA key, 163 int tdb_delete(struct tdb_context *tdb, TDB_DATA key); 164 int tdb_store(struct tdb_context *tdb, TDB_DATA key, TDB_DATA dbuf, int flag); [all …]
|
D | tdbtool.c | 104 static TDB_CONTEXT *tdb; variable 189 if (tdb) tdb_close(tdb); in create_tdb() 190 tdb = tdb_open(tdbname, 0, TDB_CLEAR_IF_FIRST, in create_tdb() 192 if (!tdb) { in create_tdb() 199 if (tdb) tdb_close(tdb); in open_tdb() 200 tdb = tdb_open(tdbname, 0, 0, O_RDWR, 0600); in open_tdb() 201 if (!tdb) { in open_tdb() 220 if (tdb_store(tdb, key, dbuf, TDB_INSERT) == -1) { in insert_tdb() 245 print_rec(tdb, key, dbuf, NULL); in store_tdb() 247 if (tdb_store(tdb, key, dbuf, TDB_REPLACE) == -1) { in store_tdb() [all …]
|
D | icount.c | 60 TDB_CONTEXT *tdb; member 75 if (icount->tdb) in ext2fs_free_icount() 76 tdb_close(icount->tdb); in ext2fs_free_icount() 187 icount->tdb = tdb_open(fn, 0, TDB_CLEAR_IF_FIRST, in ext2fs_create_icount_tdb() 189 if (icount->tdb) { in ext2fs_create_icount_tdb() 406 if (icount->tdb) { in set_inode_count() 412 if (tdb_store(icount->tdb, key, data, TDB_REPLACE)) in set_inode_count() 413 return tdb_error(icount->tdb) + in set_inode_count() 416 if (tdb_delete(icount->tdb, key)) in set_inode_count() 417 return tdb_error(icount->tdb) + in set_inode_count() [all …]
|
D | Android.mk | 54 tdb.c \
|
D | Makefile.in | 65 tdb.o \ 126 $(srcdir)/tdb.c \ 140 tdb.h 242 @$(CC) -o ext2_tdbtool tdbtool.o tdb.o 442 $(srcdir)/tdb.h 540 tdb.o: $(srcdir)/tdb.c $(srcdir)/tdb.h
|
/external/ppp/pppd/ |
D | tdb.c | 83 #define TDB_LOG(x) (tdb->log_fn?((tdb->log_fn x),0) : 0) 102 #define BUCKET(hash) ((hash) % tdb->header.hash_size) 108 static int tdb_munmap(TDB_CONTEXT *tdb) in tdb_munmap() argument 110 if (tdb->flags & TDB_INTERNAL) in tdb_munmap() 114 if (tdb->map_ptr) { in tdb_munmap() 115 int ret = munmap(tdb->map_ptr, tdb->map_size); in tdb_munmap() 120 tdb->map_ptr = NULL; in tdb_munmap() 124 static void tdb_mmap(TDB_CONTEXT *tdb) in tdb_mmap() argument 126 if (tdb->flags & TDB_INTERNAL) in tdb_mmap() 130 if (!(tdb->flags & TDB_NOMMAP)) { in tdb_mmap() [all …]
|
D | tdb.h | 60 #define TDB_ERRCODE(code, ret) ((tdb->ecode = (code)), ret) 114 …void (*log_fn)(struct tdb_context *tdb, int level, const char *, ...) PRINTF_ATTRIBUTE(3,4); /* lo… 130 int tdb_reopen(TDB_CONTEXT *tdb); 132 void tdb_logging_function(TDB_CONTEXT *tdb, tdb_log_func); 133 enum TDB_ERROR tdb_error(TDB_CONTEXT *tdb); 134 const char *tdb_errorstr(TDB_CONTEXT *tdb); 135 TDB_DATA tdb_fetch(TDB_CONTEXT *tdb, TDB_DATA key); 136 int tdb_delete(TDB_CONTEXT *tdb, TDB_DATA key); 137 int tdb_store(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA dbuf, int flag); 138 int tdb_append(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA new_dbuf); [all …]
|
D | spinlock.c | 367 int tdb_spinlock(TDB_CONTEXT *tdb, int list, int rw_type) in tdb_spinlock() argument 371 if (!tdb->map_ptr) return -1; in tdb_spinlock() 372 rwlocks = (tdb_rwlock_t *)((char *)tdb->map_ptr + tdb->header.rwlocks); in tdb_spinlock() 390 int tdb_spinunlock(TDB_CONTEXT *tdb, int list, int rw_type) in tdb_spinunlock() argument 394 if (!tdb->map_ptr) return -1; in tdb_spinunlock() 395 rwlocks = (tdb_rwlock_t *)((char *)tdb->map_ptr + tdb->header.rwlocks); in tdb_spinunlock() 438 int tdb_clear_spinlocks(TDB_CONTEXT *tdb) in tdb_clear_spinlocks() argument 443 if (tdb->header.rwlocks == 0) return 0; in tdb_clear_spinlocks() 444 if (!tdb->map_ptr) return -1; in tdb_clear_spinlocks() 447 rwlocks = (tdb_rwlock_t *)((char *)tdb->map_ptr + tdb->header.rwlocks); in tdb_clear_spinlocks() [all …]
|
D | spinlock.h | 37 int tdb_spinlock(TDB_CONTEXT *tdb, int list, int rw_type); 38 int tdb_spinunlock(TDB_CONTEXT *tdb, int list, int rw_type); 40 int tdb_clear_spinlocks(TDB_CONTEXT *tdb); 47 #define tdb_spinlock(tdb, list, rw_type) (-1) 48 #define tdb_spinunlock(tdb, list, rw_type) (-1) 50 int tdb_spinlock(TDB_CONTEXT *tdb, int list, int rw_type); 51 int tdb_spinunlock(TDB_CONTEXT *tdb, int list, int rw_type); 54 int tdb_clear_spinlocks(TDB_CONTEXT *tdb);
|
D | Makefile.linux | 156 PPPDSRCS += tdb.c spinlock.c 157 PPPDOBJS += tdb.o spinlock.o 158 HEADERS += tdb.h spinlock.h
|
/external/e2fsprogs/lib/ext2fs/tdb/patches/ |
D | static-prototypes | 1 Index: tdbsa/tdb.c 3 --- tdbsa.orig/tdb.c 4 +++ tdbsa/tdb.c 9 -int tdb_munmap(struct tdb_context *tdb); 10 -void tdb_mmap(struct tdb_context *tdb); 11 -int tdb_lock(struct tdb_context *tdb, int list, int ltype); 12 -int tdb_unlock(struct tdb_context *tdb, int list, int ltype); 13 -int tdb_brlock(struct tdb_context *tdb, tdb_off_t offset, int rw_type, int lck_type, int probe, si… 14 -int tdb_transaction_lock(struct tdb_context *tdb, int ltype); 15 -int tdb_transaction_unlock(struct tdb_context *tdb); [all …]
|
D | static-functions | 1 Index: tdbsa/tdb.c 3 --- tdbsa.orig/tdb.c 4 +++ tdbsa/tdb.c 9 -int tdb_rec_free_read(struct tdb_context *tdb, tdb_off_t off, struct list_struct *rec) 10 +static int tdb_rec_free_read(struct tdb_context *tdb, tdb_off_t off, struct list_struct *rec) 12 if (tdb->methods->tdb_read(tdb, off, rec, sizeof(*rec),DOCONV()) == -1)
|
D | ext2tdb-rename | 1 Index: tdb/tdb.h 3 --- tdb.orig/tdb.h 4 +++ tdb/tdb.h 9 +/* ext2fs tdb renames */
|
D | replace-includes | 1 Index: tdb/tdb.c 3 --- tdb.orig/tdb.c 4 +++ tdb/tdb.c 90 #include "tdb.h"
|
D | copyright | 1 Index: tdbsa/tdb.c 3 --- tdbsa.orig/tdb.c 4 +++ tdbsa/tdb.c 19 ** NOTE! The following LGPL license applies to the tdb
|
D | tdbtool-includes | 28 #include "tdb.h"
|
/external/e2fsprogs/lib/ext2fs/tdb/ |
D | build-tdb | 7 BASE_DIR=/usr/projects/samba/tdb 15 echo "/*" > tdb.c 16 grep ^URL .svninfo >> tdb.c 17 grep "^Last Changed Rev" .svninfo | sed -e 's/Last Changed //' >> tdb.c 18 grep "^Last Changed Date" .svninfo >> tdb.c 19 echo "*/" >> tdb.c 21 cat $BASE_DIR/common/tdb_private.h >> tdb.c 23 if [ `tail -n 1 tdb.c | wc -c` -gt 1 ]; then 24 printf "\n" >> tdb.c 26 echo "/* file: $i */" >> tdb.c [all …]
|
D | Makefile | 3 tdb.c tdb.h tdbtool.c: 4 ./build-tdb 9 tdbtool: tdb.o tdbtool.o 10 gcc -o tdbtool tdb.o tdbtool.o 13 rm -f tdb.c tdb.h tdb.o tdbtool tdbtool.c tdbtool.o .svninfo
|
/external/e2fsprogs/e2fsck/ |
D | dirinfo.c | 23 TDB_CONTEXT *tdb; member 65 db->tdb = tdb_open(db->tdb_fn, 0, TDB_CLEAR_IF_FIRST, in setup_tdb() 90 if (db->tdb) { in setup_db() 140 if (db->tdb) { in e2fsck_add_dir_info() 189 if (db->tdb) { in e2fsck_get_dir_info() 195 data = tdb_fetch(db->tdb, key); in e2fsck_get_dir_info() 197 if (tdb_error(db->tdb) != TDB_ERR_NOEXIST) in e2fsck_get_dir_info() 199 tdb_errorstr(db->tdb)); in e2fsck_get_dir_info() 267 if (!db->tdb) in e2fsck_put_dir_info() 278 if (tdb_store(db->tdb, key, data, TDB_REPLACE) == -1) { in e2fsck_put_dir_info() [all …]
|
/external/clearsilver/python/examples/trans/ |
D | trans.py | 56 self.tdb = db_trans.trans_connect() 300 rows = self.tdb.strings.fetchRows( ('string', s) ) 302 row = self.tdb.strings.newRow() 363 maps = self.tdb.maps.fetchRows( ('lang', lang) ) 367 strings = self.tdb.strings.fetchRows() 398 cursor = self.tdb.defaultCursor() 418 rows = self.tdb.maps.fetchRows( [('string_id', s_id), ('lang', lang)] ) 421 row = self.tdb.strings.fetchRow( ('string_id', s_id) ) 533 map_r = self.tdb.maps.fetchRow( [('string_id', s_id), ('lang', lang)]) 535 map_r = self.tdb.maps.newRow()
|
/external/e2fsprogs/ |
D | RELEASE-NOTES | 165 Update to the latest samba tdb code before the LGPLv3 change, which 476 A recent change to e2fsck_add_dir_info() to use tdb files to check
|