2021-08-25 | Paul Boddie | file changeset files shortlog | Introduced various external packages into this distribution. Some small changes were made to Control files upon discovering build issues, and libext2fs/lib/Makefile was adjusted to enforce build ordering. |
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 | /* Obtain a file metadata object. */ |
paul@181 | 9 | |
paul@181 | 10 | [opcode(11)] void fstat(out offset_t size, out cap statcap); |
paul@181 | 11 | |
paul@181 | 12 | /* Resize the file. */ |
paul@181 | 13 | |
paul@181 | 14 | [opcode(21)] void resize(inout offset_t size); |
paul@181 | 15 | }; |