From fcedfddf00b3f994e4f4e40332ac7fc192c63244 Mon Sep 17 00:00:00 2001 From: polwex Date: Sun, 5 Oct 2025 21:56:51 +0700 Subject: claude is gud --- vere/pkg/noun/urth.h | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 vere/pkg/noun/urth.h (limited to 'vere/pkg/noun/urth.h') diff --git a/vere/pkg/noun/urth.h b/vere/pkg/noun/urth.h new file mode 100644 index 0000000..a11b9aa --- /dev/null +++ b/vere/pkg/noun/urth.h @@ -0,0 +1,49 @@ +/// @file + +#ifndef U3_URTH_H +#define U3_URTH_H + +#include "c3/c3.h" + + /** Functions. + **/ + /* u3u_meld(): globally deduplicate memory, returns u3a_open delta. + */ + c3_w + u3u_meld(void) __attribute__ ((deprecated)); + + /* u3u_melt(): globally deduplicate memory and pack in-place. + */ + c3_w + u3u_melt(void) __attribute__ ((deprecated)); + + /* u3u_cram(): globably deduplicate memory, and write a rock to disk. + */ + c3_o + u3u_cram(c3_c* dir_c, c3_d eve_d); + /* u3u_uncram(): restore persistent state from a rock. + */ + c3_o + u3u_uncram(c3_c* dir_c, c3_d eve_d); + + /* u3u_mmap_read(): open and mmap the file at [pat_c] for reading. + */ + c3_o + u3u_mmap_read(c3_c* cap_c, c3_c* pat_c, c3_d* out_d, c3_y** out_y); + + /* u3u_mmap(): open/create file-backed mmap at [pat_c] for read/write. + */ + c3_o + u3u_mmap(c3_c* cap_c, c3_c* pat_c, c3_d len_d, c3_y** out_y); + + /* u3u_mmap_save(): sync file-backed mmap. + */ + c3_o + u3u_mmap_save(c3_c* cap_c, c3_c* pat_c, c3_d len_d, c3_y* byt_y); + + /* u3u_munmap(): unmap the region at [byt_y]. + */ + c3_o + u3u_munmap(c3_d len_d, c3_y* byt_y); + +#endif /* ifndef U3_URTH_H */ -- cgit v1.2.3