7 weeks ago | Paul Boddie | raw annotate files changeset graph | Added the retention of the current data position in pipe endpoints, allowing endpoints to be transferred to other programs and initialised appropriately. Renamed the populated_size parameter in the flush operation to indicate that a more general position is being sent, this being a populated size in a writing context and the current reading position in a reading context. |
1 #include <systypes/base.h> /* offset_t */ 2 3 /* An interface providing a flush operation for files and pipes. */ 4 5 interface Flush 6 { 7 /* Flush data and update the size, if appropriate. When writing, the position 8 indicates the populated size of the object; when reading, the position 9 indicates the point from which data is being consumed by a client. */ 10 11 [opcode(5)] void flush(in offset_t position, out offset_t size); 12 };