/systemd/src/login/ |
H A D | test-inhibit.c | 29 static int inhibit(sd_bus *bus, const char *what) { argument 43 "ssss", what, who, reason, mode); 56 const char *what, *who, *why, *mode; local 74 while ((r = sd_bus_message_read(reply, "(ssssuu)", &what, &who, &why, &mode, &uid, &pid)) > 0) { 75 printf("what=<%s> who=<%s> why=<%s> mode=<%s> uid=<%"PRIu32"> pid=<%"PRIu32">\n", 76 what, who, why, mode, uid, pid);
|
H A D | inhibit.c | 79 const char *what, *who, *why, *mode; local 100 while ((r = sd_bus_message_read(reply, "(ssssuu)", &what, &who, &why, &mode, &uid, &pid)) > 0) { 114 what, 136 " --what=WHAT Operations to inhibit, colon separated list of:\n" 161 { "what", required_argument, NULL, ARG_WHAT },
|
H A D | logind-inhibit.h | 56 InhibitWhat what; member in struct:Inhibitor
|
H A D | logind-inhibit.c | 108 inhibit_what_to_string(i->what), 204 *what = NULL, local 217 "WHAT", &what, 228 w = what ? inhibit_what_from_string(what) : 0; 230 i->what = w; 348 InhibitWhat what = 0; local 354 what |= i->what; 356 return what; 454 InhibitWhat what = 0; local [all...] |
H A D | logind-dbus.c | 558 strempty(inhibit_what_to_string(inhibitor->what)), 1646 /* Shutdown is delayed, keep in mind what we 2374 const char *who, *why, *what, *mode; local 2388 r = sd_bus_message_read(message, "ssss", &what, &who, &why, &mode); 2392 w = inhibit_what_from_string(what); 2394 return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Invalid what specification %s", what); 2455 i->what = w;
|
/systemd/src/shared/ |
H A D | generator.c | 40 static int write_fsck_sysroot_service(const char *dir, const char *what) { argument 46 escaped = cescape(what); 53 r = unit_name_from_path(what, ".device", &device); 55 return log_error_errno(r, "Failed to convert device \"%s\" to unit name: %m", what); 77 what, 91 const char *what, 99 assert(what); 102 if (!is_device_path(what)) { 103 log_warning("Checking was requested for \"%s\", but it is not a device.", what); 110 log_warning_errno(r, "Checking was requested for %s, but couldn't detect if fsck.%s may be used, proceeding: %m", what, fstyp 88 generator_write_fsck_deps( FILE *f, const char *dir, const char *what, const char *where, const char *fstype) argument 154 generator_write_timeouts( const char *dir, const char *what, const char *where, const char *opts, char **filtered) argument [all...] |
/systemd/src/core/ |
H A D | mount-setup.c | 53 const char *what; member in struct:MountPoint 181 p->what, 186 if (mount(p->what, 245 .what = "cgroup",
|
H A D | mount.h | 47 char *what; member in struct:MountParameters
|
H A D | swap.h | 46 char *what; member in struct:SwapParameters 54 char *what; member in struct:Swap 57 * node, which might be different from what, due to
|
H A D | namespace.c | 348 const char *what; local 362 what = "/run/systemd/inaccessible"; 372 what = tmp_dir; 376 what = var_tmp_dir; 389 assert(what); 391 r = mount(what, m->path, NULL, MS_BIND|MS_REC, NULL); 393 log_debug("Successfully mounted %s to %s", what, m->path); 563 * what's disconnected is disconnected. */
|
H A D | swap.c | 68 s->parameters_proc_swaps.what = mfree(s->parameters_proc_swaps.what); 148 s->what = mfree(s->what); 149 s->parameters_fragment.what = mfree(s->parameters_fragment.what); 194 if (!s->what) 200 if (is_device_path(s->what)) 201 return unit_add_node_link(UNIT(s), s->what, UNIT(s)->manager->running_as == MANAGER_SYSTEM, UNIT_BINDS_TO); 239 r = unit_name_from_path(s->what, " 349 swap_setup_unit( Manager *m, const char *what, const char *what_proc_swaps, int priority, bool set_flags) argument [all...] |
H A D | mount.c | 196 free(p->what); 200 p->what = p->options = p->fstype = NULL; 267 if (pm && pm->what && 268 path_is_absolute(pm->what) && 271 r = unit_require_mounts_for(UNIT(m), pm->what); 313 if (!p->what) 319 if (!is_device_path(p->what)) 325 if (path_equal(p->what, "/dev/root")) 334 r = unit_add_node_link(UNIT(m), p->what, device_wants_mount, m->from_fragment ? UNIT_BINDS_TO : UNIT_REQUIRES); 477 if (UNIT(m)->fragment_path && !m->parameters_fragment.what) { 1327 mount_setup_unit( Manager *m, const char *what, const char *where, const char *options, const char *fstype, bool set_flags) argument 1638 const char *what; local [all...] |
H A D | unit.c | 1417 * closely what is written to screen using the status output, 2859 int unit_add_node_link(Unit *u, const char *what, bool wants, UnitDependency dep) { argument 2867 if (isempty(what)) 2870 if (!is_device_path(what)) 2878 r = unit_name_from_path(what, ".device", &e);
|
/systemd/src/fstab-generator/ |
H A D | fstab-generator.c | 57 const char *what, 66 assert(what); 70 log_info("Swap not supported, ignoring fstab swap entry for %s.", what); 75 log_info("Running in a container, ignoring fstab swap entry for %s.", what); 79 r = unit_name_from_path(what, ".swap", &name); 103 what); 112 /* use what as where, to have a nicer error message */ 113 r = generator_write_timeouts(arg_dest, what, what, me->mnt_opts, NULL); 228 const char *what, 56 add_swap( const char *what, struct mntent *me, bool noauto, bool nofail) argument 227 add_mount( const char *what, const char *where, const char *fstype, const char *opts, int passno, bool noauto, bool nofail, bool automount, const char *post, const char *source) argument 424 _cleanup_free_ char *where = NULL, *what = NULL; local 489 _cleanup_free_ char *what = NULL; local 523 _cleanup_free_ char *what = NULL; local [all...] |
/systemd/src/gpt-auto-generator/ |
H A D | gpt-auto-generator.c | 57 static int add_cryptsetup(const char *id, const char *what, bool rw, char **device) { argument 64 assert(what); 67 r = unit_name_from_path(what, ".device", &d); 105 id, what, rw ? "" : "read-only", 164 const char *what, 177 assert(what); 181 log_debug("Adding %s: %s %s", where, what, strna(fstype)); 185 r = add_cryptsetup(id, what, rw, &crypto_what); 189 what = crypto_what; 215 r = generator_write_fsck_deps(f, arg_dest, what, wher 162 add_mount( const char *id, const char *what, const char *where, const char *fstype, bool rw, const char *options, const char *description, const char *post) argument 273 probe_and_add_mount( const char *id, const char *what, const char *where, bool rw, const char *description, const char *post) argument 376 add_automount( const char *id, const char *what, const char *where, const char *fstype, bool rw, const char *options, const char *description, usec_t timeout) argument 452 add_boot(const char *what) argument 550 add_boot(const char *what) argument [all...] |
/systemd/src/nspawn/ |
H A D | nspawn-mount.c | 289 const char *what; member in struct:MountPoint 337 if (mount_table[k].what && r > 0) 358 if (mount(mount_table[k].what,
|
H A D | nspawn.c | 1029 const char *where, *check, *what; local 1075 what = strjoina("../usr/share/zoneinfo/", z); 1076 if (symlink(what, where) < 0) { 2134 static int mount_device(const char *what, const char *where, const char *directory, bool rw) { argument 2140 assert(what); 2152 b = blkid_new_probe_from_filename(what); 2156 return log_error_errno(errno, "Failed to allocate prober for %s: %m", what); 2165 log_error("Cannot determine file system type of %s", what); 2170 return log_error_errno(errno, "Failed to probe %s: %m", what); 2177 log_error("Failed to determine file system type of %s", what); [all...] |
/systemd/src/test/ |
H A D | test-dns-domain.c | 25 static void test_dns_label_unescape_one(const char *what, const char *expect, size_t buffer_sz, int ret) { argument 29 r = dns_label_unescape(&what, buffer, buffer_sz); 53 static void test_dns_name_to_wire_format_one(const char *what, const char *expect, size_t buffer_sz, int ret) { argument 57 r = dns_name_to_wire_format(what, buffer, buffer_sz, false); 113 static void test_dns_label_unescape_suffix_one(const char *what, const char *expect1, const char *expect2, size_t buffer_sz, int ret1, int ret2) { argument 118 label = what + strlen(what); 120 r = dns_label_unescape_suffix(what, &label, buffer, buffer_sz); 125 r = dns_label_unescape_suffix(what, &label, buffer, buffer_sz); 153 static void test_dns_label_escape_one(const char *what, size_ argument 173 test_dns_name_normalize_one(const char *what, const char *expect, int ret) argument [all...] |
/systemd/src/systemctl/ |
H A D | systemctl.c | 2900 const char *what, *who, *why, *mode; local 2940 while ((r = sd_bus_message_read(reply, "(ssssuu)", &what, &who, &why, &mode, &uid, &pid)) > 0) { 2947 sv = strv_split(what, ":"); 3396 const char *what; member in struct:UnitStatusInfo 3562 if (i->what) 3563 printf(" What: %s\n", i->what); 3806 i->what = s; 4090 /* skip what we didn't read */
|