libio: C version of the input/output library