/systemd-251/src/udev/ |
D | udevadm.h | 8 int info_main(int argc, char *argv[], void *userdata); 9 int trigger_main(int argc, char *argv[], void *userdata); 10 int settle_main(int argc, char *argv[], void *userdata); 11 int control_main(int argc, char *argv[], void *userdata); 12 int monitor_main(int argc, char *argv[], void *userdata); 13 int hwdb_main(int argc, char *argv[], void *userdata); 14 int test_main(int argc, char *argv[], void *userdata); 15 int builtin_main(int argc, char *argv[], void *userdata); 16 int wait_main(int argc, char *argv[], void *userdata); 17 int lock_main(int argc, char *argv[], void *userdata);
|
D | udevadm.c | 53 static int parse_argv(int argc, char *argv[]) { in parse_argv() argument 62 assert(argc >= 0); in parse_argv() 65 while ((c = getopt_long(argc, argv, "+dhV", options, NULL)) >= 0) in parse_argv() 88 static int version_main(int argc, char *argv[], void *userdata) { in version_main() argument 92 static int help_main(int argc, char *argv[], void *userdata) { in help_main() argument 96 static int udevadm_main(int argc, char *argv[]) { in udevadm_main() argument 113 return dispatch_verb(argc, argv, verbs, NULL); in udevadm_main() 116 static int run(int argc, char *argv[]) { in run() argument 120 return run_udevd(argc, argv); in run() 126 r = parse_argv(argc, argv); in run() [all …]
|
/systemd-251/src/id128/ |
D | id128.c | 20 static int verb_new(int argc, char **argv, void *userdata) { in verb_new() argument 24 static int verb_machine_id(int argc, char **argv, void *userdata) { in verb_machine_id() argument 39 static int verb_boot_id(int argc, char **argv, void *userdata) { in verb_boot_id() argument 54 static int verb_invocation_id(int argc, char **argv, void *userdata) { in verb_invocation_id() argument 103 static int verb_show(int argc, char **argv, void *userdata) { in verb_show() argument 178 static int verb_help(int argc, char **argv, void *userdata) { in verb_help() argument 182 static int parse_argv(int argc, char *argv[]) { in parse_argv() argument 198 assert(argc >= 0); in parse_argv() 201 while ((c = getopt_long(argc, argv, "hpa:u", options, NULL)) >= 0) in parse_argv() 234 static int id128_main(int argc, char *argv[]) { in id128_main() argument [all …]
|
/systemd-251/src/hwdb/ |
D | hwdb.c | 20 static int verb_query(int argc, char *argv[], void *userdata) { in verb_query() argument 24 static int verb_update(int argc, char *argv[], void *userdata) { in verb_update() argument 56 static int parse_argv(int argc, char *argv[]) { in parse_argv() argument 73 assert(argc >= 0); in parse_argv() 76 while ((c = getopt_long(argc, argv, "sr:h", options, NULL)) >= 0) in parse_argv() 107 static int hwdb_main(int argc, char *argv[]) { in hwdb_main() argument 114 return dispatch_verb(argc, argv, verbs, NULL); in hwdb_main() 117 static int run(int argc, char *argv[]) { in run() argument 123 r = parse_argv(argc, argv); in run() 131 return hwdb_main(argc, argv); in run()
|
/systemd-251/src/locale/ |
D | localectl.c | 119 static int show_status(int argc, char **argv, void *userdata) { in show_status() argument 156 static int set_locale(int argc, char **argv, void *userdata) { in set_locale() argument 186 static int list_locales(int argc, char **argv, void *userdata) { in list_locales() argument 200 static int set_vconsole_keymap(int argc, char **argv, void *userdata) { in set_vconsole_keymap() argument 211 toggle_map = argc > 2 ? argv[2] : ""; in set_vconsole_keymap() 226 static int list_vconsole_keymaps(int argc, char **argv, void *userdata) { in list_vconsole_keymaps() argument 241 static int set_x11_keymap(int argc, char **argv, void *userdata) { in set_x11_keymap() argument 250 model = argc > 2 ? argv[2] : ""; in set_x11_keymap() 251 variant = argc > 3 ? argv[3] : ""; in set_x11_keymap() 252 options = argc > 4 ? argv[4] : ""; in set_x11_keymap() [all …]
|
/systemd-251/src/hostname/ |
D | hostnamectl.c | 363 static int show_status(int argc, char **argv, void *userdata) { in show_status() argument 431 static int set_hostname(int argc, char **argv, void *userdata) { in set_hostname() argument 517 static int get_or_set_hostname(int argc, char **argv, void *userdata) { in get_or_set_hostname() argument 518 return argc == 1 ? get_hostname_based_on_flag(userdata) : in get_or_set_hostname() 519 set_hostname(argc, argv, userdata); in get_or_set_hostname() 522 static int get_or_set_icon_name(int argc, char **argv, void *userdata) { in get_or_set_icon_name() argument 523 return argc == 1 ? get_one_name(userdata, "IconName", NULL) : in get_or_set_icon_name() 527 static int get_or_set_chassis(int argc, char **argv, void *userdata) { in get_or_set_chassis() argument 528 return argc == 1 ? get_one_name(userdata, "Chassis", NULL) : in get_or_set_chassis() 532 static int get_or_set_deployment(int argc, char **argv, void *userdata) { in get_or_set_deployment() argument [all …]
|
/systemd-251/src/login/ |
D | loginctl.c | 116 static int list_sessions(int argc, char *argv[], void *userdata) { in list_sessions() argument 190 static int list_users(int argc, char *argv[], void *userdata) { in list_users() argument 240 static int list_seats(int argc, char *argv[], void *userdata) { in list_seats() argument 799 static int show_session(int argc, char *argv[], void *userdata) { in show_session() argument 813 if (argc <= 1) { in show_session() 821 for (int i = 1; i < argc; i++) { in show_session() 838 static int show_user(int argc, char *argv[], void *userdata) { in show_user() argument 850 if (argc <= 1) { in show_user() 858 for (int i = 1; i < argc; i++) { in show_user() 895 static int show_seat(int argc, char *argv[], void *userdata) { in show_seat() argument [all …]
|
/systemd-251/src/import/ |
D | export.c | 60 static int export_tar(int argc, char *argv[], void *userdata) { in export_tar() argument 79 if (argc >= 3) in export_tar() 136 static int export_raw(int argc, char *argv[], void *userdata) { in export_raw() argument 155 if (argc >= 3) in export_raw() 202 static int help(int argc, char *argv[], void *userdata) { in help() argument 217 static int parse_argv(int argc, char *argv[]) { in parse_argv() argument 233 assert(argc >= 0); in parse_argv() 236 while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0) in parse_argv() 270 static int export_main(int argc, char *argv[]) { in export_main() argument 278 return dispatch_verb(argc, argv, verbs, NULL); in export_main() [all …]
|
D | import.c | 129 static int import_tar(int argc, char *argv[], void *userdata) { in import_tar() argument 137 if (argc >= 2) in import_tar() 140 if (argc >= 3) in import_tar() 201 static int import_raw(int argc, char *argv[], void *userdata) { in import_raw() argument 209 if (argc >= 2) in import_raw() 212 if (argc >= 3) in import_raw() 265 static int help(int argc, char *argv[], void *userdata) { in help() argument 297 static int parse_argv(int argc, char *argv[]) { in parse_argv() argument 331 assert(argc >= 0); in parse_argv() 334 while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0) in parse_argv() [all …]
|
D | import-fs.c | 100 static int import_fs(int argc, char *argv[], void *userdata) { in import_fs() argument 108 if (argc >= 2) in import_fs() 111 if (argc >= 3) in import_fs() 254 static int help(int argc, char *argv[], void *userdata) { in help() argument 281 static int parse_argv(int argc, char *argv[]) { in parse_argv() argument 309 assert(argc >= 0); in parse_argv() 312 while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0) in parse_argv() 369 static int import_fs_main(int argc, char *argv[]) { in import_fs_main() argument 377 return dispatch_verb(argc, argv, verbs, NULL); in import_fs_main() 380 static int run(int argc, char *argv[]) { in run() argument [all …]
|
D | pull.c | 105 static int pull_tar(int argc, char *argv[], void *userdata) { in pull_tar() argument 116 if (argc >= 3) in pull_tar() 178 static int pull_raw(int argc, char *argv[], void *userdata) { in pull_raw() argument 189 if (argc >= 3) in pull_raw() 239 static int help(int argc, char *argv[], void *userdata) { in help() argument 278 static int parse_argv(int argc, char *argv[]) { in parse_argv() argument 322 assert(argc >= 0); in parse_argv() 325 while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0) in parse_argv() 526 static int pull_main(int argc, char *argv[]) { in pull_main() argument 534 return dispatch_verb(argc, argv, verbs, NULL); in pull_main() [all …]
|
/systemd-251/src/oom/ |
D | oomctl.c | 15 static int help(int argc, char *argv[], void *userdata) { in help() argument 44 static int dump_state(int argc, char *argv[], void *userdata) { in dump_state() argument 77 static int parse_argv(int argc, char *argv[]) { in parse_argv() argument 92 assert(argc >= 0); in parse_argv() 95 while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0) in parse_argv() 119 static int run(int argc, char* argv[]) { in run() argument 132 r = parse_argv(argc, argv); in run() 136 return dispatch_verb(argc, argv, verbs, NULL); in run()
|
/systemd-251/src/machine/ |
D | machinectl.c | 266 static int list_machines(int argc, char *argv[], void *userdata) { in list_machines() argument 345 static int list_images(int argc, char *argv[], void *userdata) { in list_images() argument 696 static int show_machine(int argc, char *argv[], void *userdata) { in show_machine() argument 710 if (properties && argc <= 1) { in show_machine() 719 for (int i = 1; i < argc; i++) { in show_machine() 995 static int show_image(int argc, char *argv[], void *userdata) { in show_image() argument 1009 if (argc <= 1) { in show_image() 1022 for (int i = 1; i < argc; i++) { in show_image() 1042 static int kill_machine(int argc, char *argv[], void *userdata) { in kill_machine() argument 1054 for (int i = 1; i < argc; i++) { in kill_machine() [all …]
|
/systemd-251/src/tmpfiles/ |
D | test-offline-passwd.c | 42 static int parse_argv(int argc, char *argv[]) { in parse_argv() argument 50 assert_se(argc >= 0); in parse_argv() 53 while ((c = getopt_long(argc, argv, "r:", options, NULL)) >= 0) in parse_argv() 69 int main(int argc, char **argv) { in main() argument 74 r = parse_argv(argc, argv); in main() 78 if (optind >= argc) in main() 81 while (optind < argc) in main()
|
/systemd-251/src/systemctl/ |
D | systemctl-compat-shutdown.c | 41 int shutdown_parse_argv(int argc, char *argv[]) { in shutdown_parse_argv() argument 62 assert(argc >= 0); in shutdown_parse_argv() 65 while ((c = getopt_long(argc, argv, "HPrhkKat:fFc", options, NULL)) >= 0) in shutdown_parse_argv() 125 if (argc > optind && arg_action != ACTION_CANCEL_SHUTDOWN) { in shutdown_parse_argv() 134 if (argc > optind && arg_action == ACTION_CANCEL_SHUTDOWN) in shutdown_parse_argv() 137 else if (argc > optind + 1) in shutdown_parse_argv() 148 optind = argc; in shutdown_parse_argv()
|
D | systemctl-compat-halt.c | 53 int halt_parse_argv(int argc, char *argv[]) { in halt_parse_argv() argument 76 assert(argc >= 0); in halt_parse_argv() 84 while ((c = getopt_long(argc, argv, "pfwdnih", options, NULL)) >= 0) in halt_parse_argv() 135 if (arg_action == ACTION_REBOOT && (argc == optind || argc == optind + 1)) { in halt_parse_argv() 136 … r = update_reboot_parameter_and_warn(argc == optind + 1 ? argv[optind] : NULL, false); in halt_parse_argv() 139 } else if (optind < argc) in halt_parse_argv()
|
D | systemctl.c | 380 static int systemctl_parse_argv(int argc, char *argv[]) { in systemctl_parse_argv() argument 489 assert(argc >= 0); in systemctl_parse_argv() 495 while ((c = getopt_long(argc, argv, "ht:p:P:alqfs:H:M:n:o:iTr.::", options, NULL)) >= 0) in systemctl_parse_argv() 943 if (optind + 1 < argc) in systemctl_parse_argv() 954 if (optind + 1 >= argc) in systemctl_parse_argv() 962 int systemctl_dispatch_parse_argv(int argc, char *argv[]) { in systemctl_dispatch_parse_argv() argument 963 assert(argc >= 0); in systemctl_dispatch_parse_argv() 968 return halt_parse_argv(argc, argv); in systemctl_dispatch_parse_argv() 972 return halt_parse_argv(argc, argv); in systemctl_dispatch_parse_argv() 979 return halt_parse_argv(argc, argv); in systemctl_dispatch_parse_argv() [all …]
|
D | systemctl-log-setting.c | 24 int verb_log_setting(int argc, char *argv[], void *userdata) { in verb_log_setting() argument 28 assert(argc >= 1 && argc <= 2); in verb_log_setting() 69 int verb_service_log_setting(int argc, char *argv[], void *userdata) { in verb_service_log_setting() argument 74 assert(argc >= 2 && argc <= 3); in verb_service_log_setting()
|
/systemd-251/src/test/ |
D | test-chase-symlinks.c | 13 static int parse_argv(int argc, char *argv[]) { in parse_argv() argument 37 assert_se(argc >= 0); in parse_argv() 40 while ((c = getopt_long(argc, argv, "", options, NULL)) >= 0) in parse_argv() 78 if (optind == argc) in parse_argv() 84 static int run(int argc, char **argv) { in run() argument 89 r = parse_argv(argc, argv); in run() 93 for (int i = optind; i < argc; i++) { in run()
|
/systemd-251/src/ac-power/ |
D | ac-power.c | 19 static int parse_argv(int argc, char *argv[]) { in parse_argv() argument 34 assert(argc >= 0); in parse_argv() 37 while ((c = getopt_long(argc, argv, "hv", options, NULL)) >= 0) in parse_argv() 59 if (optind < argc) in parse_argv() 67 static int run(int argc, char *argv[]) { in run() argument 76 r = parse_argv(argc, argv); in run()
|
/systemd-251/src/integritysetup/ |
D | integritysetup.c | 89 static int run(int argc, char *argv[]) { in run() argument 94 if (argv_looks_like_help(argc, argv)) in run() 97 if (argc < 3) in run() 117 if (argc < 4) in run() 120 if (argc > 6) in run() 124 key_file = mangle_none(argc > 4 ? argv[4] : NULL); in run() 125 options = mangle_none(argc > 5 ? argv[5] : NULL); in run() 177 if (argc > 3) in run()
|
/systemd-251/src/binfmt/ |
D | binfmt.c | 134 static int parse_argv(int argc, char *argv[]) { in parse_argv() argument 153 assert(argc >= 0); in parse_argv() 156 while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0) in parse_argv() 185 if ((arg_unregister || arg_cat_config) && argc > optind) in parse_argv() 192 static int run(int argc, char *argv[]) { in run() argument 195 r = parse_argv(argc, argv); in run() 208 if (argc > optind) in run() 209 for (int i = optind; i < argc; i++) { in run()
|
/systemd-251/src/path/ |
D | path.c | 152 static int parse_argv(int argc, char *argv[]) { in parse_argv() argument 167 assert(argc >= 0); in parse_argv() 170 while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0) in parse_argv() 194 static int run(int argc, char* argv[]) { in run() argument 201 r = parse_argv(argc, argv); in run() 205 if (argc > optind) { in run() 208 for (i = optind; i < argc; i++) { in run()
|
/systemd-251/src/shared/ |
D | main-func.h | 16 int main(int argc, char *argv[]) { \ 18 assert_se(argc > 0 && !isempty(argv[0])); \ 19 save_argc_argv(argc, argv); \ 35 _DEFINE_MAIN_FUNCTION(,impl(argc, argv), r < 0 ? EXIT_FAILURE : EXIT_SUCCESS) 41 _DEFINE_MAIN_FUNCTION(,impl(argc, argv), r < 0 ? EXIT_FAILURE : r)
|
/systemd-251/src/detect-virt/ |
D | detect-virt.c | 49 static int parse_argv(int argc, char *argv[]) { in parse_argv() argument 71 assert(argc >= 0); in parse_argv() 74 while ((c = getopt_long(argc, argv, "hqcvr", options, NULL)) >= 0) in parse_argv() 115 if (optind < argc) in parse_argv() 123 static int run(int argc, char *argv[]) { in run() argument 133 r = parse_argv(argc, argv); in run()
|