2020-09-03 12:44:37 +00:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_RUNTIME_DIRECTMAP_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_RUNTIME_DIRECTMAP_H_
|
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
|
|
|
struct DirectMap {
|
|
|
|
void *addr;
|
|
|
|
int64_t maphandle;
|
|
|
|
};
|
|
|
|
|
2021-02-24 04:23:19 +00:00
|
|
|
struct DirectMap sys_mmap(void *, size_t, int, int, int, int64_t);
|
2021-02-05 02:24:33 +00:00
|
|
|
struct DirectMap sys_mmap_nt(void *, size_t, int, int, int64_t, int64_t);
|
2021-02-24 04:23:19 +00:00
|
|
|
struct DirectMap sys_mmap_metal(void *, size_t, int, int, int, int64_t);
|
|
|
|
int sys_munmap_metal(void *, size_t);
|
2020-09-03 12:44:37 +00:00
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_RUNTIME_DIRECTMAP_H_ */
|