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()
53 if ((handle = FindFirstFile(filespec, &(dp->fileinfo))) == INVALID_HANDLE_VALUE) { in opendir()
59 free(filespec); in opendir()
65 free(filespec); in opendir()
139 char *filespec; in rewinddir() local
148 filespec = (char *)malloc(strlen(dp->dir) + 2 + 1); in rewinddir()
149 if (filespec == NULL) { in rewinddir()
153 strcpy(filespec, dp->dir); in rewinddir()
154 index = strlen(filespec) - 1; in rewinddir()
155 if (index >= 0 && (filespec[index] == '/' || in rewinddir()
156 (filespec[index] == '\\' && (index == 0 || !IsDBCSLeadByte(filespec[index-1]))))) in rewinddir()
157 filespec[index] = '\0'; in rewinddir()
158 strcat(filespec, "/*"); in rewinddir()
160 if ((handle = FindFirstFile(filespec, &(dp->fileinfo))) == INVALID_HANDLE_VALUE) { in rewinddir()
165 free(filespec); in rewinddir()