Fix bug in open()/openmode()
Fix struct statbuf.

    Well, that was b0rked.