1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/libsystypes/idl/mapped_file.idl Wed Aug 25 01:28:08 2021 +0200
1.3 @@ -0,0 +1,13 @@
1.4 +#include <systypes/base.h> /* offset_t */
1.5 +
1.6 +/* An interface providing operations specific to mapped files. */
1.7 +
1.8 +interface MappedFile
1.9 +{
1.10 + /* Memory-map a file for the given file position and length, obtaining the
1.11 + limits of the mapped region and the size of the file. */
1.12 +
1.13 + [opcode(7)] void mmap(in offset_t position, in offset_t length,
1.14 + out offset_t start_pos, out offset_t end_pos,
1.15 + out offset_t size);
1.16 +};