HomeSort by relevance Sort by last modified time
    Searched refs:tdb (Results 1 - 14 of 14) sorted by null

  /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...]
tdb.h 11 ** NOTE! The following LGPL license applies to the tdb
60 #define TDB_ERRCODE(code, ret) ((tdb->ecode = (code)), ret)
107 enum TDB_ERROR ecode; /* error code for last tdb error */
112 dev_t device; /* uniquely identifies this tdb */
113 ino_t inode; /* uniquely identifies this tdb */
114 void (*log_fn)(struct tdb_context *tdb, int level, const char *, ...) PRINTF_ATTRIBUTE(3,4); /* logging function */
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);
    [all...]
spinlock.h 8 #include "tdb.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);
spinlock.c 8 ** NOTE! The following LGPL license applies to the tdb
35 #include "tdb.h"
364 /* TDB SPECIFIC */
367 int tdb_spinlock(TDB_CONTEXT *tdb, int list, int rw_type)
371 if (!tdb->map_ptr) return -1;
372 rwlocks = (tdb_rwlock_t *)((char *)tdb->map_ptr + tdb->header.rwlocks);
390 int tdb_spinunlock(TDB_CONTEXT *tdb, int list, int rw_type)
394 if (!tdb->map_ptr) return -1;
395 rwlocks = (tdb_rwlock_t *)((char *)tdb->map_ptr + tdb->header.rwlocks)
    [all...]
Makefile.linux 58 # Uncomment the next line to enable the TDB database (enabled by default.)
59 # If you enable multilink, then TDB is automatically enabled also.
60 # Linux distributions: Please leave TDB ENABLED in your builds.
145 # Multilink implies the use of TDB
153 # TDB
156 PPPDSRCS += tdb.c spinlock.c
157 PPPDOBJS += tdb.o spinlock.o
158 HEADERS += tdb.h spinlock.h
  /external/e2fsprogs/lib/ext2fs/tdb/
build-tdb 3 # This file creates a stand-alone TDB based on a set of sources from
6 #BASE_DIR=/usr/projects/samba/samba-4.0.0tp4/source/lib/tdb
7 BASE_DIR=/usr/projects/samba/tdb
12 freelistcheck.c traverse.c dump.c tdb.c open.c"
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.
    [all...]
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/lib/ext2fs/
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...]
tdb.h 11 ** NOTE! The following LGPL license applies to the tdb
51 #define TDB_ERRCODE(code, ret) ((tdb->ecode = (code)), ret)
79 /* ext2fs tdb renames */
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
    [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...]
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...]
Android.mk 54 tdb.c \
  /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/clearsilver/python/examples/trans/
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(
    [all...]

Completed in 129 milliseconds