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