Searched refs:argv (Results 1 - 25 of 277) sorted by relevance

1234567891011>>

/systemd/src/resolve/
H A Dtest-resolve-tables.c23 int main(int argc, char **argv) { argument
/systemd/src/test/
H A Dtest-ipcrm.c24 int main(int argc, char *argv[]) { argument
28 assert_se(parse_uid(argv[1], &uid) >= 0);
H A Dtest-hostname.c23 int main(int argc, char* argv[]) { argument
H A Dtest-verbs.c24 static int noop_dispatcher(int argc, char *argv[], void *userdata) { argument
28 #define test_dispatch_one(argv, verbs, expected) \
30 assert_se(dispatch_verb(strv_length(argv), argv, verbs, NULL) == expected);
73 int main(int argc, char *argv[]) { argument
H A Dtest-ask-password-api.c34 int main(int argc, char **argv) { argument
H A Dtest-loopback.c26 int main(int argc, char* argv[]) { argument
/systemd/src/coredump/
H A Dtest-coredump-vacuum.c24 int main(int argc, char *argv[]) { argument
/systemd/src/import/
H A Dtest-qcow2.c25 int main(int argc, char *argv[]) { argument
34 sfd = open(argv[1], O_RDONLY|O_CLOEXEC|O_NOCTTY);
40 dfd = open(argv[2], O_WRONLY|O_CREAT|O_CLOEXEC|O_NOCTTY, 0666);
H A Dexport.c74 static int export_tar(int argc, char *argv[], void *userdata) { argument
82 if (machine_name_is_valid(argv[1])) {
83 r = image_find(argv[1], &image);
85 return log_error_errno(r, "Failed to look for machine %s: %m", argv[1]);
87 log_error("Machine image %s not found.", argv[1]);
93 local = argv[1];
96 path = argv[2];
153 static int export_raw(int argc, char *argv[], void *userdata) { argument
161 if (machine_name_is_valid(argv[1])) {
162 r = image_find(argv[
222 help(int argc, char *argv[], void *userdata) argument
237 parse_argv(int argc, char *argv[]) argument
291 export_main(int argc, char *argv[]) argument
303 main(int argc, char *argv[]) argument
[all...]
/systemd/src/machine/
H A Dtest-machine-tables.c23 int main(int argc, char **argv) { argument
/systemd/src/ac-power/
H A Dac-power.c22 int main(int argc, char *argv[]) { argument
/systemd/src/user-sessions/
H A Duser-sessions.c30 int main(int argc, char*argv[]) {
45 if (streq(argv[1], "start")) {
67 } else if (streq(argv[1], "stop")) {
77 log_error("Unknown verb %s.", argv[1]);
/systemd/src/basic/
H A Dverbs.h30 int (* const dispatch)(int argc, char *argv[], void *userdata);
33 int dispatch_verb(int argc, char *argv[], const Verb verbs[], void *userdata);
/systemd/src/udev/
H A Dudevadm.c27 static int adm_version(struct udev *udev, int argc, char *argv[]) { argument
37 static int adm_help(struct udev *udev, int argc, char *argv[]);
57 static int adm_help(struct udev *udev, int argc, char *argv[]) { argument
71 static int run_command(struct udev *udev, const struct udevadm_cmd *cmd, int argc, char *argv[]) { argument
75 return cmd->cmd(udev, argc, argv);
78 int main(int argc, char *argv[]) { argument
98 while ((c = getopt_long(argc, argv, "+dhV", options, NULL)) >= 0)
106 rc = adm_help(udev, argc, argv);
110 rc = adm_version(udev, argc, argv);
117 command = argv[optin
[all...]
H A Dudev-builtin-kmod.c66 static int builtin_kmod(struct udev_device *dev, int argc, char *argv[], bool test) { argument
73 if (argc < 3 || !streq(argv[1], "load")) {
74 log_error("expect: %s load <module>", argv[0]);
78 for (i = 2; argv[i]; i++) {
79 log_debug("Execute '%s' '%s'", argv[1], argv[i]);
80 load_module(udev, argv[i]);
H A Dudev-builtin-btrfs.c33 static int builtin_btrfs(struct udev_device *dev, int argc, char *argv[], bool test) { argument
38 if (argc != 3 || !streq(argv[1], "ready"))
45 strscpy(args.name, sizeof(args.name), argv[2]);
/systemd/src/login/
H A Dtest-login-shared.c32 int main(int argc, char* argv[]) { argument
/systemd/src/cgroups-agent/
H A Dcgroups-agent.c27 int main(int argc, char *argv[]) { argument
58 "s", argv[1]);
/systemd/src/journal/
H A Dcat.c50 static int parse_argv(int argc, char *argv[]) { argument
69 assert(argv);
71 while ((c = getopt_long(argc, argv, "+ht:p:", options, NULL)) >= 0)
118 int main(int argc, char *argv[]) { argument
125 r = parse_argv(argc, argv);
150 (void) execvp(argv[optind], argv + optind);
/systemd/src/detect-virt/
H A Ddetect-virt.c48 static int parse_argv(int argc, char *argv[]) { argument
67 assert(argv);
69 while ((c = getopt_long(argc, argv, "hqcvr", options, NULL)) >= 0)
111 int main(int argc, char *argv[]) { argument
121 r = parse_argv(argc, argv);
/systemd/src/machine-id-setup/
H A Dmachine-id-setup-main.c43 static int parse_argv(int argc, char *argv[]) { argument
62 assert(argv);
64 while ((c = getopt_long(argc, argv, "hqcv", options, NULL)) >= 0)
100 int main(int argc, char *argv[]) { argument
106 r = parse_argv(argc, argv);
/systemd/src/reply-password/
H A Dreply-password.c52 int main(int argc, char *argv[]) { argument
67 if (streq(argv[1], "1")) {
77 } else if (streq(argv[1], "0")) {
81 log_error("Invalid first argument %s", argv[1]);
92 r = send_on_socket(fd, argv[2], packet, length);
/systemd/src/ask-password/
H A Dask-password.c54 static int parse_argv(int argc, char *argv[]) { argument
83 assert(argv);
85 while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
136 arg_message = strv_join(argv + optind, " ");
144 int main(int argc, char *argv[]) { argument
153 r = parse_argv(argc, argv);
/systemd/src/system-update-generator/
H A Dsystem-update-generator.c53 int main(int argc, char *argv[]) { argument
62 arg_dest = argv[2];
/systemd/src/udev/mtd_probe/
H A Dmtd_probe.c31 int main(int argc, char** argv) argument
42 mtd_fd = open(argv[1], O_RDONLY|O_CLOEXEC);

Completed in 71 milliseconds

1234567891011>>