在 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
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
> 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
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