Lines Matching refs:dir
51 DIR *dir;
54 dir = opendir("/run/udev/watch.old");
55 if (dir == NULL) {
56 log_error_errno(errno, "unable to open old watches dir /run/udev/watch.old; old watches will not be restored: %m");
60 for (ent = readdir(dir); ent != NULL; ent = readdir(dir)) {
68 len = readlinkat(dirfd(dir), ent->d_name, device, sizeof(device));
81 unlinkat(dirfd(dir), ent->d_name, 0);
84 closedir(dir);
88 log_error_errno(errno, "unable to move watches dir /run/udev/watch; old watches will not be restored: %m");