2021-09-04 | Paul Boddie | raw annotate files changeset graph | Moved pipe region initialisation to the first access made by the client library. This avoids memory being mapped straight away for pipe regions which is undesirable when creating pipe endpoints for propagation to other tasks. Updated the host directory listing functionality to use the default blocking I/O regime. |
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, obtaining the 8 limits of the mapped region and the size of the file. */ 9 10 [opcode(7)] void mmap(in offset_t position, in offset_t length, 11 out offset_t start_pos, out offset_t end_pos, 12 out offset_t size); 13 };