More stuff working, io still fails

It's kind of amazing how much work a simple
echo hi > x
involves on Unix. Just amazing. Had to add some kind of fcntl support.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>