cosmopolitan/libc/runtime/ezmap.internal.h

18 lines
453 B
C
Raw Normal View History

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