Searched refs:target (Results 1 - 25 of 46) sorted by relevance

12

/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-copy.c125 _cleanup_free_ char *target = NULL; local
129 assert_se(readlink_and_canonicalize(l, &target) == 0);
130 assert_se(path_equal(f, target));
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);
/systemd/src/basic/
H A Dfileio-label.h29 int fopen_temporary_label(const char *target,
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 Dmount-util.h37 int umount_recursive(const char *target, int flags);
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);
/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/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);
/systemd/test/TEST-03-JOBS/
H A Dtest-jobs.sh6 systemctl start --no-block hello-after-sleep.target
27 systemctl stop sleep.service hello-after-sleep.target || exit 1
30 systemctl start --no-block hello-after-sleep.target || exit 1
35 systemctl stop hello.service sleep.service hello-after-sleep.target || exit 1
H A Dtest.sh53 After=multi-user.target
61 cp $TEST_BASE_DIR/{hello.service,sleep.service,hello-after-sleep.target,unstoppable.service} \
/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/test/TEST-06-SELINUX/
H A Dtest.sh54 After=multi-user.target
76 Requires=local-fs.target
77 Conflicts=shutdown.target
78 After=local-fs.target
79 Before=sysinit.target shutdown.target autorelabel.service
91 mkdir -p $initdir/etc/systemd/system/basic.target.wants
92 ln -fs load-systemd-test-module.service $initdir/etc/systemd/system/basic.target.wants/load-systemd-test-module.service
/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...]
/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/tools/
H A Dmake-man-rules.py85 target = man(refnames[0].text, number)
92 rulegroup[alias] = target
93 # print('{} => {} [{}]'.format(alias, target, conditional), file=sys.stderr)
/systemd/test/TEST-07-ISSUE-1981/
H A Dtest.sh35 After=multi-user.target
/systemd/src/core/
H A Dmain.c417 const char *target; local
420 target = runlevel_to_target(key);
421 if (target)
422 return free_and_strdup(&arg_default_unit, target);
456 DEFINE_SETTER(config_parse_target, log_set_target_from_string, "target")
770 { "log-target", required_argument, NULL, ARG_LOG_TARGET },
819 log_error("Failed to parse log target %s.", optarg);
1051 " --log-target=TARGET Set log target (console, journal, kmsg, journal-or-kmsg, null)\n"
1760 Unit *target local
[all...]
/systemd/test/
H A Dtest-functions144 Requires=local-fs.target
145 Conflicts=shutdown.target
146 After=local-fs.target
147 Before=sysinit.target shutdown.target
159 mkdir -p $initdir/etc/systemd/system/basic.target.wants
160 ln -fs autorelabel.service $initdir/etc/systemd/system/basic.target.wants/autorelabel.service
417 cp $TEST_BASE_DIR/testsuite.target $initdir/etc/systemd/system/
420 mkdir -p $initdir/etc/systemd/system/testsuite.target.wants
421 ln -fs $TEST_BASE_DIR/testsuite.service $initdir/etc/systemd/system/testsuite.target
[all...]
/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/test/TEST-04-JOURNAL/
H A Dtest.sh53 After=multi-user.target
/systemd/test/TEST-05-RLIMITS/
H A Dtest.sh58 After=multi-user.target
/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);

Completed in 6856 milliseconds

12