Lines Matching refs:dir
33 DIR *dir = 0; in opendir() local
40 …if ((dir = (DIR *)loader_alloc(pAllocator, sizeof *dir, VK_SYSTEM_ALLOCATION_SCOPE_COMMAND)) != 0 … in opendir()
41 …(dir->name = (char *)loader_alloc(pAllocator, base_length + strlen(all) + 1, VK_SYSTEM_ALLOCATION_… in opendir()
43 strcat(strcpy(dir->name, name), all); in opendir()
45 if ((dir->handle = (handle_type)_findfirst(dir->name, &dir->info)) != -1) { in opendir()
46 dir->result.d_name = 0; in opendir()
49 loader_free(pAllocator, dir->name); in opendir()
50 loader_free(pAllocator, dir); in opendir()
51 dir = 0; in opendir()
55 loader_free(pAllocator, dir); in opendir()
56 dir = 0; in opendir()
63 return dir; in opendir()
66 int closedir(const VkAllocationCallbacks *pAllocator, DIR *dir) { in closedir() argument
69 if (dir) { in closedir()
70 if (dir->handle != -1) { in closedir()
71 result = _findclose(dir->handle); in closedir()
74 loader_free(pAllocator, dir->name); in closedir()
75 loader_free(pAllocator, dir); in closedir()
86 struct dirent *readdir(DIR *dir) { in readdir() argument
89 if (dir && dir->handle != -1) { in readdir()
90 if (!dir->result.d_name || _findnext(dir->handle, &dir->info) != -1) { in readdir()
91 result = &dir->result; in readdir()
92 result->d_name = dir->info.name; in readdir()
101 void rewinddir(DIR *dir) { in rewinddir() argument
102 if (dir && dir->handle != -1) { in rewinddir()
103 _findclose(dir->handle); in rewinddir()
104 dir->handle = (handle_type)_findfirst(dir->name, &dir->info); in rewinddir()
105 dir->result.d_name = 0; in rewinddir()