Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_userconf.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <rz_util/rz_sys.h>
#include "sdb.h"
Go to the source code of this file.
Functions | |
RZ_API const char * | sdb_lock_file (const char *f) |
RZ_API bool | sdb_lock (const char *s) |
RZ_API int | sdb_lock_wait (const char *s) |
RZ_API void | sdb_unlock (const char *s) |
Definition at line 29 of file lock.c.
References close, fd, O_CREAT, O_EXCL, O_TRUNC, O_WRONLY, pid, rz_sys_getpid(), s, sdb_itoa(), SDB_MODE, and write.
Referenced by sdb_file(), sdb_lock_wait(), and sdb_new().
Definition at line 14 of file lock.c.
References f, len, memcpy(), and NULL.
Referenced by sdb_file(), sdb_fini(), and sdb_new().
Definition at line 50 of file lock.c.
References rz_sys_sleep(), s, and sdb_lock().
Referenced by sdb_new().
Definition at line 60 of file lock.c.
Referenced by sdb_file(), and sdb_fini().