Minor C I/O changes

* Rename file to more correctly indicate its usage.
* Make sure read-only open really is read-only.