/third_party/ejdb/src/jbl/ |
D | jbl.h | 192 typedef iwrc (*jbl_json_printer)(const char *data, int size, char ch, int count, void *op); 201 IW_EXPORT iwrc jbl_create_empty_object(JBL *jblp); 210 IW_EXPORT iwrc jbl_create_empty_array(JBL *jblp); 241 IW_EXPORT iwrc jbl_set_int64(JBL jbl, const char *key, int64_t v); 256 IW_EXPORT iwrc jbl_set_f64(JBL jbl, const char *key, double v); 271 IW_EXPORT iwrc jbl_set_string(JBL jbl, const char *key, const char *v); 273 IW_EXPORT iwrc jbl_set_string_printf(JBL jbl, const char *key, const char *format, ...); 288 IW_EXPORT iwrc jbl_set_bool(JBL jbl, const char *key, bool v); 304 IW_EXPORT iwrc jbl_set_null(JBL jbl, const char *key); 306 IW_EXPORT iwrc jbl_set_empty_array(JBL jbl, const char *key); [all …]
|
D | jbl_internal.h | 71 iwrc jbl_from_buf_keep_onstack(JBL jbl, void *buf, size_t bufsz); 72 iwrc jbl_from_buf_keep_onstack2(JBL jbl, void *buf); 74 iwrc _jbl_write_double(double num, jbl_json_printer pt, void *op); 75 iwrc _jbl_write_int(int64_t num, jbl_json_printer pt, void *op); 76 iwrc _jbl_write_string(const char *str, int len, jbl_json_printer pt, void *op, jbl_print_flags_t p… 77 iwrc _jbl_node_from_binn(const binn *bn, JBL_NODE *node, bool clone_strings, IWPOOL *pool); 78 iwrc _jbl_binn_from_node(binn *res, JBL_NODE node); 79 iwrc _jbl_from_node(JBL jbl, JBL_NODE node); 81 int _jbl_compare_nodes(JBL_NODE n1, JBL_NODE n2, iwrc *rcp); 83 …isitor_cmd_t (*JBL_VISITOR)(int lvl, binn *bv, const char *key, int idx, JBL_VCTX *vctx, iwrc *rc); [all …]
|
D | jbl.c | 20 iwrc jbl_create_empty_object(JBL *jblp) { in jbl_create_empty_object() 29 iwrc jbl_create_empty_array(JBL *jblp) { in jbl_create_empty_array() 46 iwrc jbl_set_int64(JBL jbl, const char *key, int64_t v) { in jbl_set_int64() 70 iwrc jbl_set_f64(JBL jbl, const char *key, double v) { in jbl_set_f64() 94 iwrc jbl_set_string(JBL jbl, const char *key, const char *v) { in jbl_set_string() 118 iwrc jbl_set_string_printf(JBL jbl, const char *key, const char *format, ...) { in jbl_set_string_printf() 119 iwrc rc = 0; in jbl_set_string_printf() 138 iwrc jbl_from_json_printf_va(JBL *jblp, const char *format, va_list va) { in jbl_from_json_printf_va() 139 iwrc rc = 0; in jbl_from_json_printf_va() 156 iwrc jbl_from_json_printf(JBL *jblp, const char *format, ...) { in jbl_from_json_printf() [all …]
|
/third_party/iowow/src/kv/ |
D | iwkv.h | 139 iwrc(*wal_lock_interceptor)(bool, void *); 202 IW_EXPORT WUR iwrc iwkv_init(void); 217 IW_EXPORT WUR iwrc iwkv_open(const IWKV_OPTS *opts, IWKV *iwkvp); 236 IW_EXPORT WUR iwrc iwkv_db(IWKV iwkv, uint32_t dbid, iwdb_flags_t flags, IWDB *dbp); 246 IW_EXPORT WUR iwrc iwkv_new_db(IWKV iwkv, iwdb_flags_t dbflg, uint32_t *dbidp, IWDB *dbp); 255 IW_EXPORT iwrc iwkv_db_cache_release(IWDB db); 262 IW_EXPORT iwrc iwkv_db_destroy(IWDB *dbp); 273 IW_EXPORT iwrc iwkv_sync(IWKV iwkv, iwfs_sync_flags flags); 282 IW_EXPORT iwrc iwkv_close(IWKV *iwkvp); 299 IW_EXPORT iwrc iwkv_put(IWDB db, const IWKV_val *key, const IWKV_val *val, iwkv_opflags opflags); [all …]
|
D | iwal.c | 42 iwrc(*wal_lock_interceptor)(bool, void *); 60 static iwrc _checkpoint_exl(IWAL *wal, uint64_t *tsp, bool no_fixpoint); 62 IW_INLINE iwrc _lock(IWAL *wal) { in _lock() 67 IW_INLINE iwrc _unlock(IWAL *wal) { in _unlock() 72 static iwrc _excl_lock(IWAL *wal) { in _excl_lock() 73 iwrc rc = 0; in _excl_lock() 95 static iwrc _excl_unlock(IWAL *wal) { in _excl_unlock() 96 iwrc rc = _unlock(wal); in _excl_unlock() 104 static iwrc _init_locks(IWAL *wal) { in _init_locks() 137 static iwrc _flush_wl(IWAL *wal, bool sync) { in _flush_wl() [all …]
|
/third_party/ejdb/src/ |
D | ejdb2.h | 41 IW_EXPORT WUR iwrc ejdb_init(void); 168 typedef iwrc (*EJDB_EXEC_VISITOR)(struct _EJDB_EXEC *ctx, EJDB_DOC doc, int64_t *step); 196 IW_EXPORT WUR iwrc ejdb_open(const EJDB_OPTS *opts, EJDB *ejdbp); 205 IW_EXPORT iwrc ejdb_close(EJDB *ejdbp); 244 IW_EXPORT WUR iwrc ejdb_exec(EJDB_EXEC *ux); 262 IW_EXPORT WUR iwrc ejdb_list(EJDB db, JQL q, EJDB_DOC *first, int64_t limit, IWPOOL *pool); 273 IW_EXPORT WUR iwrc ejdb_count(EJDB db, JQL q, int64_t *count, int64_t limit); 286 IW_EXPORT WUR iwrc ejdb_count2(EJDB db, const char *coll, const char *q, int64_t *count, int64_t li… 295 IW_EXPORT WUR iwrc ejdb_update(EJDB db, JQL q); 306 IW_EXPORT WUR iwrc ejdb_update2(EJDB db, const char *coll, const char *q); [all …]
|
D | ejdb2_internal.h | 148 typedef iwrc (*JB_SCAN_CONSUMER)( 150 int64_t *step, bool *matched, iwrc err); 156 iwrc rc; /**< RC code used for in `_jb_do_sorting` */ 184 iwrc (*scanner)(struct _JBEXEC *ctx, JB_SCAN_CONSUMER consumer); 212 iwrc jbi_consumer(struct _JBEXEC *ctx, IWKV_cursor cur, int64_t id, int64_t *step, bool *matched, i… 213 iwrc jbi_sorter_consumer(struct _JBEXEC *ctx, IWKV_cursor cur, int64_t id, int64_t *step, bool *mat… 214 iwrc jbi_full_scanner(struct _JBEXEC *ctx, JB_SCAN_CONSUMER consumer); 215 iwrc jbi_selection(JBEXEC *ctx); 216 iwrc jbi_pk_scanner(struct _JBEXEC *ctx, JB_SCAN_CONSUMER consumer); 217 iwrc jbi_uniq_scanner(struct _JBEXEC *ctx, JB_SCAN_CONSUMER consumer); [all …]
|
D | ejdb2.c | 5 static iwrc _jb_put_new_lw(JBCOLL jbc, JBL jbl, int64_t *id); 9 IW_INLINE iwrc _jb_meta_nrecs_removedb(EJDB db, uint32_t dbid) { in _jb_meta_nrecs_removedb() 18 IW_INLINE iwrc _jb_meta_nrecs_update(EJDB db, uint32_t dbid, int64_t delta) { in _jb_meta_nrecs_update() 72 static iwrc _jb_coll_load_index_lr(JBCOLL jbc, IWKV_val *mval) { in _jb_coll_load_index_lr() 81 iwrc rc = jbl_from_buf_keep_onstack(&imeta, mval->data, mval->size); in _jb_coll_load_index_lr() 109 static iwrc _jb_coll_load_indexes_lr(JBCOLL jbc) { in _jb_coll_load_indexes_lr() 110 iwrc rc = 0; in _jb_coll_load_indexes_lr() 152 static iwrc _jb_coll_load_meta_lr(JBCOLL jbc) { in _jb_coll_load_meta_lr() 156 iwrc rc = jbl_at(jbm, "/name", &jbv); in _jb_coll_load_meta_lr() 196 static iwrc _jb_coll_init(JBCOLL jbc, IWKV_val *meta) { in _jb_coll_init() [all …]
|
/third_party/iowow/src/platform/ |
D | iwp.h | 107 IW_EXPORT iwrc iwp_clock_get_time(int clock_id, struct timespec* t); 115 IW_EXPORT iwrc iwp_current_time_ms(uint64_t *time, bool monotonic); 135 IW_EXPORT iwrc iwp_fstat(const char *path, IWP_FILE_STAT *stat); 137 IW_EXPORT iwrc iwp_fstath(HANDLE fh, IWP_FILE_STAT *stat); 146 IW_EXPORT iwrc iwp_flock(HANDLE fh, iwp_lockmode lmode); 153 IW_EXPORT iwrc iwp_unlock(HANDLE fh); 159 IW_EXPORT iwrc iwp_closefh(HANDLE fh); 172 IW_EXPORT iwrc iwp_pread(HANDLE fh, off_t off, void *buf, size_t siz, size_t *sp); 186 IW_EXPORT iwrc iwp_pwrite(HANDLE fh, off_t off, const void *buf, size_t siz, size_t *sp); 188 IW_EXPORT iwrc iwp_write(HANDLE fh, const void *buf, size_t count); [all …]
|
/third_party/iowow/src/fs/ |
D | iwexfile.h | 179 iwrc(*ensure_size)(struct IWFS_EXT *f, off_t off); 184 iwrc(*truncate)(struct IWFS_EXT *f, off_t off); 186 iwrc(*truncate_unsafe)(struct IWFS_EXT *f, off_t off); 214 iwrc(*add_mmap)(struct IWFS_EXT *f, off_t off, size_t len, iwfs_ext_mmap_opts_t opts); 216 iwrc(*add_mmap_unsafe)(struct IWFS_EXT *f, off_t off, size_t len, iwfs_ext_mmap_opts_t opts); 235 iwrc(*acquire_mmap)(struct IWFS_EXT *f, off_t off, uint8_t **mm, size_t *sp); 240 iwrc(*probe_mmap)(struct IWFS_EXT *f, off_t off, uint8_t **mm, size_t *sp); 242 iwrc(*probe_mmap_unsafe)(struct IWFS_EXT *f, off_t off, uint8_t **mm, size_t *sp); 247 iwrc(*release_mmap)(struct IWFS_EXT *f); 259 iwrc(*remove_mmap)(struct IWFS_EXT *f, off_t off); [all …]
|
D | iwfsmfile.h | 217 iwrc(*allocate)(struct IWFS_FSM *f, off_t len, off_t *oaddr, off_t *olen, 236 iwrc(*reallocate)(struct IWFS_FSM *f, off_t nlen, off_t *oaddr, off_t *olen, 246 iwrc(*deallocate)(struct IWFS_FSM *f, off_t addr, off_t len); 253 iwrc(*check_allocation_status)(struct IWFS_FSM *f, off_t addr, off_t len, bool allocated); 266 iwrc(*writehdr)(struct IWFS_FSM *f, off_t off, const void *buf, off_t siz); 278 iwrc(*readhdr)(struct IWFS_FSM *f, off_t off, void *buf, off_t siz); 287 iwrc(*clear)(struct IWFS_FSM *f, iwfs_fsm_clrfalgs clrflags); 292 iwrc(*ensure_size)(struct IWFS_FSM *f, off_t size); 296 iwrc(*add_mmap)(struct IWFS_FSM *f, off_t off, size_t maxlen, iwfs_ext_mmap_opts_t opts); 300 iwrc(*remap_all)(struct IWFS_FSM *f); [all …]
|
D | iwexfile.c | 67 IW_INLINE iwrc _exfile_wlock(IWFS_EXT *f) { in _exfile_wlock() 79 IW_INLINE iwrc _exfile_rlock(IWFS_EXT *f) { in _exfile_rlock() 91 IW_INLINE iwrc _exfile_unlock(IWFS_EXT *f) { in _exfile_unlock() 103 IW_INLINE iwrc _exfile_unlock2(EXF *impl) { in _exfile_unlock2() 114 static iwrc _exfile_destroylocks(EXF *impl) { in _exfile_destroylocks() 123 static iwrc _exfile_initmmap_slot_lw(struct IWFS_EXT *f, MMAPSLOT *s) { in _exfile_initmmap_slot_lw() 159 iwrc rc = iwrc_set_errno(IW_ERROR_ERRNO, errno); in _exfile_initmmap_slot_lw() 167 static iwrc _exfile_initmmap_lw(struct IWFS_EXT *f) { in _exfile_initmmap_lw() 169 iwrc rc = 0; in _exfile_initmmap_lw() 183 static iwrc _exfile_truncate_lw(struct IWFS_EXT *f, off_t size) { in _exfile_truncate_lw() [all …]
|
D | iwdlsnr.h | 21 iwrc(*onopen)(struct IWDLSNR *self, const char *path, int mode); 26 iwrc(*onclosing)(struct IWDLSNR *self); 31 iwrc(*onset)(struct IWDLSNR *self, off_t off, uint8_t val, off_t len, int flags); 36 iwrc(*oncopy)(struct IWDLSNR *self, off_t off, off_t len, off_t noff, int flags); 41 iwrc(*onwrite)(struct IWDLSNR *self, off_t off, const void *buf, off_t len, int flags); 50 iwrc(*onresize)(struct IWDLSNR *self, off_t osize, off_t nsize, int flags, bool *handled); 55 iwrc(*onsynced)(struct IWDLSNR *self, int flags);
|
D | iwfile.h | 147 iwrc(*write)(struct IWFS_FILE *f, off_t off, const void *buf, size_t siz, size_t *sp); 159 iwrc(*read)(struct IWFS_FILE *f, off_t off, void *buf, size_t siz, size_t *sp); 165 iwrc(*close)(struct IWFS_FILE *f); 172 iwrc(*sync)(struct IWFS_FILE *f, iwfs_sync_flags flags); 182 iwrc(*state)(struct IWFS_FILE *f, IWFS_FILE_STATE *state); 191 iwrc(*copy)(struct IWFS_FILE *f, off_t off, size_t siz, off_t noff); 216 IW_EXPORT WUR iwrc iwfs_file_open(IWFS_FILE *f, const IWFS_FILE_OPTS *opts); 221 IW_EXPORT WUR iwrc iwfs_file_init(void);
|
D | iwfsmfile.c | 106 static iwrc _fsm_ensure_size_lw(FSM *impl, off_t size); 119 IW_INLINE iwrc _fsm_ctrl_wlock(FSM *impl) { in _fsm_ctrl_wlock() 124 IW_INLINE iwrc _fsm_ctrl_rlock(FSM *impl) { in _fsm_ctrl_rlock() 129 IW_INLINE iwrc _fsm_ctrl_unlock(FSM *impl) { in _fsm_ctrl_unlock() 134 IW_INLINE iwrc _fsm_bmptr(FSM *impl, uint64_t **bmptr) { in _fsm_bmptr() 139 iwrc rc = impl->pool.probe_mmap(&impl->pool, impl->mmap_all ? 0 : impl->bmoff, &mm, &sp); in _fsm_bmptr() 160 IW_INLINE WUR iwrc _fsm_init_fbk(FSMBK *bk, uint64_t offset_blk, uint64_t len_blk) { in _fsm_init_fbk() 176 IW_INLINE iwrc _fsm_del_fbk(FSM *impl, uint64_t offset_blk, uint64_t length_blk) { in _fsm_del_fbk() 179 iwrc rc = _fsm_init_fbk(&fbk, offset_blk, length_blk); in _fsm_del_fbk() 222 IW_INLINE iwrc _fsm_put_fbk(FSM *impl, uint64_t offset_blk, uint64_t length_blk) { in _fsm_put_fbk() [all …]
|
D | iwfile.c | 47 static iwrc _iwfs_write(struct IWFS_FILE *f, off_t off, const void *buf, size_t siz, size_t *sp) { in _iwfs_write() 56 iwrc rc = iwp_pwrite(impl->fh, off, buf, siz, sp); in _iwfs_write() 63 static iwrc _iwfs_read(struct IWFS_FILE *f, off_t off, void *buf, size_t siz, size_t *sp) { in _iwfs_read() 72 static iwrc _iwfs_close(struct IWFS_FILE *f) { in _iwfs_close() 76 iwrc rc = 0; in _iwfs_close() 97 static iwrc _iwfs_sync(struct IWFS_FILE *f, iwfs_sync_flags flags) { in _iwfs_sync() 99 iwrc rc = 0; in _iwfs_sync() 123 static iwrc _iwfs_state(struct IWFS_FILE *f, IWFS_FILE_STATE *state) { in _iwfs_state() 138 static iwrc _iwfs_copy(struct IWFS_FILE *f, off_t off, size_t siz, off_t noff) { in _iwfs_copy() 147 iwrc rc = iwp_copy_bytes(impl->fh, off, siz, noff); in _iwfs_copy() [all …]
|
/third_party/iowow/src/utils/ |
D | iwarr.h | 63 iwrc(*cmp)(const void *, const void *, void *, int *res)); 84 IW_EXPORT iwrc iwulist_init(IWULIST *list, size_t initial_length, size_t unit_size); 100 IW_EXPORT iwrc iwulist_clear(IWULIST *list); 132 IW_EXPORT void *iwulist_at(IWULIST *list, size_t index, iwrc *orc); 142 IW_EXPORT iwrc iwulist_insert(IWULIST *list, size_t index, const void *data); 150 IW_EXPORT iwrc iwulist_set(IWULIST *list, size_t index, const void *data); 158 IW_EXPORT iwrc iwulist_remove(IWULIST *list, size_t index); 165 IW_EXPORT iwrc iwulist_push(IWULIST *list, const void *data); 170 IW_EXPORT iwrc iwulist_pop(IWULIST *list); 175 IW_EXPORT iwrc iwulist_unshift(IWULIST *list, const void *data); [all …]
|
D | iwstree.h | 52 typedef bool (*IWSTREE_VISITOR)(void *key, void *val, void *op, iwrc *rcp); 86 IW_EXPORT iwrc iwstree_put(IWSTREE *st, void *key, void *value); 88 IW_EXPORT iwrc iwstree_put_overwrite(IWSTREE *st, void *key, void *value); 90 IW_EXPORT iwrc iwstree_visit(IWSTREE *st, IWSTREE_VISITOR visitor, void *op); 92 IW_EXPORT iwrc iwstree_iter_init(IWSTREE *st, IWSTREE_ITER *iter); 96 IW_EXPORT iwrc iwstree_iter_next(IWSTREE_ITER *iter, void **key, void **val);
|
/third_party/ejdb/src/jql/ |
D | jql.h | 94 IW_EXPORT WUR iwrc jql_create(JQL *qptr, const char *coll, const char *query); 96 IW_EXPORT WUR iwrc jql_create2(JQL *qptr, const char *coll, const char *query, jql_create_mode_t mo… 106 IW_EXPORT WUR iwrc jql_set_json(JQL q, const char *placeholder, int index, JBL_NODE val); 108 IW_EXPORT WUR iwrc jql_set_json2( 112 IW_EXPORT WUR iwrc jql_set_json_jbl(JQL q, const char *placeholder, int index, JBL jbl); 114 IW_EXPORT WUR iwrc jql_set_i64(JQL q, const char *placeholder, int index, int64_t val); 116 IW_EXPORT WUR iwrc jql_set_f64(JQL q, const char *placeholder, int index, double val); 124 IW_EXPORT WUR iwrc jql_set_str(JQL q, const char *placeholder, int index, const char *val); 126 IW_EXPORT WUR iwrc jql_set_str2( 130 IW_EXPORT WUR iwrc jql_set_bool(JQL q, const char *placeholder, int index, bool val); [all …]
|
/third_party/iowow/src/log/ |
D | iwlog.h | 136 typedef iwrc(*IWLOG_FN)(FILE *out, locale_t locale, iwlog_lvl lvl, iwrc ecode, 157 IW_EXPORT iwrc iwrc_set_errno(iwrc rc, int errno_code); 165 IW_EXPORT uint32_t iwrc_strip_errno(iwrc *rc); 175 IW_EXPORT iwrc iwrc_set_werror(iwrc rc, uint32_t werror); 183 IW_EXPORT uint32_t iwrc_strip_werror(iwrc *rc); 191 IW_EXPORT void iwrc_strip_code(iwrc *rc); 221 IW_EXPORT const char *iwlog_ecode_explained(iwrc ecode); 229 IW_EXPORT iwrc iwlog_register_ecodefn(IWLOG_ECODE_FN fp); 240 IW_EXPORT iwrc iwlog(iwlog_lvl lvl, iwrc ecode, const char *file, int line, 243 IW_EXPORT void iwlog2(iwlog_lvl lvl, iwrc ecode, const char *file, int line, [all …]
|
D | iwlog.c | 57 static iwrc _default_logfn(FILE *out, locale_t locale, iwlog_lvl lvl, iwrc ecode, int errno_code, i… 71 iwrc iwlog(iwlog_lvl lvl, iwrc ecode, const char *file, int line, const char *fmt, ...) { in iwlog() 73 iwrc rc; in iwlog() 80 void iwlog2(iwlog_lvl lvl, iwrc ecode, const char *file, int line, const char *fmt, ...) { in iwlog2() 87 iwrc iwlog_va(FILE *out, iwlog_lvl lvl, iwrc ecode, const char *file, int line, const char *fmt, va… in iwlog_va() 99 iwrc rc = iwp_current_time_ms(&ts, false); in iwlog_va() 117 iwrc iwrc_set_errno(iwrc rc, int errno_code) { in iwrc_set_errno() 129 uint32_t iwrc_strip_errno(iwrc *rc) { in iwrc_strip_errno() 140 iwrc iwrc_set_werror(iwrc rc, uint32_t werror) { in iwrc_set_werror() 152 uint32_t iwrc_strip_werror(iwrc *rc) { in iwrc_strip_werror() [all …]
|
/third_party/iowow/src/platform/unix/ |
D | unix.c | 51 IW_EXPORT iwrc iwp_clock_get_time(int clock_id, struct timespec *t) { in iwp_clock_get_time() 69 iwrc iwp_current_time_ms(uint64_t *time, bool monotonic) { in iwp_current_time_ms() 72 iwrc rc = iwp_clock_get_time(monotonic ? CLOCK_MONOTONIC : CLOCK_REALTIME, &spec); in iwp_current_time_ms() 74 iwrc rc = iwp_clock_get_time(CLOCK_REALTIME, &spec); in iwp_current_time_ms() 84 static iwrc _iwp_fstat(const char *path, HANDLE fd, IWP_FILE_STAT *fs) { in _iwp_fstat() 86 iwrc rc = 0; in _iwp_fstat() 115 iwrc iwp_fstat(const char *path, IWP_FILE_STAT *fs) { in iwp_fstat() 119 iwrc iwp_fstath(HANDLE fh, IWP_FILE_STAT *fs) { in iwp_fstath() 123 iwrc iwp_flock(HANDLE fh, iwp_lockmode lmode) { in iwp_flock() 139 iwrc iwp_unlock(HANDLE fh) { in iwp_unlock() [all …]
|
/third_party/iowow/src/rdb/ |
D | iwrdb.c | 26 IW_INLINE iwrc _wlock(IWRDB db) { in _wlock() 31 IW_INLINE iwrc _rlock(IWRDB db) { in _rlock() 36 IW_INLINE iwrc _unlock(IWRDB db) { in _unlock() 41 static iwrc _initlocks(IWRDB db) { in _initlocks() 65 static iwrc _destroy_locks(IWRDB db) { in _destroy_locks() 66 iwrc rc = 0; in _destroy_locks() 79 static iwrc _flush_lw(IWRDB db) { in _flush_lw() 83 iwrc rc = iwp_write(db->fh, db->buf, db->bp); in _flush_lw() 90 static iwrc _append_lw(IWRDB db, const void *data, int len, uint64_t *oref) { in _append_lw() 91 iwrc rc = 0; in _append_lw() [all …]
|
D | iwrdb.h | 15 IW_EXPORT iwrc iwrdb_open(const char *path, iwrdb_oflags_t oflags, size_t bufsz, IWRDB *db); 17 IW_EXPORT iwrc iwrdb_sync(IWRDB db); 19 IW_EXPORT iwrc iwrdb_append(IWRDB db, const void *data, int len, uint64_t *oref); 21 IW_EXPORT iwrc iwrdb_patch(IWRDB db, uint64_t ref, off_t skip, const void *data, int len); 23 IW_EXPORT iwrc iwrdb_close(IWRDB *db); 25 IW_EXPORT iwrc iwrdb_read(IWRDB db, uint64_t ref, off_t skip, void *buf, int len, size_t *sp);
|
/third_party/iowow/src/platform/win32/ |
D | win32.c | 36 iwrc iwp_clock_get_time(int clock_id, struct timespec* spec) { in iwp_clock_get_time() 44 iwrc iwp_current_time_ms(uint64_t *time, bool monotonic) { in iwp_current_time_ms() 51 iwrc iwp_fsync(HANDLE h) { in iwp_fsync() 61 iwrc iwp_fdatasync(HANDLE fh) { in iwp_fdatasync() 83 iwrc iwp_ftruncate(HANDLE fh, off_t len) { in iwp_ftruncate() 95 iwrc iwp_fallocate(HANDLE fh, off_t len) { in iwp_fallocate() 99 iwrc iwp_sleep(uint64_t ms) { in iwp_sleep() 100 iwrc rc = 0; in iwp_sleep() 110 iwrc iwp_fstat(const char *path, IWP_FILE_STAT *fs) { in iwp_fstat() 130 iwrc iwp_fstath(HANDLE fh, IWP_FILE_STAT *fs) { in iwp_fstath() [all …]
|