39 attr = GetFileAttributes(dirname);
40 if (attr == INVALID_FILE_ATTRIBUTES)
45 if ((attr & FILE_ATTRIBUTE_DIRECTORY) != FILE_ATTRIBUTE_DIRECTORY)
69 d->
handle = INVALID_HANDLE_VALUE;
82 if (d->
handle == INVALID_HANDLE_VALUE)
85 if (d->
handle == INVALID_HANDLE_VALUE)
88 if (GetLastError() == ERROR_FILE_NOT_FOUND)
100 if (GetLastError() == ERROR_NO_MORE_FILES)
115 if ((
fd.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT) != 0 &&
116 (
fd.dwReserved0 == IO_REPARSE_TAG_MOUNT_POINT))
118 else if ((
fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0)
131 if (d->
handle != INVALID_HANDLE_VALUE)
132 ret = !FindClose(d->
handle);
struct dirent * readdir(DIR *d)
DIR * opendir(const char *dirname)
static int fd(const char *x, int i)
void _dosmaperr(unsigned long)