3 #include <msvcrt/errno.h>
5 #include <msvcrt/msvcrtdbg.h>
8 int _access( const char *_path, int _amode )
10 DWORD Attributes = GetFileAttributesA(_path);
11 DPRINT("_access('%s', %x)\n", _path, _amode);
13 if (Attributes == -1) {
17 if ((_amode & W_OK) == W_OK) {
18 if ((Attributes & FILE_ATTRIBUTE_READONLY) == FILE_ATTRIBUTE_READONLY) {
23 if ((_amode & D_OK) == D_OK) {
24 if ((Attributes & FILE_ATTRIBUTE_DIRECTORY) != FILE_ATTRIBUTE_DIRECTORY) {