Lines Matching refs:dent
471 struct dirent *dent;
489 FOREACH_DIRENT_ALL(dent, dir, return -errno) {
491 char syspath[strlen(path) + 1 + strlen(dent->d_name) + 1];
495 if (dent->d_name[0] == '.')
498 if (!match_sysname(enumerator, dent->d_name))
501 (void)sprintf(syspath, "%s%s", path, dent->d_name);
591 struct dirent *dent;
602 FOREACH_DIRENT_ALL(dent, dir, return -errno) {
605 if (dent->d_name[0] == '.')
608 if (!match_subsystem(enumerator, subsystem ? : dent->d_name))
611 k = enumerator_scan_dir_and_add_devices(enumerator, basedir, dent->d_name, subdir);
622 struct dirent *dent;
642 FOREACH_DIRENT_ALL(dent, dir, return -errno) {
647 if (dent->d_name[0] == '.')
650 k = sd_device_new_from_device_id(&device, dent->d_name);
755 struct dirent *dent;
764 FOREACH_DIRENT_ALL(dent, dir, return -errno) {
768 if (dent->d_name[0] == '.')
771 if (dent->d_type != DT_DIR)
774 child = strjoin(path, "/", dent->d_name, NULL);