/systemd/src/libsystemd/sd-device/ |
H A D | device-enumerator.c | 471 struct dirent *dent; local 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; local 602 FOREACH_DIRENT_ALL(dent, dir, return -errno) { 605 if (dent->d_name[0] == '.') 608 if (!match_subsystem(enumerator, subsystem ? : dent 622 struct dirent *dent; local 755 struct dirent *dent; local [all...] |
H A D | sd-device.c | 1547 struct dirent *dent; local 1567 for (dent = readdir(dir); dent != NULL; dent = readdir(dir)) { 1572 if (dent->d_type != DT_LNK && dent->d_type != DT_REG) 1575 path = strjoina(syspath, "/", dent->d_name); 1583 r = set_put_strdup(device->sysattrs, dent->d_name);
|
/systemd/src/udev/ |
H A D | udevadm-info.c | 195 struct dirent *dent; local 200 for (dent = readdir(dir); dent != NULL; dent = readdir(dir)) { 203 if (dent->d_name[0] == '.') 205 if (fstatat(dirfd(dir), dent->d_name, &stats, AT_SYMLINK_NOFOLLOW) != 0) 212 dir2 = fdopendir(openat(dirfd(dir), dent->d_name, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC)); 216 (void) unlinkat(dirfd(dir), dent->d_name, AT_REMOVEDIR); 218 (void) unlinkat(dirfd(dir), dent->d_name, 0);
|
H A D | udev-node.c | 146 struct dirent *dent; local 148 dent = readdir(dir); 149 if (dent == NULL || dent->d_name[0] == '\0') 151 if (dent->d_name[0] == '.') 154 log_debug("found '%s' claiming '%s'", dent->d_name, stackdir); 157 if (streq(dent->d_name, udev_device_get_id_filename(dev))) 160 dev_db = udev_device_new_from_device_id(udev, dent->d_name);
|
H A D | udev-builtin-net_id.c | 209 struct dirent *dent; local 246 for (dent = readdir(dir); dent != NULL; dent = readdir(dir)) { 251 if (dent->d_name[0] == '.') 253 i = strtol(dent->d_name, &rest, 10); 258 xsprintf(str, "%s/%s/address", slots, dent->d_name);
|
H A D | udev-builtin-path_id.c | 362 struct dirent *dent; local 408 for (dent = readdir(dir); dent != NULL; dent = readdir(dir)) { 412 if (dent->d_name[0] == '.') 414 if (dent->d_type != DT_DIR && dent->d_type != DT_LNK) 416 if (!startswith(dent->d_name, "host")) 418 i = strtoul(&dent->d_name[4], &rest, 10);
|
/systemd/src/basic/ |
H A D | virt.c | 120 struct dirent *dent; local 129 FOREACH_DIRENT(dent, dir, return -errno) 130 if (strstr(dent->d_name, "fw-cfg"))
|
/systemd/src/login/ |
H A D | logind-acl.c | 187 struct dirent *dent; local 257 FOREACH_DIRENT(dent, dir, return -errno) { 260 if (cunescape(dent->d_name, UNESCAPE_RELAX, &unescaped_devname) < 0)
|
/systemd/src/tmpfiles/ |
H A D | tmpfiles.c | 375 struct dirent *dent; local 380 while ((dent = readdir(d))) { 385 if (STR_IN_SET(dent->d_name, ".", "..")) 388 if (fstatat(dirfd(d), dent->d_name, &s, AT_SYMLINK_NOFOLLOW) < 0) { 394 log_debug_errno(errno, "stat(%s/%s) failed: %m", p, dent->d_name); 396 log_error_errno(errno, "stat(%s/%s) failed: %m", p, dent->d_name); 403 log_debug("Ignoring \"%s/%s\": different filesystem.", p, dent->d_name); 410 if (S_ISDIR(s.st_mode) && dir_is_mount_point(d, dent->d_name) > 0) { 412 p, dent->d_name); 418 log_debug("Ignoring \"%s/%s\": read-only and owner by root.", p, dent [all...] |
/systemd/src/coredump/ |
H A D | coredump.c | 500 struct dirent *dent = NULL; local 520 FOREACH_DIRENT(dent, proc_fd_dir, return -errno) { 526 r = readlinkat_malloc(dirfd(proc_fd_dir), dent->d_name, &fdname); 530 fprintf(stream, "%s%s:%s\n", fddelim, dent->d_name, fdname); 534 fd = openat(proc_fdinfo_fd, dent->d_name, O_NOFOLLOW|O_CLOEXEC|O_RDONLY);
|