37 size_t (*write)(
io_t *io,
const void *buf,
size_t count);
MOSAPI void(1, 2) fatal_abort(const char *fmt
bool io_mmap_perm_check(io_t *io, vm_flags flags, bool is_private)
size_t io_pread(io_t *io, void *buf, size_t count, off_t offset)
bool io_munmap(io_t *io, vmap_t *vmap, bool *unmapped)
void io_init(io_t *io, io_type_t type, io_flags_t flags, const io_op_t *ops)
bool io_mmap(io_t *io, vmap_t *vmap, off_t offset)
__nodiscard bool io_valid(const io_t *io)
off_t io_seek(io_t *io, off_t offset, io_seek_whence_t whence)
io_t * io_unref(io_t *io)
size_t io_write(io_t *io, const void *buf, size_t count)
size_t io_read(io_t *io, void *buf, size_t count)
void io_get_name(const io_t *io, char *buf, size_t size)
bool munmap(ptr_t addr, size_t size)
Unmap a page from the current process's address space.