Lines Matching refs:ds
205 struct dirent_s *ds, *dnew; in cache_dirstruct() local
219 ds = &dirstruct->dp[dirstruct->num++]; in cache_dirstruct()
220 ds->d_ino = d->d_ino; in cache_dirstruct()
221 ds->d_off = d->d_off; in cache_dirstruct()
222 ds->d_reclen = d->d_reclen; in cache_dirstruct()
223 ds->d_type = d->d_type; in cache_dirstruct()
224 if ((ds->d_name = malloc(strlen(d->d_name)+1)) == NULL) { in cache_dirstruct()
228 strcpy(ds->d_name, d->d_name); in cache_dirstruct()
323 struct dirent_s *ds; in readdir() local
331 ds = &dirstruct->dp[dirstruct->pos++]; in readdir()
332 dirstruct->ret_dir.d_ino = ds->d_ino; in readdir()
333 dirstruct->ret_dir.d_off = ds->d_off; in readdir()
334 dirstruct->ret_dir.d_reclen = ds->d_reclen; in readdir()
335 dirstruct->ret_dir.d_type = ds->d_type; in readdir()
336 strncpy(dirstruct->ret_dir.d_name, ds->d_name, in readdir()
345 struct dirent_s *ds; in readdir_r() local
354 ds = &dirstruct->dp[dirstruct->pos++]; in readdir_r()
355 entry->d_ino = ds->d_ino; in readdir_r()
356 entry->d_off = ds->d_off; in readdir_r()
357 entry->d_reclen = ds->d_reclen; in readdir_r()
358 entry->d_type = ds->d_type; in readdir_r()
359 strncpy(entry->d_name, ds->d_name, sizeof(entry->d_name)); in readdir_r()
369 struct dirent_s *ds; in readdir64() local
377 ds = &dirstruct->dp[dirstruct->pos++]; in readdir64()
378 dirstruct->ret_dir64.d_ino = ds->d_ino; in readdir64()
379 dirstruct->ret_dir64.d_off = ds->d_off; in readdir64()
380 dirstruct->ret_dir64.d_reclen = ds->d_reclen; in readdir64()
381 dirstruct->ret_dir64.d_type = ds->d_type; in readdir64()
382 strncpy(dirstruct->ret_dir64.d_name, ds->d_name, in readdir64()
393 struct dirent_s *ds; in readdir64_r() local
401 ds = &dirstruct->dp[dirstruct->pos++]; in readdir64_r()
402 entry->d_ino = ds->d_ino; in readdir64_r()
403 entry->d_off = ds->d_off; in readdir64_r()
404 entry->d_reclen = ds->d_reclen; in readdir64_r()
405 entry->d_type = ds->d_type; in readdir64_r()
406 strncpy(entry->d_name, ds->d_name, in readdir64_r()