Home
last modified time | relevance | path

Searched refs:argc (Results 1 – 25 of 103) sorted by relevance

12345

/coreutils/src/
Decho.c112 main (int argc, char **argv) in main() argument
118 || (! DEFAULT_ECHO_TO_XPG && 1 < argc && STREQ (argv[1], "-n"))); in main()
125 initialize_main (&argc, &argv); in main()
135 if (allow_options && argc == 2) in main()
148 --argc; in main()
152 while (argc > 0 && *argv[0] == '-') in main()
191 argc--; in main()
199 while (argc > 0) in main()
256 argc--; in main()
258 if (argc > 0) in main()
[all …]
Dprintf.c488 print_formatted (char const *format, int argc, char **argv) in print_formatted() argument
490 int save_argc = argc; /* Preserve original value. */ in print_formatted()
517 if (argc > 0) in print_formatted()
521 --argc; in print_formatted()
528 if (argc > 0) in print_formatted()
533 --argc; in print_formatted()
570 if (argc > 0) in print_formatted()
579 --argc; in print_formatted()
600 if (argc > 0) in print_formatted()
616 --argc; in print_formatted()
[all …]
Dcoreutils-dir.c25 int single_binary_main_ls (int argc, char **argv);
26 int single_binary_main_dir (int argc, char **argv);
29 single_binary_main_dir (int argc, char **argv) in single_binary_main_dir() argument
32 return single_binary_main_ls (argc, argv); in single_binary_main_dir()
Dcoreutils-arch.c25 int single_binary_main_uname (int argc, char **argv);
26 int single_binary_main_arch (int argc, char **argv);
29 single_binary_main_arch (int argc, char **argv) in single_binary_main_arch() argument
32 return single_binary_main_uname (argc, argv); in single_binary_main_arch()
Dcoreutils-vdir.c25 int single_binary_main_ls (int argc, char **argv);
26 int single_binary_main_vdir (int argc, char **argv);
29 single_binary_main_vdir (int argc, char **argv) in single_binary_main_vdir() argument
32 return single_binary_main_ls (argc, argv); in single_binary_main_vdir()
Dlink.c57 main (int argc, char **argv) in main() argument
59 initialize_main (&argc, &argv); in main()
67 parse_gnu_standard_options_only (argc, argv, PROGRAM_NAME, PACKAGE_NAME, in main()
71 if (argc < optind + 2) in main()
73 if (argc < optind + 1) in main()
80 if (optind + 2 < argc) in main()
Dunlink.c56 main (int argc, char **argv) in main() argument
58 initialize_main (&argc, &argv); in main()
66 parse_gnu_standard_options_only (argc, argv, PROGRAM_NAME, PACKAGE_NAME, in main()
70 if (argc < optind + 1) in main()
76 if (optind + 1 < argc) in main()
Dprintenv.c81 main (int argc, char **argv) in main() argument
90 initialize_main (&argc, &argv); in main()
99 while ((optc = getopt_long (argc, argv, "+iu:0", longopts, nullptr)) != -1) in main()
113 if (optind >= argc) in main()
123 for (i = optind; i < argc; ++i) in main()
150 ok = (matches == argc - optind); in main()
Dmknod.c91 main (int argc, char **argv) in main() argument
101 initialize_main (&argc, &argv); in main()
109 while ((optc = getopt_long (argc, argv, "m:Z", longopts, nullptr)) != -1) in main()
167 expected_operands = (argc <= optind in main()
168 || (optind + 1 < argc && argv[optind + 1][0] == 'p') in main()
171 if (argc - optind < expected_operands) in main()
173 if (argc <= optind) in main()
176 error (0, 0, _("missing operand after %s"), quote (argv[argc - 1])); in main()
177 if (expected_operands == 4 && argc - optind == 2) in main()
183 if (expected_operands < argc - optind) in main()
[all …]
Denv.c259 int argc; member
276 idx_t string_bytes = (intptr_t) ss->argv[ss->argc]; in splitbuf_grow()
286 idx_t string_bytes = (intptr_t) ss->argv[ss->argc]; in splitbuf_append_byte()
290 ss->argv[ss->argc] = (char *) (intptr_t) (string_bytes + 1); in splitbuf_append_byte()
301 int argc = ss->argc; in check_start_new_arg() local
302 if (ss->half_alloc <= argc + ss->extra_argc + 1) in check_start_new_arg()
304 ss->argv[argc + 1] = ss->argv[argc]; in check_start_new_arg()
305 ss->argc = argc + 1; in check_start_new_arg()
315 int argc = ss->argc; in splitbuf_finishup() local
318 for (int i = 1; i < argc; i++) in splitbuf_finishup()
[all …]
Dbasename.c123 main (int argc, char **argv) in main() argument
129 initialize_main (&argc, &argv); in main()
139 int c = getopt_long (argc, argv, "+as:z", longopts, nullptr); in main()
167 if (argc < optind + 1) in main()
173 if (!multiple_names && optind + 2 < argc) in main()
181 for (; optind < argc; optind++) in main()
186 optind + 2 == argc ? argv[optind + 1] : nullptr, in main()
Dcoreutils.c130 main (int argc, char **argv) in main() argument
143 launch_program (prog_name, argc, argv); in main()
151 if (argc >= 2) in main()
167 if (argc >= 3) in main()
176 launch_program (prog_name, argc - nskip, argv + nskip); in main()
184 initialize_main (&argc, &argv); in main()
191 if ((optc = getopt_long (argc, argv, "", long_options, nullptr)) != -1) in main()
Dreadlink.c93 main (int argc, char **argv) in main() argument
101 initialize_main (&argc, &argv); in main()
109 while ((optc = getopt_long (argc, argv, "efmnqsvz", longopts, nullptr)) != -1) in main()
142 if (optind >= argc) in main()
148 if (argc - optind > 1) in main()
155 for (; optind < argc; ++optind) in main()
Dhostname.c73 main (int argc, char **argv) in main() argument
77 initialize_main (&argc, &argv); in main()
85 parse_gnu_standard_options_only (argc, argv, PROGRAM_NAME, PACKAGE_NAME, in main()
89 if (optind + 1 < argc) in main()
95 if (optind + 1 == argc) in main()
Dhostid.c53 main (int argc, char **argv) in main() argument
57 initialize_main (&argc, &argv); in main()
65 parse_gnu_standard_options_only (argc, argv, PROGRAM_NAME, PACKAGE_NAME, in main()
69 if (optind < argc) in main()
Dsleep.c95 main (int argc, char **argv) in main() argument
100 initialize_main (&argc, &argv); in main()
108 parse_gnu_standard_options_only (argc, argv, PROGRAM_NAME, PACKAGE_NAME, in main()
112 if (argc == 1) in main()
118 for (int i = optind; i < argc; i++) in main()
Ddirname.c77 main (int argc, char **argv) in main() argument
84 initialize_main (&argc, &argv); in main()
94 int c = getopt_long (argc, argv, "z", longopts, nullptr); in main()
113 if (argc < optind + 1) in main()
119 for (; optind < argc; optind++) in main()
Dlogname.c50 main (int argc, char **argv) in main() argument
54 initialize_main (&argc, &argv); in main()
62 parse_gnu_standard_options_only (argc, argv, PROGRAM_NAME, PACKAGE_NAME, in main()
66 if (optind < argc) in main()
Dwhoami.c56 main (int argc, char **argv) in main() argument
62 initialize_main (&argc, &argv); in main()
70 parse_gnu_standard_options_only (argc, argv, PROGRAM_NAME, PACKAGE_NAME, in main()
74 if (optind != argc) in main()
Dyes.c58 main (int argc, char **argv) in main() argument
60 initialize_main (&argc, &argv); in main()
68 parse_gnu_standard_options_only (argc, argv, PROGRAM_NAME, PACKAGE_NAME, in main()
73 char **operand_lim = argv + argc; in main()
74 if (optind == argc) in main()
Dgroups.c67 main (int argc, char **argv) in main() argument
74 initialize_main (&argc, &argv); in main()
85 while ((optc = getopt_long (argc, argv, "", longopts, nullptr)) != -1) in main()
96 if (optind == argc) in main()
124 for ( ; optind < argc; optind++) in main()
Dtty.c78 main (int argc, char **argv) in main() argument
82 initialize_main (&argc, &argv); in main()
93 while ((optc = getopt_long (argc, argv, "s", longopts, nullptr)) != -1) in main()
110 if (optind < argc) in main()
Drm.c102 diagnose_leading_hyphen (int argc, char **argv) in diagnose_leading_hyphen() argument
107 for (int i = 1; i < argc; i++) in diagnose_leading_hyphen()
212 main (int argc, char **argv) in main() argument
219 initialize_main (&argc, &argv); in main()
232 while ((c = getopt_long (argc, argv, "dfirvIR", long_opts, nullptr)) != -1) in main()
328 diagnose_leading_hyphen (argc, argv); in main()
333 if (argc <= optind) in main()
353 uintmax_t n_files = argc - optind; in main()
Dnproc.c75 main (int argc, char **argv) in main() argument
78 initialize_main (&argc, &argv); in main()
90 int c = getopt_long (argc, argv, "", longopts, nullptr); in main()
112 if (argc != optind) in main()
Dtrue.c55 main (int argc, char **argv) in main() argument
59 if (argc == 2) in main()
61 initialize_main (&argc, &argv); in main()

12345