Only O_WRONLY is needed