Lines Matching refs:dir
155 #define for_each_event_tps(dir, dent, tps) \ argument
156 while ((dent = readdir(dir))) \
166 DIR *dir; in copy_event_system() local
171 dir = opendir(sys); in copy_event_system()
172 if (!dir) { in copy_event_system()
177 for_each_event_tps(dir, dent, tps) { in copy_event_system()
198 rewinddir(dir); in copy_event_system()
199 for_each_event_tps(dir, dent, tps) { in copy_event_system()
220 closedir(dir); in copy_event_system()
259 DIR *dir; in record_event_files() local
270 dir = opendir(path); in record_event_files()
271 if (!dir) { in record_event_files()
277 for_each_event_tps(dir, dent, tps) { in record_event_files()
291 rewinddir(dir); in record_event_files()
292 for_each_event_tps(dir, dent, tps) { in record_event_files()
316 closedir(dir); in record_event_files()