/coreutils/src/ |
D | nl.c | 251 switch (*optarg) in build_type_arg() 256 *typep = optarg; in build_type_arg() 259 *typep = optarg++; in build_type_arg() 266 errmsg = re_compile_pattern (optarg, strlen (optarg), regexp); in build_type_arg() 502 quote (optarg)); in main() 510 quote (optarg)); in main() 518 quote (optarg)); in main() 523 starting_line_number = xdectoimax (optarg, INTMAX_MIN, INTMAX_MAX, "", in main() 528 page_incr = xdectoimax (optarg, INTMAX_MIN, INTMAX_MAX, "", in main() 535 blank_join = xdectoimax (optarg, 1, INTMAX_MAX, "", in main() [all …]
|
D | truncate.c | 228 ref_file = optarg; in main() 233 while (isspace (to_uchar (*optarg))) in main() 234 optarg++; in main() 235 switch (*optarg) in main() 239 optarg++; in main() 243 optarg++; in main() 247 optarg++; in main() 251 optarg++; in main() 255 while (isspace (to_uchar (*optarg))) in main() 256 optarg++; in main() [all …]
|
D | stdbuf.c | 44 char *optarg; member 281 if (stdbuf[i].optarg) in set_libstdbuf_options() 286 if (*stdbuf[i].optarg == 'L') in set_libstdbuf_options() 335 while (c_isspace (*optarg)) in main() 336 optarg++; in main() 337 stdbuf[opt_fileno].optarg = optarg; in main() 338 if (c == 'i' && *optarg == 'L') in main() 347 if (!STREQ (optarg, "L") in main() 348 && parse_size (optarg, &stdbuf[opt_fileno].size) == -1) in main() 349 error (EXIT_CANCELED, errno, _("invalid mode %s"), quote (optarg)); in main()
|
D | mkfifo.c | 97 specified_mode = optarg; in main() 103 scontext = optarg; in main() 107 if (optarg) in main() 108 scontext = optarg; in main() 117 else if (optarg) in main()
|
D | uniq.c | 533 if (optarg[0] == '+' in main() 535 && xstrtoumax (optarg, nullptr, 10, &size, "") == LONGINT_OK in main() 540 error (0, 0, _("extra operand %s"), quote (optarg)); in main() 544 file[nfiles++] = optarg; in main() 582 if (optarg == nullptr) in main() 585 delimit_groups = XARGMATCH ("--all-repeated", optarg, in main() 592 if (optarg == nullptr) in main() 595 grouping = XARGMATCH ("--group", optarg, in main() 602 skip_fields = size_opt (optarg, in main() 611 skip_chars = size_opt (optarg, in main() [all …]
|
D | kill.c | 239 if (! optarg) in main() 240 optarg = argv[optind - 1] + strlen (argv[optind - 1]); in main() 241 if (optarg != argv[optind - 1] + 2) in main() 246 optarg--; in main() 252 error (0, 0, _("%s: multiple signals specified"), quote (optarg)); in main() 255 signum = operand2sig (optarg, signame); in main()
|
D | split.c | 1386 suffix_length = xdectoimax (optarg, 0, IDX_MAX, in main() 1392 int suffix_len = strlen (optarg); in main() 1393 if (last_component (optarg) != optarg in main() 1394 || (suffix_len && ISSLASH (optarg[suffix_len - 1]))) in main() 1398 quote (optarg)); in main() 1402 additional_suffix = optarg; in main() 1409 n_units = parse_n_units (optarg, multipliers, in main() 1417 n_units = parse_n_units (optarg, "", N_("invalid number of lines")); in main() 1424 n_units = parse_n_units (optarg, multipliers, in main() 1432 while (isspace (to_uchar (*optarg))) in main() [all …]
|
D | env.c | 539 parse_signal_action_params (char const *optarg, bool set_default) in parse_signal_action_params() argument 545 if (! optarg) in parse_signal_action_params() 556 optarg_writable = xstrdup (optarg); in parse_signal_action_params() 621 parse_block_signal_params (char const *optarg, bool block) in parse_block_signal_params() argument 627 if (! optarg) in parse_block_signal_params() 642 if (! optarg) in parse_block_signal_params() 645 optarg_writable = xstrdup (optarg); in parse_block_signal_params() 775 append_unset_var (optarg); in main() 784 parse_signal_action_params (optarg, true); in main() 785 parse_block_signal_params (optarg, false); in main() [all …]
|
D | join.c | 1031 if (xstrtol (optarg, nullptr, 10, &val, "") != LONGINT_OK in main() 1034 _("invalid field number: %s"), quote (optarg)); in main() 1043 if (empty_filler && ! STREQ (empty_filler, optarg)) in main() 1046 empty_filler = optarg; in main() 1054 set_join_field (&join_field_1, string_to_join_field (optarg)); in main() 1058 set_join_field (&join_field_2, string_to_join_field (optarg)); in main() 1062 if ((optarg[0] == '1' || optarg[0] == '2') && !optarg[1] in main() 1063 && optarg == argv[optind - 1] + 2) in main() 1066 bool is_j2 = (optarg[0] == '2'); in main() 1072 set_join_field (&join_field_1, string_to_join_field (optarg)); in main() [all …]
|
D | du.c | 810 if (xstrtoimax (optarg, nullptr, 0, &tmp, "") == LONGINT_OK in main() 819 quote (optarg)); in main() 841 e = xstrtoimax (optarg, nullptr, 0, &opt_threshold, in main() 844 xstrtol_fatal (e, oi, c, long_options, optarg); in main() 845 if (opt_threshold == 0 && *optarg == '-') in main() 859 enum strtol_error e = human_options (optarg, &human_output_opts, in main() 862 xstrtol_fatal (e, oi, c, long_options, optarg); in main() 884 if (add_exclude_file (add_exclude, exclude, optarg, in main() 887 error (0, errno, "%s", quotef (optarg)); in main() 893 files_from = optarg; in main() [all …]
|
D | cut.c | 516 spec_list_string = optarg; in main() 522 if (optarg[0] != '\0' && optarg[1] != '\0') in main() 524 delim = optarg[0]; in main() 531 output_delimiter_length = (optarg[0] == '\0' in main() 532 ? 1 : strlen (optarg)); in main() 533 output_delimiter_string = optarg; in main()
|
D | mknod.c | 114 specified_mode = optarg; in main() 120 scontext = optarg; in main() 124 if (optarg) in main() 125 scontext = optarg; in main() 134 else if (optarg) in main()
|
D | mkdir.c | 220 specified_mode = optarg; in main() 229 scontext = optarg; in main() 233 if (optarg) in main() 234 scontext = optarg; in main() 243 else if (optarg) in main()
|
D | rm.c | 266 if (optarg) in main() 267 i = XARGMATCH ("--interactive", optarg, interactive_args, in main() 305 if (optarg) in main() 307 if STREQ (optarg, "all") in main() 312 quoteaf (optarg)); in main()
|
D | expand.c | 201 parse_tab_stops (optarg); in main() 206 if (optarg) in main() 207 parse_tab_stops (optarg - 1); in main()
|
D | numfmt.c | 1468 scale_from = XARGMATCH ("--from", optarg, in main() 1473 from_unit_size = unit_to_umax (optarg); in main() 1478 XARGMATCH ("--to", optarg, scale_to_args, scale_to_types); in main() 1482 to_unit_size = unit_to_umax (optarg); in main() 1486 round_style = XARGMATCH ("--round", optarg, round_args, round_types); in main() 1494 if (((xstrtoimax (optarg, nullptr, 10, &padding_width, "") in main() 1499 quote (optarg)); in main() 1507 set_fields (optarg, SETFLD_ALLOW_DASH); in main() 1512 if (optarg[0] != '\0' && optarg[1] != '\0') in main() 1515 delimiter = optarg[0]; in main() [all …]
|
D | pr.c | 909 && *optarg == '+' && first_last_page (-2, '+', optarg + 1))) in main() 910 file_names[n_files++] = optarg; in main() 915 if (! optarg) in main() 918 else if (! first_last_page (oi, 0, optarg)) in main() 920 quote (optarg)); in main() 926 parse_column_count (optarg); in main() 951 date_format = optarg; in main() 954 if (optarg) in main() 955 getoptarg (optarg, 'e', &input_tab_char, in main() 965 custom_header = optarg; in main() [all …]
|
D | cp.c | 999 x.sparse_mode = XARGMATCH ("--sparse", optarg, in main() 1004 if (optarg == nullptr) in main() 1007 x.reflink_mode = XARGMATCH ("--reflink", optarg, in main() 1028 if (optarg) in main() 1029 version_control_string = optarg; in main() 1078 decode_preserve_arg (optarg, &x, false); in main() 1082 if (optarg == nullptr) in main() 1088 decode_preserve_arg (optarg, &x, true); in main() 1126 target_directory = optarg; in main() 1134 if (optarg == nullptr) in main() [all …]
|
D | fold.c | 271 if (optarg) in main() 272 optarg--; in main() 277 optarg = optargbuf; in main() 281 width = xdectoumax (optarg, 1, SIZE_MAX - TAB_WIDTH - 1, "", in main()
|
D | runcon.c | 139 role = optarg; in main() 144 type = optarg; in main() 149 user = optarg; in main() 154 range = optarg; in main()
|
D | date.c | 430 datestr = optarg; in main() 436 batch_file = optarg; in main() 450 XARGMATCH ("--rfc-3339", optarg, in main() 466 (optarg in main() 467 ? XARGMATCH ("--iso-8601", optarg, time_spec_string, time_spec) in main() 473 reference = optarg; in main() 481 set_datestr = optarg; in main()
|
D | touch.c | 290 flex_date = optarg; in main() 306 ref_file = optarg; in main() 310 if (! posixtime (&newtime[0].tv_sec, optarg, in main() 313 quote (optarg)); in main() 320 change_times |= XARGMATCH ("--time", optarg, in main()
|
D | shuf.c | 417 strtol_error err = xstrtoumax (optarg, &lo_end, 10, &u, nullptr); in main() 441 "%s: %s", _("invalid input range"), quote (optarg)); in main() 448 strtol_error e = xstrtoumax (optarg, nullptr, 10, &argval, ""); in main() 454 quote (optarg)); in main() 459 if (outfile && !STREQ (outfile, optarg)) in main() 461 outfile = optarg; in main() 465 if (random_source && !STREQ (random_source, optarg)) in main() 467 random_source = optarg; in main()
|
D | mv.c | 346 if (optarg) in main() 347 version_control_string = optarg; in main() 370 target_directory = optarg; in main() 376 if (optarg == nullptr) in main() 381 update_opt = XARGMATCH ("--update", optarg, in main() 406 backup_suffix = optarg; in main()
|
/coreutils/src/blake2/ |
D | b2sum.c | 284 if( 0 == strcmp( optarg, "blake2b" ) ) 290 else if ( 0 == strcmp( optarg, "blake2s" ) ) 296 else if ( 0 == strcmp( optarg, "blake2bp" ) ) 302 else if ( 0 == strcmp( optarg, "blake2sp" ) ) 310 printf( "Invalid function name: `%s'\n", optarg ); 317 outbits = strtoul(optarg, &end, 10); 320 printf( "Invalid length argument: `%s'\n", optarg);
|