/systemd/src/test/ |
H A D | test-acl-util.c | 34 char *cmd; local 44 cmd = strjoina("ls -l ", fn); 45 assert_se(system(cmd) == 0); 47 cmd = strjoina("getfacl -p ", fn); 48 assert_se(system(cmd) == 0); 61 cmd = strjoina("ls -l ", fn); 62 assert_se(system(cmd) == 0); 64 cmd = strjoina("getfacl -p ", fn); 65 assert_se(system(cmd) == 0); 72 cmd [all...] |
H A D | test-tmpfiles.c | 38 _cleanup_free_ char *cmd, *cmd2, *ans, *ans2; local 46 assert_se(asprintf(&cmd, "ls -l /proc/"PID_FMT"/fd/%d", getpid(), fd) > 0); 47 (void) system(cmd); 48 assert_se(readlink_malloc(cmd + 6, &ans) >= 0);
|
/systemd/src/udev/ |
H A D | udevadm-test-builtin.c | 47 enum udev_builtin_cmd cmd; local 74 cmd = udev_builtin_lookup(command); 75 if (cmd >= UDEV_BUILTIN_MAX) { 96 rc = udev_builtin_run(dev, cmd, command, true); 109 .cmd = adm_builtin,
|
H A D | udevadm.c | 34 .cmd = adm_version, 41 .cmd = adm_help, 71 static int run_command(struct udev *udev, const struct udevadm_cmd *cmd, int argc, char *argv[]) { argument 72 if (cmd->debug) 74 log_debug("calling: %s", cmd->name); 75 return cmd->cmd(udev, argc, argv);
|
H A D | udev-builtin.c | 92 const char *udev_builtin_name(enum udev_builtin_cmd cmd) { argument 93 if (!builtins[cmd]) 96 return builtins[cmd]->name; 99 bool udev_builtin_run_once(enum udev_builtin_cmd cmd) { argument 100 if (!builtins[cmd]) 103 return builtins[cmd]->run_once; 121 int udev_builtin_run(struct udev_device *dev, enum udev_builtin_cmd cmd, const char *command, bool test) { argument 126 if (!builtins[cmd]) 133 return builtins[cmd]->cmd(de [all...] |
H A D | udev.h | 89 const char *cmd, char *result, size_t ressize); 95 int udev_build_argv(struct udev *udev, char *cmd, int *argc, char *argv[]); 167 int (*cmd)(struct udev_device *dev, int argc, char *argv[], bool test); member in struct:udev_builtin 192 const char *udev_builtin_name(enum udev_builtin_cmd cmd); 193 bool udev_builtin_run_once(enum udev_builtin_cmd cmd); 194 int udev_builtin_run(struct udev_device *dev, enum udev_builtin_cmd cmd, const char *command, bool test); 204 int (*cmd)(struct udev *udev, int argc, char *argv[]); member in struct:udevadm_cmd
|
H A D | udev-event.c | 43 const char *cmd; member in struct:Spawn 391 const char *cmd, char *const argv[], char **envp, 443 return log_error_errno(errno, "failed to execute '%s' '%s': %m", argv[0], cmd); 448 const char *cmd, 501 log_error("timeout '%s'", cmd); 516 log_error("timeout '%s'", cmd); 541 log_error("'%s' ressize %zu too short", cmd, ressize); 553 log_debug("'%s'(%s) '%s'", cmd, *fd == fd_stdout ? "out" : "err" , line); 580 log_error("spawned process '%s' ["PID_FMT"] timed out after %s, killing", spawn->cmd, spawn->pid, 592 log_warning("spawned process '%s' ["PID_FMT"] is taking longer than %s to complete", spawn->cmd, spaw 390 spawn_exec(struct udev_event *event, const char *cmd, char *const argv[], char **envp, int fd_stdout, int fd_stderr) argument 446 spawn_read(struct udev_event *event, usec_t timeout_usec, const char *cmd, int fd_stdout, int fd_stderr, char *result, size_t ressize) argument 630 spawn_wait(struct udev_event *event, usec_t timeout_usec, usec_t timeout_warn_usec, const char *cmd, pid_t pid, bool accept_failure) argument 687 udev_build_argv(struct udev *udev, char *cmd, int *argc, char *argv[]) argument 720 udev_event_spawn(struct udev_event *event, usec_t timeout_usec, usec_t timeout_warn_usec, bool accept_failure, const char *cmd, char *result, size_t ressize) argument 927 const char *cmd = udev_list_entry_get_name(list_entry); local [all...] |
H A D | udev-rules.c | 1294 enum udev_builtin_cmd cmd; local 1296 cmd = udev_builtin_lookup(value); 1297 if (cmd < UDEV_BUILTIN_MAX) { 1300 rule_add_key(&rule_tmp, TK_M_IMPORT_BUILTIN, op, value, &cmd); 1306 enum udev_builtin_cmd cmd = udev_builtin_lookup(value); local 1308 if (cmd < UDEV_BUILTIN_MAX) 1309 rule_add_key(&rule_tmp, TK_M_IMPORT_BUILTIN, op, value, &cmd); 1352 enum udev_builtin_cmd cmd = udev_builtin_lookup(value); local 1354 if (cmd < UDEV_BUILTIN_MAX) 1355 rule_add_key(&rule_tmp, TK_A_RUN_BUILTIN, op, value, &cmd); 1359 enum udev_builtin_cmd cmd = UDEV_BUILTIN_MAX; local [all...] |
/systemd/src/core/ |
H A D | shutdown.c | 167 int cmd, r; local 190 cmd = RB_AUTOBOOT; 192 cmd = RB_POWER_OFF; 194 cmd = RB_HALT_SYSTEM; 196 cmd = LINUX_REBOOT_CMD_KEXEC; 198 cmd = 0; /* ignored, just checking that arg_verb is valid */ 361 cmd = RB_POWER_OFF; 365 switch (cmd) { 392 cmd = RB_AUTOBOOT; 421 reboot(cmd); [all...] |
H A D | execute.c | 2821 _cleanup_free_ char *cmd = NULL; local 2830 cmd = exec_command_line(c->argv); 2833 prefix, cmd ? cmd : strerror(ENOMEM));
|
H A D | load-fragment.c | 577 _cleanup_free_ char *cmd = NULL; local 599 r = unit_full_printf(u, rvalue, &cmd); 605 p = cmd;
|
/systemd/src/shared/ |
H A D | initreq.h | 68 int cmd; /* What kind of request */ member in struct:init_request
|
H A D | bus-util.c | 2358 struct kdbus_cmd cmd = { .size = sizeof(cmd), .flags = KDBUS_FLAG_NEGOTIATE }; local 2367 return ioctl(fd, KDBUS_CMD_BUS_MAKE, &cmd) >= 0;
|
/systemd/src/bus-proxyd/ |
H A D | driver.c | 434 struct kdbus_cmd_list cmd = { local 436 .size = sizeof(cmd), 459 r = ioctl(a->input_fd, KDBUS_CMD_LIST, &cmd); 463 name_list = (struct kdbus_info *) ((uint8_t *) a->kdbus_buffer + cmd.offset); 465 KDBUS_FOREACH(name, name_list, cmd.list_size) { 491 r = bus_kernel_cmd_free(a, cmd.offset);
|
/systemd/src/import/ |
H A D | pull-common.c | 446 const char *cmd[] = { local 461 unsigned k = ELEMENTSOF(cmd) - 6; 494 cmd[k++] = strjoina("--homedir=", gpg_home); 500 cmd[k++] = "--keyring=" USER_KEYRING_PATH; 502 cmd[k++] = "--keyring=" VENDOR_KEYRING_PATH; 504 cmd[k++] = "--verify"; 505 cmd[k++] = sig_file_path; 506 cmd[k++] = "-"; 507 cmd[k++] = NULL; 513 execvp("gpg2", (char * const *) cmd); [all...] |
H A D | importd.c | 378 const char *cmd[] = { local 459 cmd[k++] = SYSTEMD_IMPORT_PATH; 461 cmd[k++] = SYSTEMD_EXPORT_PATH; 463 cmd[k++] = SYSTEMD_PULL_PATH; 466 cmd[k++] = "tar"; 468 cmd[k++] = "raw"; 471 cmd[k++] = "--verify"; 472 cmd[k++] = import_verify_to_string(t->verify); 476 cmd[k++] = "--force"; 478 cmd[ [all...] |
/systemd/src/journal/ |
H A D | test-compress.c | 158 _cleanup_free_ char *cmd = NULL, *cmd2; local 175 assert_se(asprintf(&cmd, "%s %s | diff %s -", cat, pattern, srcfile) > 0); 176 assert_se(system(cmd) == 0);
|
/systemd/src/coredump/ |
H A D | coredumpctl.c | 226 const char *cmd = argv[optind++]; local 227 if (streq(cmd, "list")) 229 else if (streq(cmd, "dump")) 231 else if (streq(cmd, "gdb")) 233 else if (streq(cmd, "info")) 236 log_error("Unknown action '%s'", cmd);
|
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-control.c | 245 struct kdbus_cmd_list cmd = { local 246 .size = sizeof(cmd), 255 r = ioctl(bus->input_fd, KDBUS_CMD_LIST, &cmd); 259 name_list = (struct kdbus_info *) ((uint8_t *) bus->kdbus_buffer + cmd.offset); 261 KDBUS_FOREACH(name, name_list, cmd.list_size) { 295 bus_kernel_cmd_free(bus, cmd.offset); 649 struct kdbus_cmd_info *cmd; local 663 cmd = alloca0_align(size, 8); 664 cmd->id = id; 668 cmd 932 struct kdbus_cmd_info cmd = { local [all...] |
H A D | bus-kernel.c | 1082 struct kdbus_cmd_free cmd = { local 1083 .size = sizeof(cmd), 1091 r = ioctl(bus->input_fd, KDBUS_CMD_FREE, &cmd); 1115 struct kdbus_cmd_send cmd = { }; local 1131 cmd.size = sizeof(cmd); 1132 cmd.msg_address = (uintptr_t)m->kdbus; 1141 cmd.flags |= KDBUS_SEND_SYNC_REPLY; 1144 r = ioctl(bus->output_fd, KDBUS_CMD_SEND, &cmd); 1194 k = (struct kdbus_msg *)((uint8_t *)bus->kdbus_buffer + cmd 1793 struct kdbus_cmd_info cmd = { local [all...] |
/systemd/src/udev/cdrom_id/ |
H A D | cdrom_id.c | 125 static void info_scsi_cmd_err(struct udev *udev, const char *cmd, int err) argument 128 log_debug("%s failed", cmd); 131 log_debug("%s failed with SK=%Xh/ASC=%02Xh/ACQ=%02Xh", cmd, SK(err), ASC(err), ASCQ(err)); 143 static void scsi_cmd_init(struct udev *udev, struct scsi_cmd *cmd) argument 145 memzero(cmd, sizeof(struct scsi_cmd)); 146 cmd->cgc.quiet = 1; 147 cmd->cgc.sense = &cmd->_sense.s; 148 cmd->sg_io.interface_id = 'S'; 149 cmd 155 scsi_cmd_set(struct udev *udev, struct scsi_cmd *cmd, size_t i, unsigned char arg) argument 163 scsi_cmd_run(struct udev *udev, struct scsi_cmd *cmd, int fd, unsigned char *buf, size_t bufsize) argument [all...] |
/systemd/src/basic/ |
H A D | missing.h | 387 __u64 cmd; member in struct:btrfs_ioctl_quota_ctl_args 1096 static inline long keyctl(int cmd, unsigned long arg2, unsigned long arg3, unsigned long arg4,unsigned long arg5) { argument 1098 return syscall(__NR_keyctl, cmd, arg2, arg3, arg4, arg5);
|