mirror of
https://github.com/urbit/shrub.git
synced 2024-12-22 10:21:31 +03:00
removes u3_sist declarations
This commit is contained in:
parent
9cb3c797af
commit
03150a4bff
@ -1186,77 +1186,6 @@
|
||||
void
|
||||
u3_http_io_poll(void);
|
||||
|
||||
/** Disk persistence.
|
||||
**/
|
||||
/* u3_sist_boot(): restore or create pier from disk.
|
||||
*/
|
||||
void
|
||||
u3_sist_boot(void);
|
||||
|
||||
/* u3_sist_pack(): write a log entry to disk.
|
||||
**
|
||||
** XX Synchronous.
|
||||
**
|
||||
** typ_w is a mote describing the entry type: %ov for Arvo
|
||||
** logs, %ra for Raft events.
|
||||
**
|
||||
** Returns the entry's sequence number.
|
||||
*/
|
||||
c3_d
|
||||
u3_sist_pack(c3_w tem_w,
|
||||
c3_w typ_w,
|
||||
c3_w* bob_w,
|
||||
c3_w len_w);
|
||||
|
||||
/* u3_sist_put(): moronic key-value store put.
|
||||
**
|
||||
** u3_sist_put will do its best to associate the passed key with
|
||||
** the passed value in a way that will persist across process
|
||||
** restarts. It will probably do so by writing a file named for
|
||||
** the key with contents identical to the value. To rely on it
|
||||
** for anything heavy-duty would be a mistake.
|
||||
**
|
||||
** Why would we even have something like this? Because sometimes
|
||||
** we need to maintain files completely independently of the
|
||||
** noun state.
|
||||
*/
|
||||
void
|
||||
u3_sist_put(const c3_c* key_c, const c3_y* val_y, size_t siz_i);
|
||||
|
||||
/* u3_sist_nil(): moronic key-value store rm.
|
||||
**
|
||||
** Does its best to expunge all records on the given key. Has
|
||||
** no effect if the key doesn't exist.
|
||||
*/
|
||||
void
|
||||
u3_sist_nil(const c3_c* key_c);
|
||||
|
||||
/* u3_sist_has(): moronic key-value store existence check.
|
||||
**
|
||||
** Returns the byte length of the value previously stored via
|
||||
** u3_sist_put, or -1 if it couldn't find one.
|
||||
*/
|
||||
ssize_t
|
||||
u3_sist_has(const c3_c* key_c);
|
||||
|
||||
/* u3_sist_get(): moronic key-value store get.
|
||||
**
|
||||
** u3_sist_get is the mirror of u3_sist_put. It writes to val_y,
|
||||
** which had better be at least as big as the return value from
|
||||
** u3_sist_has, the value that you previously put.
|
||||
**
|
||||
** Needless to say, u3_sist_get crashes if it can't find your
|
||||
** value.
|
||||
*/
|
||||
void
|
||||
u3_sist_get(const c3_c* key_c, c3_y* val_y);
|
||||
|
||||
/* u3_sist_rand(): fill 8 words (32 bytes) with high-quality entropy.
|
||||
*/
|
||||
void
|
||||
u3_sist_rand(c3_w* rad_w);
|
||||
|
||||
|
||||
/** New timer system.
|
||||
**/
|
||||
/* u3_behn_io_init(): initialize time timer.
|
||||
|
Loading…
Reference in New Issue
Block a user