stdlib: add new IO functions