add basic posix I/O functions