Searched refs:dent (Results 1 - 10 of 10) sorted by relevance

/systemd/src/libsystemd/sd-device/
H A Ddevice-enumerator.c471 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 Dsd-device.c1547 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 Dudevadm-info.c195 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 Dudev-node.c146 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 Dudev-builtin-net_id.c209 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 Dudev-builtin-path_id.c362 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 Dvirt.c120 struct dirent *dent; local
129 FOREACH_DIRENT(dent, dir, return -errno)
130 if (strstr(dent->d_name, "fw-cfg"))
/systemd/src/login/
H A Dlogind-acl.c187 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 Dtmpfiles.c375 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 Dcoredump.c500 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);

Completed in 47 milliseconds