Searched refs:wd (Results 1 - 11 of 11) sorted by relevance

/systemd/src/udev/
H A Dudev-watch.c93 int wd; local
100 wd = inotify_add_watch(inotify_fd, udev_device_get_devnode(dev), IN_CLOSE_WRITE);
101 if (wd < 0) {
107 xsprintf(filename, "/run/udev/watch/%d", wd);
114 udev_device_set_watch_handle(dev, wd);
118 int wd; local
124 wd = udev_device_get_watch_handle(dev);
125 if (wd < 0)
129 inotify_rm_watch(inotify_fd, wd);
131 xsprintf(filename, "/run/udev/watch/%d", wd);
137 udev_watch_lookup(struct udev *udev, int wd) argument
[all...]
H A Dudev.h102 struct udev_device *udev_watch_lookup(struct udev *udev, int wd);
H A Dudevd.c1142 dev = udev_watch_lookup(manager->udev, e->wd);
/systemd/src/journal/
H A Djournal-internal.h80 int wd; member in struct:Directory
H A Dsd-journal.c1420 if (m->wd <= 0 && j->inotify_fd >= 0) {
1422 m->wd = inotify_add_watch(j->inotify_fd, m->path,
1427 if (m->wd > 0 && hashmap_put(j->directories_by_wd, INT_TO_PTR(m->wd), m) < 0)
1428 inotify_rm_watch(j->inotify_fd, m->wd);
1505 if (m->wd <= 0 && j->inotify_fd >= 0) {
1507 m->wd = inotify_add_watch(j->inotify_fd, m->path,
1511 if (m->wd > 0 && hashmap_put(j->directories_by_wd, INT_TO_PTR(m->wd), m) < 0)
1512 inotify_rm_watch(j->inotify_fd, m->wd);
[all...]
/systemd/src/basic/
H A Dterminal-util.c367 int fd = -1, notify = -1, r = 0, wd = -1; local
395 wd = inotify_add_watch(notify, name, IN_CLOSE);
396 if (wd < 0) {
481 if (e->wd != wd || !(e->mask & IN_CLOSE)) {
/systemd/src/core/
H A Ddbus-execute.c589 const char *wd; local
596 wd = "~";
598 wd = c->working_directory;
601 wd = strjoina("!", wd);
603 return sd_bus_message_append(reply, "s", wd);
H A Dexecute.c1453 const char *username = NULL, *home = NULL, *shell = NULL, *wd; local
1810 wd = home;
1812 wd = context->working_directory;
1814 wd = "/";
1823 if (chdir(wd) < 0 &&
1831 d = strjoina(strempty(context->root_directory), "/", strempty(wd));
H A Dpath.c181 s->primary_wd == e->wd)
H A Dcgroup.c1226 if (e->wd < 0)
1234 u = hashmap_get(m->cgroup_inotify_wd_unit, INT_TO_PTR(e->wd));
/systemd/src/libsystemd/sd-network/
H A Dsd-network.c336 k = inotify_rm_watch(fd, e->wd);

Completed in 514 milliseconds