diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 15:49:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 15:49:25 +0000 |
commit | 464df1d5e5ab1322e2dd0a7796939fff1aeefa9a (patch) | |
tree | 6a403684e0978f0287d7f0ec0e5aab1fd31a59e1 /lib/ext2fs/tdb/patches/static-prototypes | |
parent | Initial commit. (diff) | |
download | e2fsprogs-upstream/1.47.0.tar.xz e2fsprogs-upstream/1.47.0.zip |
Adding upstream version 1.47.0.upstream/1.47.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'lib/ext2fs/tdb/patches/static-prototypes')
-rw-r--r-- | lib/ext2fs/tdb/patches/static-prototypes | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/lib/ext2fs/tdb/patches/static-prototypes b/lib/ext2fs/tdb/patches/static-prototypes new file mode 100644 index 0000000..cf8af61 --- /dev/null +++ b/lib/ext2fs/tdb/patches/static-prototypes @@ -0,0 +1,72 @@ +Index: tdbsa/tdb.c +=================================================================== +--- tdbsa.orig/tdb.c ++++ tdbsa/tdb.c +@@ -251,39 +251,39 @@ struct tdb_context { + /* + internal prototypes + */ +-int tdb_munmap(struct tdb_context *tdb); +-void tdb_mmap(struct tdb_context *tdb); +-int tdb_lock(struct tdb_context *tdb, int list, int ltype); +-int tdb_unlock(struct tdb_context *tdb, int list, int ltype); +-int tdb_brlock(struct tdb_context *tdb, tdb_off_t offset, int rw_type, int lck_type, int probe, size_t len); +-int tdb_transaction_lock(struct tdb_context *tdb, int ltype); +-int tdb_transaction_unlock(struct tdb_context *tdb); +-int tdb_brlock_upgrade(struct tdb_context *tdb, tdb_off_t offset, size_t len); +-int tdb_write_lock_record(struct tdb_context *tdb, tdb_off_t off); +-int tdb_write_unlock_record(struct tdb_context *tdb, tdb_off_t off); +-int tdb_ofs_read(struct tdb_context *tdb, tdb_off_t offset, tdb_off_t *d); +-int tdb_ofs_write(struct tdb_context *tdb, tdb_off_t offset, tdb_off_t *d); +-void *tdb_convert(void *buf, u32 size); +-int tdb_free(struct tdb_context *tdb, tdb_off_t offset, struct list_struct *rec); +-tdb_off_t tdb_allocate(struct tdb_context *tdb, tdb_len_t length, struct list_struct *rec); +-int tdb_ofs_read(struct tdb_context *tdb, tdb_off_t offset, tdb_off_t *d); +-int tdb_ofs_write(struct tdb_context *tdb, tdb_off_t offset, tdb_off_t *d); +-int tdb_lock_record(struct tdb_context *tdb, tdb_off_t off); +-int tdb_unlock_record(struct tdb_context *tdb, tdb_off_t off); +-int tdb_rec_read(struct tdb_context *tdb, tdb_off_t offset, struct list_struct *rec); +-int tdb_rec_write(struct tdb_context *tdb, tdb_off_t offset, struct list_struct *rec); +-int tdb_do_delete(struct tdb_context *tdb, tdb_off_t rec_ptr, struct list_struct *rec); +-unsigned char *tdb_alloc_read(struct tdb_context *tdb, tdb_off_t offset, tdb_len_t len); +-int tdb_parse_data(struct tdb_context *tdb, TDB_DATA key, ++static int tdb_munmap(struct tdb_context *tdb); ++static void tdb_mmap(struct tdb_context *tdb); ++static int tdb_lock(struct tdb_context *tdb, int list, int ltype); ++static int tdb_unlock(struct tdb_context *tdb, int list, int ltype); ++static int tdb_brlock(struct tdb_context *tdb, tdb_off_t offset, int rw_type, int lck_type, int probe, size_t len); ++static int tdb_transaction_lock(struct tdb_context *tdb, int ltype); ++static int tdb_transaction_unlock(struct tdb_context *tdb); ++static int tdb_brlock_upgrade(struct tdb_context *tdb, tdb_off_t offset, size_t len); ++static int tdb_write_lock_record(struct tdb_context *tdb, tdb_off_t off); ++static int tdb_write_unlock_record(struct tdb_context *tdb, tdb_off_t off); ++static int tdb_ofs_read(struct tdb_context *tdb, tdb_off_t offset, tdb_off_t *d); ++static int tdb_ofs_write(struct tdb_context *tdb, tdb_off_t offset, tdb_off_t *d); ++static void *tdb_convert(void *buf, u32 size); ++static int tdb_free(struct tdb_context *tdb, tdb_off_t offset, struct list_struct *rec); ++static tdb_off_t tdb_allocate(struct tdb_context *tdb, tdb_len_t length, struct list_struct *rec); ++static int tdb_ofs_read(struct tdb_context *tdb, tdb_off_t offset, tdb_off_t *d); ++static int tdb_ofs_write(struct tdb_context *tdb, tdb_off_t offset, tdb_off_t *d); ++static int tdb_lock_record(struct tdb_context *tdb, tdb_off_t off); ++static int tdb_unlock_record(struct tdb_context *tdb, tdb_off_t off); ++static int tdb_rec_read(struct tdb_context *tdb, tdb_off_t offset, struct list_struct *rec); ++static int tdb_rec_write(struct tdb_context *tdb, tdb_off_t offset, struct list_struct *rec); ++static int tdb_do_delete(struct tdb_context *tdb, tdb_off_t rec_ptr, struct list_struct *rec); ++static unsigned char *tdb_alloc_read(struct tdb_context *tdb, tdb_off_t offset, tdb_len_t len); ++static int tdb_parse_data(struct tdb_context *tdb, TDB_DATA key, + tdb_off_t offset, tdb_len_t len, + int (*parser)(TDB_DATA key, TDB_DATA data, + void *private_data), + void *private_data); +-tdb_off_t tdb_find_lock_hash(struct tdb_context *tdb, TDB_DATA key, u32 hash, int locktype, ++static tdb_off_t tdb_find_lock_hash(struct tdb_context *tdb, TDB_DATA key, u32 hash, int locktype, + struct list_struct *rec); +-void tdb_io_init(struct tdb_context *tdb); +-int tdb_expand(struct tdb_context *tdb, tdb_off_t size); +-int tdb_rec_free_read(struct tdb_context *tdb, tdb_off_t off, ++static void tdb_io_init(struct tdb_context *tdb); ++static int tdb_expand(struct tdb_context *tdb, tdb_off_t size); ++static int tdb_rec_free_read(struct tdb_context *tdb, tdb_off_t off, + struct list_struct *rec); + + |