summaryrefslogtreecommitdiff
path: root/vere/pkg/noun/urth.h
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-10-05 21:56:51 +0700
committerpolwex <polwex@sortug.com>2025-10-05 21:56:51 +0700
commitfcedfddf00b3f994e4f4e40332ac7fc192c63244 (patch)
tree51d38e62c7bdfcc5f9a5e9435fe820c93cfc9a3d /vere/pkg/noun/urth.h
claude is gud
Diffstat (limited to 'vere/pkg/noun/urth.h')
-rw-r--r--vere/pkg/noun/urth.h49
1 files changed, 49 insertions, 0 deletions
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 */