core::rt: Declare large parts of the I/O API