Searched defs:target (Results 1 - 25 of 30) sorted by relevance

12

/systemd/src/basic/
H A Dfileio-label.c55 int fopen_temporary_label(const char *target, argument
59 r = mac_selinux_create_file_prepare(target, S_IFREG);
H A Dcopy.c141 _cleanup_free_ char *target = NULL; local
148 r = readlinkat_malloc(df, from, &target);
152 if (symlinkat(target, dt, to) < 0)
H A Dfs-util.c206 _cleanup_free_ char *target = NULL; local
213 j = readlink_malloc(p, &target);
217 k = file_in_same_dir(p, target);
249 _cleanup_free_ char *target = NULL, *t = NULL; local
254 r = readlink_malloc(full, &target);
258 t = file_in_same_dir(path, target);
H A Dlog.c292 void log_set_target(LogTarget target) { argument
293 assert(target >= 0);
294 assert(target < _LOG_TARGET_MAX);
297 if (target == LOG_TARGET_SYSLOG)
298 target = LOG_TARGET_JOURNAL;
299 else if (target == LOG_TARGET_SYSLOG_OR_KMSG)
300 target = LOG_TARGET_JOURNAL_OR_KMSG;
303 log_target = target;
980 log_warning("Failed to parse log target '%s'. Ignoring.", value);
1012 log_warning("Failed to parse log target '
[all...]
/systemd/src/test/
H A Dtest-strxcpyx.c27 char target[25]; local
28 char *s = target;
31 space_left = sizeof(target);
39 assert_se(streq(target, "12345hey hey heywaldobar"));
44 char target[25]; local
45 char *s = target;
48 space_left = sizeof(target);
52 assert_se(streq(target, "space left: 25. foobar"));
57 char target[25]; local
58 char *s = target;
70 char target[25]; local
81 char target[25]; local
[all...]
H A Dtest-udev.c40 const char *target; member in struct:fakefs
66 err = mount(fakefss[i].src, fakefss[i].target, NULL, MS_BIND, NULL);
H A Dtest-copy.c125 _cleanup_free_ char *target = NULL; local
129 assert_se(readlink_and_canonicalize(l, &target) == 0);
130 assert_se(path_equal(f, target));
/systemd/src/shared/
H A Dbase-filesystem.c41 const char *target; member in struct:BaseFilesystem
73 if (table[i].target) {
74 const char *target = NULL, *s; local
77 NULSTR_FOREACH(s, table[i].target) {
81 /* check if a specific file exists at the target path */
93 target = s;
97 if (!target)
100 r = symlinkat(target, fd, table[i].dir);
H A Dinstall.c1213 /* Try again, with the new target we found. */
1710 const char *target,
1725 assert(target);
1730 if (!unit_name_is_valid(target, UNIT_NAME_ANY))
1745 r = install_info_discover(scope, &c, root_dir, &paths, target, SEARCH_FOLLOW_CONFIG_SYMLINKS, &target_info);
1705 unit_file_add_dependency( UnitFileScope scope, bool runtime, const char *root_dir, char **files, const char *target, UnitDependency dep, bool force, UnitFileChange **changes, unsigned *n_changes) argument
H A Dlogs-show.c81 static int parse_field(const void *data, size_t length, const char *field, char **target, size_t *target_size) { argument
87 assert(target);
104 free(*target);
105 *target = buf;
/systemd/src/debug-generator/
H A Ddebug-generator.c93 const char *target; local
95 target = runlevel_to_target(key);
96 if (target) {
97 r = free_and_strdup(&arg_default_unit, target);
99 return log_error_errno(r, "Failed to set default unit %s: %m", target);
/systemd/src/initctl/
H A Dinitctl.c101 const char *target; local
109 target = translate_runlevel(runlevel, &isolate);
110 if (!target) {
120 log_debug("Running request %s/start/%s", target, mode);
130 "ss", target, mode);
/systemd/src/journal-remote/
H A Djournal-remote-parse.c443 size_t remain, target; local
487 target = source->size;
488 while (target > 16 * LINE_CHUNK && remain < target / 2)
489 target /= 2;
490 if (target < source->size) {
493 tmp = realloc(source->buf, target);
496 target);
499 source->size, target);
501 source->size = target;
[all...]
H A Djournal-gatewayd.c653 const char *target) {
660 assert(target);
662 if (asprintf(&page, "<html><body>Please continue to the <a href=\"%s\">journal browser</a>.</body></html>", target) < 0)
672 MHD_add_response_header(response, "Location", target);
651 request_handler_redirect( struct MHD_Connection *connection, const char *target) argument
/systemd/src/fsck/
H A Dfsck.c67 static void start_target(const char *target, const char *mode) { argument
72 assert(target);
80 log_info("Running request %s/start/replace", target);
82 /* Start these units only if we can replace base.target with it */
90 "sss", "basic.target", target, mode);
/systemd/src/network/
H A Dnetworkd-netdev-bond.c184 ArpIpTarget *target = NULL; local
315 LIST_FOREACH(arp_ip_target, target, b->arp_ip_targets) {
316 r = sd_netlink_message_append_u32(m, i++, target->ip.in.s_addr);
355 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse Bond ARP ip target address, ignoring assignment: %s", rvalue);
368 log_syntax(unit, LOG_ERR, filename, line, r, "Bond ARP ip target address is invalid, ignoring assignment: %s", n);
373 log_syntax(unit, LOG_ERR, filename, line, 0, "Bond ARP ip target address is invalid, ignoring assignment: %s", n);
/systemd/src/udev/
H A Dudev-node.c38 char target[UTIL_PATH_SIZE]; local
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_tm
133 const char *target = NULL; local
186 const char *target; local
[all...]
H A Dudev-builtin-path_id.c266 const char *target; local
290 target = udev_device_get_sysattr_value(sessiondev, "targetname");
291 if (target == NULL) {
314 path_prepend(path, "ip-%s:%s-iscsi-%s-%s", addr, port, target, lun);
357 int host, bus, target, lun; local
373 if (sscanf(name, "%d:%d:%d:%d", &host, &bus, &target, &lun) != 4)
436 path_prepend(path, "scsi-%u:%u:%u:%u", host, bus, target, lun);
H A Dudev-builtin-usb_id.c313 int host, bus, target, lun; local
322 if (sscanf(udev_device_get_sysname(dev_scsi), "%d:%d:%d:%d", &host, &bus, &target, &lun) != 4) {
367 * for all luns, export the target:lun number
369 sprintf(instance_str, "%d:%d", target, lun);
/systemd/src/nspawn/
H A Dnspawn-mount.c691 _cleanup_free_ char *target = NULL; local
693 target = prefix_root(dest, origin);
694 if (!target)
708 r = symlink_idempotent(combined, target);
/systemd/src/sysv-generator/
H A Dsysv-generator.c52 const char *target; member in struct:__anon310
313 * out whether something is a target or a service alias. */
317 r = unit_name_build(n, NULL, ".target", ret);
434 /* the network-online target is special, as it needs to be actively pulled in */
911 r = strv_extend(&service->before, rcnd_table[i].target);
916 r = strv_extend(&service->wanted_by, rcnd_table[i].target);
/systemd/src/core/
H A Ddbus-manager.c1860 char *target; local
1877 r = sd_bus_message_read(message, "ssbb", &target, &type, &runtime, &force);
1887 r = unit_file_add_dependency(scope, runtime, NULL, l, target, dep, force, &changes, &n_changes);
H A Dmount.c413 /* We order ourselves after network.target. This is
416 * network.target, so that they are shut down only
423 /* We pull in network-online.target, and order
1389 const char* target; local
1391 target = mount_needs_network(options, fstype) ? SPECIAL_REMOTE_FS_TARGET : SPECIAL_LOCAL_FS_TARGET;
1392 r = unit_add_dependency_by_name(u, UNIT_BEFORE, target, NULL, true);
/systemd/src/coredump/
H A Dcoredump.c218 const char *target,
224 assert(target);
235 if (rename(filename, target) < 0)
236 return log_error_errno(errno, "Failed to rename coredump %s -> %s: %m", filename, target);
215 fix_permissions( int fd, const char *filename, const char *target, const char *context[_CONTEXT_MAX], uid_t uid) argument
/systemd/src/sysusers/
H A Dsysusers.c190 static int make_backup(const char *target, const char *x) { argument
209 r = fopen_temporary_label(target, x, &dst, &temp);

Completed in 71 milliseconds

12