Cthulhu  0.2.10
Cthulhu compiler collection
file.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: LGPL-3.0-only
2 #pragma once
3 
4 // for sizeof(io_t)
5 #include "io/impl.h" // IWYU pragma: export
6 
7 #include "os/os.h"
8 
10 
13 
16 typedef struct io_file_impl_t
17 {
20 
24 
25 #define IO_FILE_SIZE (sizeof(io_file_impl_t) + sizeof(io_t))
26 
28 
#define CT_BEGIN_API
Definition: compiler.h:129
#define CT_END_API
Definition: compiler.h:130
a file descriptor
Definition: file.h:17
os_mapping_t mapping
memory mapping
Definition: file.h:22
os_file_t file
native file descriptor
Definition: file.h:19
a file handle
Definition: os.h:40
memory mapping handle
Definition: posix.h:18