The O_APPEND flag is currently ignored by the Win32 implementation of Unix.openfile. The MSDN page for CreateFile suggests a cheap way to implement the O_APPEND behavior. Consider updating otherlibs/win32unix/open.c accordingly.