Home
last modified time | relevance | path

Searched refs:tdb (Results 1 – 25 of 40) sorted by relevance

12

/external/e2fsprogs/lib/ext2fs/
Dtdb.c138 #define TDB_HASHTABLE_SIZE(tdb) ((tdb->header.hash_size+1)*sizeof(tdb_off_t)) argument
148 #define TDB_LOG(x) tdb->log.log_fn x
160 #define BUCKET(hash) ((hash) % tdb->header.hash_size)
162 #define DOCONV() (tdb->flags & TDB_CONVERT)
254 static int tdb_munmap(struct tdb_context *tdb);
255 static void tdb_mmap(struct tdb_context *tdb);
256 static int tdb_lock(struct tdb_context *tdb, int list, int ltype);
257 static int tdb_unlock(struct tdb_context *tdb, int list, int ltype);
258 static int tdb_brlock(struct tdb_context *tdb, tdb_off_t offset, int rw_type, int lck_type, int pro…
259 static int tdb_transaction_lock(struct tdb_context *tdb, int ltype);
[all …]
Dtdb.h51 #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 …]
Dtdbtool.c104 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 …]
Dundo_io.c60 TDB_CONTEXT *tdb; member
137 TDB_CONTEXT *tdb) in write_file_system_identity() argument
161 retval = tdb_store(tdb, tdb_key, tdb_data, TDB_INSERT); in write_file_system_identity()
163 retval = EXT2_ET_TDB_SUCCESS + tdb_error(tdb); in write_file_system_identity()
172 retval = tdb_store(tdb, tdb_key, tdb_data, TDB_INSERT); in write_file_system_identity()
174 retval = EXT2_ET_TDB_SUCCESS + tdb_error(tdb); in write_file_system_identity()
182 static errcode_t write_block_size(TDB_CONTEXT *tdb, int block_size) in write_block_size() argument
192 retval = tdb_store(tdb, tdb_key, tdb_data, TDB_INSERT); in write_block_size()
194 retval = EXT2_ET_TDB_SUCCESS + tdb_error(tdb); in write_block_size()
215 if (data->tdb == NULL) { in undo_write_tdb()
[all …]
Dicount.c60 TDB_CONTEXT *tdb; member
84 if (icount->tdb) in ext2fs_free_icount()
85 tdb_close(icount->tdb); in ext2fs_free_icount()
209 icount->tdb = tdb_open(fn, num_inodes, TDB_NOLOCK | TDB_NOSYNC, in ext2fs_create_icount_tdb()
211 if (icount->tdb) { in ext2fs_create_icount_tdb()
402 if (icount->tdb) { in set_inode_count()
408 if (tdb_store(icount->tdb, key, data, TDB_REPLACE)) in set_inode_count()
409 return tdb_error(icount->tdb) + in set_inode_count()
412 if (tdb_delete(icount->tdb, key)) in set_inode_count()
413 return tdb_error(icount->tdb) + in set_inode_count()
[all …]
DAndroid.mk65 tdb.c \
DMakefile.in83 tdb.o \
158 $(srcdir)/tdb.c \
174 tdb.h qcow2.h
293 $(Q) $(CC) -o ext2_tdbtool tdbtool.o tdb.o
737 $(srcdir)/ext2_ext_attr.h $(srcdir)/bitops.h $(srcdir)/tdb.h
900 tdb.o: $(srcdir)/tdb.c $(top_builddir)/lib/config.h \
901 $(top_builddir)/lib/dirpaths.h $(srcdir)/tdb.h
939 $(top_builddir)/lib/dirpaths.h $(srcdir)/tdb.h $(srcdir)/ext2_fs.h \
/external/e2fsprogs/lib/ext2fs/tdb/patches/
Dstatic-prototypes1 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 …]
Dstatic-functions1 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)
Dext2tdb-rename1 Index: tdb/tdb.h
3 --- tdb.orig/tdb.h
4 +++ tdb/tdb.h
9 +/* ext2fs tdb renames */
Dreplace-includes1 Index: tdb/tdb.c
3 --- tdb.orig/tdb.c
4 +++ tdb/tdb.c
90 #include "tdb.h"
Dcopyright1 Index: tdbsa/tdb.c
3 --- tdbsa.orig/tdb.c
4 +++ tdbsa/tdb.c
19 ** NOTE! The following LGPL license applies to the tdb
Dtdbtool-includes28 #include "tdb.h"
/external/clang/lib/Headers/
Dhtmxlintrin.h230 __TM_begin (void* const tdb) in __TM_begin() argument
232 return __builtin_tbegin_nofloat (tdb); in __TM_begin()
263 struct __htm_tdb *tdb = (struct __htm_tdb*)tdb_ptr; in __TM_nesting_depth() local
268 if (tdb->format != 1) in __TM_nesting_depth()
270 return tdb->nesting_depth; in __TM_nesting_depth()
278 struct __htm_tdb *tdb = (struct __htm_tdb*)tdb_ptr; in __TM_is_user_abort() local
280 if (tdb->format != 1) in __TM_is_user_abort()
283 return !!(tdb->abort_code >= _HTM_FIRST_USER_ABORT_CODE); in __TM_is_user_abort()
289 struct __htm_tdb *tdb = (struct __htm_tdb*)tdb_ptr; in __TM_is_named_user_abort() local
291 if (tdb->format != 1) in __TM_is_named_user_abort()
[all …]
Dhtmintrin.h179 __builtin_tbegin_retry_tdb (void *tdb, int retry) in __builtin_tbegin_retry_tdb() argument
183 while ((cc = __builtin_tbegin(tdb)) == _HTM_TBEGIN_TRANSIENT in __builtin_tbegin_retry_tdb()
190 #define __builtin_tbegin_retry(tdb, retry) \ argument
191 (__builtin_constant_p(tdb == 0) && tdb == 0 ? \
193 __builtin_tbegin_retry_tdb(tdb, retry))
208 __builtin_tbegin_retry_nofloat_tdb (void *tdb, int retry) in __builtin_tbegin_retry_nofloat_tdb() argument
212 while ((cc = __builtin_tbegin_nofloat(tdb)) == _HTM_TBEGIN_TRANSIENT in __builtin_tbegin_retry_nofloat_tdb()
219 #define __builtin_tbegin_retry_nofloat(tdb, retry) \ argument
220 (__builtin_constant_p(tdb == 0) && tdb == 0 ? \
222 __builtin_tbegin_retry_nofloat_tdb(tdb, retry))
/external/clang/test/CodeGen/
Dbuiltins-systemz.c12 void test_htm1(struct __htm_tdb *tdb, int reg, int *mem, uint64_t *mem64) { in test_htm1() argument
19 __builtin_tbegin (tdb); in test_htm1()
28 __builtin_tbegin_nofloat (tdb); in test_htm1()
39 __builtin_tbegin_retry (tdb, 6); in test_htm1()
52 __builtin_tbegin_retry_nofloat (tdb, 6); in test_htm1()
115 void * const tdb = &tdb_struct; in test_htmxl1() local
121 result = __TM_begin (tdb); in test_htmxl1()
131 result = __TM_nesting_depth (tdb); in test_htmxl1()
134 result = __TM_is_user_abort (tdb); in test_htmxl1()
135 result = __TM_is_named_user_abort (tdb, &code); in test_htmxl1()
[all …]
/external/e2fsprogs/lib/ext2fs/tdb/
Dbuild-tdb7 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 …]
/external/e2fsprogs/misc/
De2undo.c39 static int check_filesystem(TDB_CONTEXT *tdb, io_channel channel) in check_filesystem() argument
57 tdb_data = tdb_fetch(tdb, tdb_key); in check_filesystem()
59 retval = EXT2_ET_TDB_SUCCESS + tdb_error(tdb); in check_filesystem()
61 _("Failed tdb_fetch %s\n"), tdb_errorstr(tdb)); in check_filesystem()
78 tdb_data = tdb_fetch(tdb, tdb_key); in check_filesystem()
80 retval = EXT2_ET_TDB_SUCCESS + tdb_error(tdb); in check_filesystem()
82 _("Failed tdb_fetch %s\n"), tdb_errorstr(tdb)); in check_filesystem()
95 static int set_blk_size(TDB_CONTEXT *tdb, io_channel channel) in set_blk_size() argument
103 tdb_data = tdb_fetch(tdb, tdb_key); in set_blk_size()
105 retval = EXT2_ET_TDB_SUCCESS + tdb_error(tdb); in set_blk_size()
[all …]
DMakefile.in699 $(top_builddir)/lib/dirpaths.h $(top_srcdir)/lib/ext2fs/tdb.h \
/external/e2fsprogs/e2fsck/
Ddirinfo.c23 TDB_CONTEXT *tdb; member
66 db->tdb = NULL; in setup_tdb()
73 db->tdb = tdb_open(db->tdb_fn, num_dirs, TDB_NOLOCK | TDB_NOSYNC, in setup_tdb()
98 if (db->tdb) { in setup_db()
148 if (db->tdb) { in e2fsck_add_dir_info()
197 if (db->tdb) { in e2fsck_get_dir_info()
203 data = tdb_fetch(db->tdb, key); in e2fsck_get_dir_info()
205 if (tdb_error(db->tdb) != TDB_ERR_NOEXIST) in e2fsck_get_dir_info()
207 tdb_errorstr(db->tdb)); in e2fsck_get_dir_info()
275 if (!db->tdb) in e2fsck_put_dir_info()
[all …]
DMakefile.in470 $(top_srcdir)/lib/ext2fs/tdb.h
/external/llvm/test/Object/
Dnm-trivial-object.test24 RUN: | FileCheck %s -check-prefix macho-tdb
104 macho-tdb: 0000000000000030 s EH_frame0
105 macho-tdb: 0000000000000070 b _b
106 macho-tdb: 000000000000000c D _d
107 macho-tdb: 0000000000000000 T _t
108 macho-tdb: 0000000000000048 S _t.eh
/external/ppp/pppd/
DMakefile.linux172 PPPDSRCS += tdb.c spinlock.c
173 PPPDOBJS += tdb.o spinlock.o
174 HEADERS += tdb.h spinlock.h
DREADME.google2 Removed multilink.c, spinlock.[ch], tdb.[ch] as they are unused.
/external/selinux/policycoreutils/restorecond/
Drestorecond.conf3 /etc/samba/secrets.tdb

12