> On 27 Oct 2021, at 17:54, LIU Hao <lh_mo...@126.com> wrote:
> 
> ... How about defining `X_OK` as zero, so it should have no effect at all?

In the GCC & binutils code there are also calls to `access()` with other modes, 
like R_OK and possibly W_OK.

I don't think that this is a good idea; the user code should either explicitly 
check if running on MINGW and avoid sending modes, or the user should enable 
__USE_MINGW_ACCESS and thus switch to the separate __mingw_access() function.


Regards,

Liviu



_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to