(*) O_APPEND is *not* functional yet, this is just a hack for write-only streams. Currently O_APPEND does not reposition the cursor at the end of the file before every write.