22 #include <epicsExport.h>
42 size_t base_length = strlen(name);
44 strchr(
"/\\", name[base_length - 1]) ?
"*" :
"/*";
46 if((dir = (
DIR *) malloc(
sizeof *dir)) != 0 &&
47 (dir->
name = (
char *) malloc(base_length + strlen(all) + 1)) != 0)
49 strcat(strcpy(dir->
name, name), all);
52 (handle_type) _findfirst(dir->
name, &dir->
info)) != -1)
86 result = _findclose(dir->
handle);
103 struct dirent *result = 0;
105 if(dir && dir->
handle != -1)
123 if(dir && dir->
handle != -1)
epicsShareFunc struct dirent * readdir(DIR *dir)
epicsShareFunc DIR * opendir(const char *name)
epicsShareFunc int closedir(DIR *dir)
epicsShareFunc void rewinddir(DIR *dir)