Home | History | Annotate | Download | only in ext2fs

Lines Matching refs:tdb

40 #include "tdb.h"
103 /* a tdb tool for manipulating a tdb database */
105 static TDB_CONTEXT *tdb;
169 " move key file : move a record to a destination tdb\n"
190 if (tdb) tdb_close(tdb);
191 tdb = tdb_open(tdbname, 0, TDB_CLEAR_IF_FIRST,
193 if (!tdb) {
200 if (tdb) tdb_close(tdb);
201 tdb = tdb_open(tdbname, 0, 0, O_RDWR, 0600);
202 if (!tdb) {
221 if (tdb_store(tdb, key, dbuf, TDB_INSERT) == -1) {
246 print_rec(tdb, key, dbuf, NULL);
248 if (tdb_store(tdb, key, dbuf, TDB_REPLACE) == -1) {
265 dbuf = tdb_fetch(tdb, key);
271 print_rec(tdb, key, dbuf, NULL);
290 if (tdb_delete(tdb, key) != 0) {
306 terror("need destination tdb name");
313 dbuf = tdb_fetch(tdb, key);
319 print_rec(tdb, key, dbuf, NULL);
323 terror("unable to open destination tdb");
375 if ((count = tdb_traverse(tdb, traverse_fn, NULL)) == -1)
376 printf("Error = %s\n", tdb_errorstr(tdb));
459 if (!tdb) {
468 tdb_traverse(tdb, do_delete_fn, NULL);
472 tdb_traverse(tdb, print_rec, NULL);
491 tdb_traverse(tdb, print_key, NULL);
494 tdb_traverse(tdb, print_hexkey, NULL);
501 tdb_dump_all(tdb);
504 tdb_printfreelist(tdb);
511 first_record(tdb, &iterate_kbuf);
515 next_record(tdb, &iterate_kbuf);
587 while ((cmdname = tdb_getline("tdb> "))) {
618 if (tdb) tdb_close(tdb);