/systemd/src/udev/ |
H A D | udevadm-test-builtin.c | 29 "Test a built-in command.\n\n" 43 char *command = NULL; local 57 command = argv[optind++]; 58 if (command == NULL) { 59 fprintf(stderr, "command missing\n"); 74 cmd = udev_builtin_lookup(command); 76 fprintf(stderr, "unknown command '%s'\n", command); 96 rc = udev_builtin_run(dev, cmd, command, true); 98 fprintf(stderr, "error executing '%s', exit code %i\n\n", command, r [all...] |
H A D | udev-builtin.c | 106 enum udev_builtin_cmd udev_builtin_lookup(const char *command) { argument 111 strscpy(name, sizeof(name), command); 121 int udev_builtin_run(struct udev_device *dev, enum udev_builtin_cmd cmd, const char *command, bool test) { argument 131 strscpy(arg, sizeof(arg), command);
|
H A D | udevadm.c | 86 const char *command; local 117 command = argv[optind]; 119 if (command != NULL) 121 if (streq(udevadm_cmds[i]->name, command)) { 130 fprintf(stderr, "%s: missing or unknown command\n", program_invocation_short_name);
|
H A D | udev.h | 191 enum udev_builtin_cmd udev_builtin_lookup(const char *command); 194 int udev_builtin_run(struct udev_device *dev, enum udev_builtin_cmd cmd, const char *command, bool test);
|
H A D | udev-rules.c | 1292 /* find known built-in command */ 2122 char command[UTIL_PATH_SIZE]; local 2141 udev_event_apply_format(event, rules_str(rules, cur->key.value_off), command, sizeof(command)); 2147 if (udev_builtin_run(event->dev, cur->key.builtin_cmd, command, false) != 0) {
|
/systemd/src/test/ |
H A D | test-fileio.c | 211 char *command; local 222 r = executable_is_script(t, &command); 224 assert_se(streq(command, "/bin/script")); 225 free(command); 227 r = executable_is_script("/bin/sh", &command); 230 r = executable_is_script("/usr/bin/yum", &command); 233 assert_se(startswith(command, "/")); 234 free(command);
|
/systemd/src/core/ |
H A D | execute.c | 1441 ExecCommand *command, 1460 assert(command); 1465 rename_process_from_path(command->path); 1557 r = setup_output(unit, context, params, STDOUT_FILENO, socket_fd, basename(command->path), uid, gid); 1563 r = setup_output(unit, context, params, STDERR_FILENO, socket_fd, basename(command->path), uid, gid); 1732 r = mac_smack_read(command->path, SMACK_ATTR_EXEC, &exec_label); 1841 r = mac_selinux_get_child_mls_label(socket_fd, command->path, context->selinux_context, &mac_selinux_context_net); 2047 "EXECUTABLE=%s", command->path, 2054 execve(command->path, final_argv, final_env); 2060 ExecCommand *command, 1439 exec_child( Unit *unit, ExecCommand *command, const ExecContext *context, const ExecParameters *params, ExecRuntime *runtime, char **argv, int socket_fd, int *fds, unsigned n_fds, char **files_env, int *exit_status) argument 2059 exec_spawn(Unit *unit, ExecCommand *command, const ExecContext *context, const ExecParameters *params, ExecRuntime *runtime, pid_t *ret) argument [all...] |
H A D | execute.h | 84 LIST_FIELDS(ExecCommand, command); /* useful for chaining commands */ 246 ExecCommand *command,
|
H A D | dbus-service.c | 253 LIST_FOREACH(command, c, s->exec_command[SERVICE_EXEC_START]) {
|
H A D | dbus-execute.c | 819 LIST_FOREACH(command, c, c) {
|
/systemd/src/run/ |
H A D | run.c | 85 "Run the specified command in a transient scope or service or timer\n" 87 "specified with --unit option then command can be omitted.\n\n" 1201 _cleanup_free_ char *description = NULL, *command = NULL; local 1214 r = find_binary(argv[optind], &command); 1220 argv[optind] = command;
|