> On Aug 10, 2021, at 9:28 AM, Vincent Torri <[email protected]> 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 :
> 
> #define    F_OK    0    /* Check for file existence */
> #define    X_OK    1    /* Check for execute permission. */
> #define    W_OK    2    /* Check for write permission */
> #define    R_OK    4    /* Check for read permission */

Both the webpage and this list are correct. Look closely, e.g. at this line:
06 -    Read and write

W_OK | R_OK == 06

Guy
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to