/external/e2fsprogs/e2fsck/ |
dirinfo.c | 15 #include <ext2fs/tdb.h> 23 TDB_CONTEXT *tdb; member in struct:dir_info_db 65 db->tdb = tdb_open(db->tdb_fn, 0, TDB_CLEAR_IF_FIRST, 90 if (db->tdb) { 92 printf("Note: using tdb!\n"); 140 if (db->tdb) { 189 if (db->tdb) { 195 data = tdb_fetch(db->tdb, key); 197 if (tdb_error(db->tdb) != TDB_ERR_NOEXIST) 199 tdb_errorstr(db->tdb)); [all...] |
/external/e2fsprogs/lib/ext2fs/ |
icount.c | 23 #include "tdb.h" 60 TDB_CONTEXT *tdb; member in struct:ext2_icount 75 if (icount->tdb) 76 tdb_close(icount->tdb); 187 icount->tdb = tdb_open(fn, 0, TDB_CLEAR_IF_FIRST, 189 if (icount->tdb) { 406 if (icount->tdb) { 412 if (tdb_store(icount->tdb, key, data, TDB_REPLACE)) 413 return tdb_error(icount->tdb) + 416 if (tdb_delete(icount->tdb, key) [all...] |
tdbtool.c | 39 #include "tdb.h" 102 /* a tdb tool for manipulating a tdb database */ 104 static TDB_CONTEXT *tdb; variable 168 " move key file : move a record to a destination tdb\n" 189 if (tdb) tdb_close(tdb); 190 tdb = tdb_open(tdbname, 0, TDB_CLEAR_IF_FIRST, 192 if (!tdb) { 199 if (tdb) tdb_close(tdb) [all...] |
tdb.c | 2 URL: svn://svnanon.samba.org/samba/branches/SAMBA_4_0/source/lib/tdb/common 13 ** NOTE! The following LGPL license applies to the tdb 108 #include "tdb.h" 125 #define TDB_MAGIC_FOOD "TDB file\n" 140 #define TDB_HASHTABLE_SIZE(tdb) ((tdb->header.hash_size+1)*sizeof(tdb_off_t)) 147 /* NB assumes there is a local variable called "tdb" that is the 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 3815 struct tdb_context *tdb; local 4119 struct tdb_context *tdb; local [all...] |
/external/ppp/pppd/ |
tdb.c | 10 ** NOTE! The following LGPL license applies to the tdb 59 #include "tdb.h" 62 #define TDB_MAGIC_FOOD "TDB file\n" 80 /* NB assumes there is a local variable called "tdb" that is the 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) 110 if (tdb->flags & TDB_INTERNAL) 114 if (tdb->map_ptr) 1681 TDB_CONTEXT *tdb; local 1999 TDB_CONTEXT *tdb; local [all...] |