summaryrefslogtreecommitdiff
path: root/vere/pkg/noun/urth.h
blob: a11b9aa824abed9cbc1d34c625b9570aef1bbdbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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 */