xv65: c runtime: open, close, read, write