ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
mmap.h File Reference

Go to the source code of this file.

Data Structures

struct  platform_mmap
 For platform mmap, this is the live record that ties addr, size, fd together. The owning code creates it, updates it while work is active, and releases its handles and pointed-to storage before freeing the record. More...

Typedefs

typedef struct platform_mmap platform_mmap_t
 For platform mmap, this is the live record that ties addr, size, fd together. The owning code creates it, updates it while work is active, and releases its handles and pointed-to storage before freeing the record.

Functions

void platform_mmap_init (platform_mmap_t *mapping)
 Initialize a platform_mmap_t structure.
asciichat_error_t platform_mmap_open (const char *name, const char *path, size_t size, platform_mmap_t *out)
 Memory-map a file for read/write access.
void platform_mmap_close (platform_mmap_t *mapping)
 Unmap and close a memory-mapped file.
void platform_mmap_sync (platform_mmap_t *mapping, bool async)
 Flush memory-mapped changes to disk.
bool platform_mmap_is_valid (const platform_mmap_t *mapping)
 Check if a mapping is currently valid.