2022-05-20 | Paul Boddie | raw annotate files changeset graph | Introduced tentative support for masked file regions. | mmap-region-flags |
1 #include <systypes/base.h> /* offset_t */ 2 3 /* An interface providing operations specific to mapped files. */ 4 5 interface MappedFile 6 { 7 /* Memory-map a file for the given file position and length, masking out of 8 range regions if indicated, obtaining the limits of the mapped region and 9 the size of the file. */ 10 11 [opcode(7)] void mmap(in offset_t position, in offset_t length, 12 in int masked, 13 out offset_t start_pos, out offset_t end_pos, 14 out offset_t size); 15 };