在 2019/9/29 22:31, Christian Franke 写道:
> Calling open("foo", O_WRONLY|O_CREAT) without 3rd argument may
> (pseudo-)randomly set FILE_ATTRIBUTE_READONLY on the new file. With the
> attached patch, the attribute is always set in this case to show that
> something is wrong. A compile time warning is printed if possible.
>
> I'm not yet sure how to handle the _O_CREAT constant from fcntl.h:
> directly use 0x0100 or define _O_CREAT in io.h. The patch uses the latter.
>
> --
> Christian
>
>
>
Thanks, the patch looks good to me. I pushed it.-- Best regards, LH_Mouse
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
