stdlib: Implement read() and readlines() functions.