5 months ago | Paul Boddie | file changeset files shortlog | Made various definitions static. |
paul@181 | 1 | #include <systypes/base.h> /* offset_t */ |
paul@181 | 2 | |
paul@181 | 3 | /* An interface providing operations common to both unmapped and mapped files. |
paul@181 | 4 | Other interfaces are used to specialise different kinds of files. */ |
paul@181 | 5 | |
paul@181 | 6 | interface File |
paul@181 | 7 | { |
paul@181 | 8 | /* Resize the file. */ |
paul@181 | 9 | |
paul@181 | 10 | [opcode(21)] void resize(inout offset_t size); |
paul@475 | 11 | |
paul@475 | 12 | /* Obtain a new reference to the given file. */ |
paul@475 | 13 | |
paul@475 | 14 | [opcode(27)] void reopen(in flags_t flags, out offset_t size, out cap file, |
paul@475 | 15 | out object_flags_t object_flags); |
paul@181 | 16 | }; |