Lines Matching defs:target
38 char target[UTIL_PATH_SIZE];
47 target[0] = '\0';
53 s = target;
54 l = sizeof(target);
66 /* preserve link with correct target, do not replace node of other device */
78 if (streq(target, buf)) {
79 log_debug("preserve already existing symlink '%s' to '%s'", slink, target);
87 log_debug("creating symlink '%s' to '%s'", slink, target);
93 err = symlink(target, slink);
110 err = symlink(target, slink_tmp);
116 log_error_errno(errno, "symlink '%s' '%s' failed: %m", target, slink_tmp);
133 const char *target = NULL;
138 target = buf;
143 return target;
166 if (target == NULL || udev_device_get_devlink_priority(dev_db) > priority) {
171 target = buf;
178 return target;
186 const char *target;
196 target = link_find_prioritized(dev, add, dirname, buf, sizeof(buf));
197 if (target == NULL) {
202 log_debug("creating link '%s' to '%s'", slink, target);
203 node_symlink(dev, target, slink);