2020-06-15 14:18:57 +00:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_EZMAP_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_EZMAP_H_
|
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
|
|
|
struct MappedFile {
|
2020-08-25 11:23:25 +00:00
|
|
|
int fd;
|
2020-06-15 14:18:57 +00:00
|
|
|
void *addr;
|
|
|
|
size_t size;
|
|
|
|
};
|
|
|
|
|
2020-11-25 16:19:00 +00:00
|
|
|
int MapFileRead(const char *, struct MappedFile *) hidden;
|
|
|
|
int UnmapFile(struct MappedFile *) hidden;
|
2020-06-15 14:18:57 +00:00
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_EZMAP_H_ */
|