Lines Matching refs:filespec
25 char *filespec; in opendir() local
35 filespec = (char *)malloc(strlen(resolved_path_buff) + 2 + 1); in opendir()
36 if (filespec == NULL) { in opendir()
39 strcpy(filespec, resolved_path_buff); in opendir()
40 index = strlen(filespec) - 1; in opendir()
41 if (index >= 0 && (filespec[index] == '/' || in opendir()
42 (filespec[index] == '\\' && (index == 0 || !IsDBCSLeadByte(filespec[index-1]))))) in opendir()
43 filespec[index] = '\0'; in opendir()
44 strcat(filespec, "\\*"); in opendir()
48 free(filespec); in opendir()
54 if ((handle = FindFirstFile(filespec, &(dp->fileinfo))) == INVALID_HANDLE_VALUE) { in opendir()
60 free(filespec); in opendir()
66 free(filespec); in opendir()
140 char *filespec; in rewinddir() local
149 filespec = (char *)malloc(strlen(dp->dir) + 2 + 1); in rewinddir()
150 if (filespec == NULL) { in rewinddir()
154 strcpy(filespec, dp->dir); in rewinddir()
155 index = strlen(filespec) - 1; in rewinddir()
156 if (index >= 0 && (filespec[index] == '/' || in rewinddir()
157 (filespec[index] == '\\' && (index == 0 || !IsDBCSLeadByte(filespec[index-1]))))) in rewinddir()
158 filespec[index] = '\0'; in rewinddir()
159 strcat(filespec, "/*"); in rewinddir()
161 if ((handle = FindFirstFile(filespec, &(dp->fileinfo))) == INVALID_HANDLE_VALUE) { in rewinddir()
166 free(filespec); in rewinddir()