116
114
init_alloc_root(names_storage, NAMES_START_SIZE, NAMES_START_SIZE);
118
116
/* MY_DIR structure is allocated and completly initialized at this point */
121
119
tmp_file= strchr(tmp_path, '\0');
123
121
dp= (struct dirent*) dirent_tmp;
125
123
while (!(READDIR(dirp,(struct dirent*) dirent_tmp,dp)))
127
125
if (!(finfo.name= strdup_root(names_storage, dp->d_name)))
130
128
if (MyFlags & MY_WANT_STAT)
136
134
memset(finfo.mystat, 0, sizeof(struct stat));
138
136
stat(tmp_path, finfo.mystat);
139
137
if (!(finfo.mystat->st_mode & S_IREAD))