37 if(pathname==NULL ||
strnlen(pathname, 2)<1)
return(0);
42 dp=opendir(pathname);
if(dp==NULL)
return(0);
44 char tempname[2*FILENAME_MAX];
45 unsigned short int n=0;
48 while((de=readdir(dp))!=NULL) {
50 if(de->d_name[0]==
'.')
continue;
52 sprintf(tempname,
"%s/%s", pathname, de->d_name);
58 struct dirent de, *deptr;
59 char tempname[2*FILENAME_MAX];
60 unsigned short int n=0;
62 while(readdir_r(dp, &de, &deptr)==0 && deptr!=NULL) {
64 if(de.d_name[0]==
'.')
continue;
66 sprintf(tempname,
"%s/%s", pathname, de.d_name);
89 if(pathname==NULL ||
strnlen(pathname, 2)<1)
return(0);
90 if(ift==NULL)
return(0);
95 dp=opendir(pathname);
if(dp==NULL)
return(0);
97 char tempname[2*FILENAME_MAX];
98 unsigned short int n=0;
101 while((de=readdir(dp))!=NULL) {
102 if(de->d_name[0]==
'.')
continue;
104 sprintf(tempname,
"%s/%s", pathname, de->d_name);
108 if(
iftPut(ift, NULL, tempname, 0, NULL))
break;
112 struct dirent de, *deptr;
113 char tempname[2*FILENAME_MAX];
114 unsigned short int n=0;
116 while(readdir_r(dp, &de, &deptr)==0 && deptr!=NULL) {
117 if(de.d_name[0]==
'.')
continue;
119 sprintf(tempname,
"%s/%s", pathname, de.d_name);
123 if(
iftPut(ift, NULL, tempname, 0, NULL))
break;
int iftPut(IFT *ift, const char *key, const char *value, char comment, TPCSTATUS *status)