Re: [Mingw-w64-public] _access and predefined modes

2021-08-12 Thread LIU Hao
在 2021-08-11 02:44, Vincent Torri 写道: and X_OK ? In UCRT it's not valid and makes `access()` fail with `EINVAL`. There is a check for invalid mode bits in 'waccess.cpp' from UCRT sources. MSDN is not lying. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signat

Re: [Mingw-w64-public] _access and predefined modes

2021-08-10 Thread Vincent Torri
On Tue, Aug 10, 2021 at 5:56 PM Guy Helmer wrote: > > > On Aug 10, 2021, at 9:28 AM, Vincent Torri wrote: > > > > Hello > > > > according to MSDN (see > > https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/access-waccess?view=msvc-160) > > the valid modes of _access are 0, é, 4 and

Re: [Mingw-w64-public] _access and predefined modes

2021-08-10 Thread Guy Helmer
> On Aug 10, 2021, at 9:28 AM, Vincent Torri wrote: > > Hello > > according to MSDN (see > https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/access-waccess?view=msvc-160) > the valid modes of _access are 0, é, 4 and 6. > > But in io.h, we have : > > #defineF_OK0/* Ch

[Mingw-w64-public] _access and predefined modes

2021-08-10 Thread Vincent Torri
Hello according to MSDN (see https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/access-waccess?view=msvc-160) the valid modes of _access are 0, é, 4 and 6. But in io.h, we have : #defineF_OK0/* Check for file existence */ #defineX_OK1/* Check for execute per