#include "sdb.h"
#include <fcntl.h>
Go to the source code of this file.
◆ sdb_journal_clear()
Definition at line 96 of file journal.c.
97 if (
s->journal != -1) {
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence ftruncate
References ftruncate, and s.
Referenced by sdb_config(), and sdb_sync().
◆ sdb_journal_close()
◆ sdb_journal_filename()
static const char* sdb_journal_filename |
( |
Sdb * |
s | ) |
|
|
static |
◆ sdb_journal_load()
Definition at line 38 of file journal.c.
39 int rr, sz,
fd, changes = 0;
64 ptr = strchr(cur,
'\n');
69 eq = strchr(cur,
'=');
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep lseek
RZ_API void Ht_() free(HtName_(Ht) *ht)
void * malloc(size_t size)
RZ_API int sdb_set(Sdb *s, const char *key, const char *val, ut32 cas)
static const z80_opcode fd[]
int read(izstream &zs, T *x, Items items)
References eq, fd, free(), lseek, malloc(), NULL, read(), s, sdb_set(), SEEK_END, SEEK_SET, and cmd_descs_generate::str.
Referenced by sdb_config().
◆ sdb_journal_log()
Definition at line 81 of file journal.c.
82 if (
s->journal == -1) {
90 #if HAVE_HEADER_SYS_MMAN_H
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len key
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg fsync
References fsync, key, len, s, sdb_fmt(), cmd_descs_generate::str, val, and write.
Referenced by sdb_set_internal().
◆ sdb_journal_open()
◆ sdb_journal_unlink()