| 1 | /** |
| 2 | * This file has no copyright assigned and is placed in the Public Domain. |
| 3 | * This file is part of the mingw-w64 runtime package. |
| 4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package. |
| 5 | */ |
| 6 | |
| 7 | #include <io.h> |
| 8 | |
| 9 | int __cdecl __mingw_access(const char *fname, int mode); |
| 10 | |
| 11 | int __cdecl access(const char *fname, int mode) |
| 12 | { |
| 13 | /* On UCRT, unconditionally forward access to __mingw_access. UCRT's |
| 14 | * access() function return an error if passed the X_OK constant, |
| 15 | * while msvcrt.dll's access() doesn't. (It's reported that msvcrt.dll's |
| 16 | * access() also returned errors on X_OK in the version shipped in Vista, |
| 17 | * but in recent tests it's no longer the case.) */ |
| 18 | return __mingw_access(fname, mode); |
| 19 | } |