/coreutils/src/ |
D | force-link.c | 80 try_link (char *dest, void *arg) in try_link() argument 82 struct link_arg *a = arg; in try_link() 109 struct link_arg arg = { srcdir, srcname, dstdir, flags }; in force_linkat() local 112 if (try_tempname_len (dsttmp, 0, &arg, try_link, x_suffix_len) != 0) in force_linkat() 138 try_symlink (char *dest, void *arg) in try_symlink() argument 140 struct symlink_arg *a = arg; in try_symlink() 164 struct symlink_arg arg = { srcname, dstdir }; in force_symlinkat() local 167 if (try_tempname_len (dsttmp, 0, &arg, try_symlink, x_suffix_len) != 0) in force_symlinkat()
|
D | dircolors.c | 146 parse_line (char const *line, char **keyword, char **arg) in parse_line() argument 153 *arg = nullptr; in parse_line() 191 *arg = ximemdup0 (arg_start, p - arg_start); in parse_line() 239 append_entry (char prefix, char const *item, char const *arg) in append_entry() argument 244 append_quoted (arg); in append_entry() 251 append_quoted (arg); in append_entry() 291 char *keywd, *arg; in dc_parse_stream() local 318 parse_line (line, &keywd, &arg); in dc_parse_stream() 323 if (arg == nullptr) in dc_parse_stream() 336 state = fnmatch (arg, term, 0) == 0 ? ST_TERMSURE : ST_TERMNO; in dc_parse_stream() [all …]
|
D | printf.c | 387 intmax_t arg = vstrtoimax (argument); in print_direc() local 391 xprintf (p, arg); in print_direc() 393 xprintf (p, precision, arg); in print_direc() 398 xprintf (p, field_width, arg); in print_direc() 400 xprintf (p, field_width, precision, arg); in print_direc() 410 uintmax_t arg = vstrtoumax (argument); in print_direc() local 414 xprintf (p, arg); in print_direc() 416 xprintf (p, precision, arg); in print_direc() 421 xprintf (p, field_width, arg); in print_direc() 423 xprintf (p, field_width, precision, arg); in print_direc() [all …]
|
D | stty.c | 440 static bool recover_mode (char const *arg, struct termios *mode); 446 static speed_t string_to_baud (char const *arg); 459 char const *arg, 461 static void set_speed (enum speed_setting type, char const *arg, 1103 #define check_argument(arg) \ in apply_settings() argument 1108 error (0, 0, _("missing argument to %s"), quote (arg)); \ in apply_settings() 1116 char const *arg = settings[k]; in apply_settings() local 1122 if (! arg) in apply_settings() 1125 if (arg[0] == '-') in apply_settings() 1127 ++arg; in apply_settings() [all …]
|
D | seq.c | 147 scan_arg (char const *arg) in scan_arg() argument 151 if (! xstrtold (arg, nullptr, &ret.value, cl_strtold)) in scan_arg() 153 error (0, 0, _("invalid floating point argument: %s"), quote (arg)); in scan_arg() 160 quote_n (1, arg)); in scan_arg() 165 while (isspace (to_uchar (*arg)) || *arg == '+') in scan_arg() 166 arg++; in scan_arg() 173 char const *decimal_point = strchr (arg, '.'); in scan_arg() 174 if (! decimal_point && ! strchr (arg, 'p') /* not a hex float */) in scan_arg() 178 if (! arg[strcspn (arg, "xX")] && isfinite (ret.value)) in scan_arg() 181 ret.width = strlen (arg); in scan_arg() [all …]
|
D | kill.c | 178 char const *arg = *argv; in send_signals() local 183 intmax_t n = (errno = 0, strtoimax (arg, &endp, 10)); in send_signals() 187 || arg == endp || *endp) in send_signals() 189 error (0, 0, _("%s: invalid process id"), quote (arg)); in send_signals() 194 error (0, errno, "%s", quote (arg)); in send_signals() 198 while ((arg = *++argv)); in send_signals()
|
D | rm.c | 109 char const *arg = argv[i]; in diagnose_leading_hyphen() local 112 if (arg[0] == '-' && arg[1] && lstat (arg, &st) == 0) in diagnose_leading_hyphen() 117 quotearg_n_style (1, shell_escape_quoting_style, arg), in diagnose_leading_hyphen() 118 quoteaf (arg)); in diagnose_leading_hyphen()
|
D | system.h | 813 #define quotef(arg) \ argument 814 quotearg_n_style_colon (0, shell_escape_quoting_style, arg) 815 #define quotef_n(n, arg) \ argument 816 quotearg_n_style_colon (n, shell_escape_quoting_style, arg) 820 #define quoteaf(arg) \ argument 821 quotearg_style (shell_escape_always_quoting_style, arg) 822 #define quoteaf_n(n, arg) \ argument 823 quotearg_n_style (n, shell_escape_always_quoting_style, arg)
|
D | stat.c | 688 out_string (char *pformat, size_t prefix_len, char const *arg) in out_string() argument 691 printf (pformat, arg); in out_string() 694 out_int (char *pformat, size_t prefix_len, intmax_t arg) in out_int() argument 697 return printf (pformat, arg); in out_int() 700 out_uint (char *pformat, size_t prefix_len, uintmax_t arg) in out_uint() argument 703 return printf (pformat, arg); in out_uint() 706 out_uint_o (char *pformat, size_t prefix_len, uintmax_t arg) in out_uint_o() argument 709 printf (pformat, arg); in out_uint_o() 712 out_uint_x (char *pformat, size_t prefix_len, uintmax_t arg) in out_uint_x() argument 715 printf (pformat, arg); in out_uint_x() [all …]
|
D | stdbuf.c | 136 set_program_path (char const *arg) in set_program_path() argument 138 if (strchr (arg, '/')) /* Use absolute or relative paths directly. */ in set_program_path() 140 program_path = dir_name (arg); in set_program_path() 154 char *candidate = file_name_concat (dir, arg, nullptr); in set_program_path()
|
D | cp.c | 700 char *arg = file[i]; in do_copy() local 705 strip_trailing_slashes (arg); in do_copy() 715 ASSIGN_STRDUPA (arg_no_trailing_slash, arg); in do_copy() 736 ASSIGN_STRDUPA (arg_base, last_component (arg)); in do_copy() 757 ok &= copy (arg, dst_name, target_dirfd, dst_relname, in do_copy() 876 decode_preserve_arg (char const *arg, struct cp_options *x, bool on_off) in decode_preserve_arg() argument 902 char *arg_writable = xstrdup (arg); in decode_preserve_arg()
|
D | chmod.c | 470 char const *arg = argv[optind - 1]; in main() local 471 idx_t arg_len = strlen (arg); in main() 479 memcpy (mode + mode_comma_len, arg, arg_len + 1); in main()
|
D | split.c | 1301 strtoint_die (char const *msgid, char const *arg) in strtoint_die() argument 1304 gettext (msgid), quote (arg)); in strtoint_die() 1317 parse_n_units (char const *arg, char const *multipliers, char const *msgid) in parse_n_units() argument 1320 if (OVERFLOW_OK < xstrtoimax (arg, nullptr, 10, &n, multipliers) || n < 1) in parse_n_units() 1321 strtoint_die (msgid, arg); in parse_n_units() 1328 parse_chunk (intmax_t *k_units, intmax_t *n_units, char const *arg) in parse_chunk() argument 1331 strtol_error e = xstrtoimax (arg, &argend, 10, n_units, ""); in parse_chunk() 1339 quote_mem (arg, argend - arg)); in parse_chunk() 1342 strtoint_die (N_("invalid number of chunks"), arg); in parse_chunk()
|
D | pr.c | 430 static void getoptarg (char *arg, char switch_char, char *character, 1168 getoptarg (char *arg, char switch_char, char *character, int *number) in getoptarg() argument 1170 if (!*arg) in getoptarg() 1172 error (0, 0, _("'-%c': Invalid argument: %s"), switch_char, quote (arg)); in getoptarg() 1176 if (!ISDIGIT (*arg)) in getoptarg() 1177 *character = *arg++; in getoptarg() 1178 if (*arg) in getoptarg() 1181 strtol_error e = xstrtol (arg, nullptr, 10, &tmp_long, ""); in getoptarg() 1193 switch_char, quote (arg)); in getoptarg()
|
D | test.c | 510 char const *arg; in unary_operator() local 512 arg = find_int (argv[pos - 1]); in unary_operator() 514 fd = strtol (arg, nullptr, 10); in unary_operator()
|
D | join.c | 953 char *arg = names[op0]; in add_file_name() local 962 set_join_field (&join_field_1, string_to_join_field (arg)); in add_file_name() 967 set_join_field (&join_field_2, string_to_join_field (arg)); in add_file_name() 971 add_field_list (arg); in add_file_name()
|
D | df.c | 167 char const *arg; member 431 decode_output_arg (char const *arg) in decode_output_arg() argument 433 char *arg_writable = xstrdup (arg); in decode_output_arg() 448 if (STREQ (field_data[i].arg, s)) in decode_output_arg() 464 quote (field_data[field].arg)); in decode_output_arg()
|
/coreutils/ |
D | .gitignore | 54 /lib/arg-nonnull.h
|
/coreutils/tests/ |
D | local.mk | 633 tests/ls/no-arg.sh \
|
/coreutils/doc/ |
D | coreutils.texi | 5173 shuf -e [@var{option}]@dots{} [@var{arg}]@dots{} 16015 @macro primaryAndSupplementaryGroups{cmd,arg} 16020 Running @command{\cmd\} with a \arg\ causes the user and group 17934 arg[0]= 'uname' 17935 arg[1]= '-s' 18097 arg[0]= 'perl' 18098 arg[1]= '-T' 18099 arg[2]= '-w' 18100 arg[3]= './hello-debug.pl' 18113 arg[0]= 'perl' [all …]
|