3 #include <msvcrt/errno.h>
5 #include <msvcrt/msvcrtdbg.h>
11 int _access( const char *_path, int _amode )
13 DWORD Attributes = GetFileAttributesA(_path);
14 DPRINT("_access('%s', %x)\n", _path, _amode);
16 if (Attributes == -1) {
20 if ((_amode & W_OK) == W_OK) {
21 if ((Attributes & FILE_ATTRIBUTE_READONLY) == FILE_ATTRIBUTE_READONLY) {
26 if ((_amode & D_OK) == D_OK) {
27 if ((Attributes & FILE_ATTRIBUTE_DIRECTORY) != FILE_ATTRIBUTE_DIRECTORY) {