Searched refs:optind (Results 26 - 50 of 258) sorted by relevance

1234567891011

/haiku-fatelf/src/bin/network/wget/lib/
H A Dgetopt1.c94 int this_option_optind = optind ? optind : 1;
161 if (optind < argc)
164 while (optind < argc)
165 printf ("%s ", argv[optind++]);
H A Dgetopt.c82 Otherwise, `optind' communicates from one call to the next
86 int optind = 1;
143 The other is elements [last_nonopt,optind), which contains all
154 int top = d->optind;
224 d->__first_nonopt += (d->optind - d->__last_nonopt);
225 d->__last_nonopt = d->optind;
238 d->__first_nonopt = d->__last_nonopt = d->optind;
305 updating `optind' and `nextchar' so that the next call to `getopt' can
309 Then `optind' is the index in ARGV of the first ARGV-element
364 if (d->optind
85 int optind = 1; variable
[all...]
H A Dgetopt.in.h44 # undef optind macro
54 # define optind __GETOPT_ID (optind) macro
125 Otherwise, `optind' communicates from one call to the next
128 extern int optind;
/haiku-fatelf/src/bin/sharutils/lib/
H A Dgetopt1.c104 int this_option_optind = optind ? optind : 1;
171 if (optind < argc)
174 while (optind < argc)
175 printf ("%s ", argv[optind++]);
/haiku-fatelf/src/system/libroot/posix/glibc/extensions/
H A Dgetopt1.c120 int this_option_optind = optind ? optind : 1;
187 if (optind < argc)
190 while (optind < argc)
191 printf ("%s ", argv[optind++]);
/haiku-fatelf/src/bin/coreutils/lib/
H A Dgetopt.c83 Otherwise, `optind' communicates from one call to the next
87 int optind = 1;
144 The other is elements [last_nonopt,optind), which contains all
155 int top = d->optind;
225 d->__first_nonopt += (d->optind - d->__last_nonopt);
226 d->__last_nonopt = d->optind;
240 d->__first_nonopt = d->__last_nonopt = d->optind;
307 updating `optind' and `nextchar' so that the next call to `getopt' can
311 Then `optind' is the index in ARGV of the first ARGV-element
367 if (d->optind
86 int optind = 1; variable
[all...]
H A Dgetopt.h46 # undef optind macro
56 # define optind __GETOPT_ID (optind) macro
127 Otherwise, `optind' communicates from one call to the next
130 extern int optind;
H A Dgetopt.in.h61 # undef optind macro
72 # define optind __GETOPT_ID (optind) macro
147 Otherwise, `optind' communicates from one call to the next
150 extern int optind;
/haiku-fatelf/src/bin/findutils/gnulib/lib/
H A Dgetopt.c86 Otherwise, `optind' communicates from one call to the next
90 int optind = 1;
147 The other is elements [last_nonopt,optind), which contains all
158 int top = d->optind;
228 d->__first_nonopt += (d->optind - d->__last_nonopt);
229 d->__last_nonopt = d->optind;
242 d->__first_nonopt = d->__last_nonopt = d->optind;
309 updating `optind' and `nextchar' so that the next call to `getopt' can
313 Then `optind' is the index in ARGV of the first ARGV-element
368 if (d->optind
89 int optind = 1; variable
[all...]
H A Dgetopt.in.h43 # undef optind macro
53 # define optind __GETOPT_ID (optind) macro
124 Otherwise, `optind' communicates from one call to the next
127 extern int optind;
/haiku-fatelf/src/bin/coreutils/src/
H A Dbasename.c111 if (argc < optind + 1)
117 if (optind + 2 < argc)
119 error (0, 0, _("extra operand %s"), quote (argv[optind + 2]));
123 name = base_name (argv[optind]);
132 if (argc == optind + 2 && IS_RELATIVE_FILE_NAME (name)
134 remove_suffix (name, argv[optind + 1]);
H A Dgroups.c96 if (optind == argc)
110 while (optind < argc)
112 struct passwd *pwd = getpwnam (argv[optind]);
114 error (EXIT_FAILURE, 0, _("%s: No such user"), argv[optind]);
118 printf ("%s : ", argv[optind]);
119 if (!print_group_list (argv[optind++], ruid, rgid, egid, true))
H A Ddirname.c89 if (argc < optind + 1)
95 if (optind + 1 < argc)
97 error (0, 0, _("extra operand %s"), quote (argv[optind + 1]));
101 result = argv[optind];
H A Dmkfifo.c107 if (optind == argc)
131 for (; optind < argc; ++optind)
132 if (mkfifo (argv[optind], newmode) != 0)
134 error (0, errno, _("cannot create fifo %s"), quote (argv[optind]));
H A Druncon.c171 if (argc - optind == 0)
182 if (optind >= argc)
187 context = argv[optind++];
190 if (optind >= argc)
216 if (getfilecon (argv[optind], &file_context) == -1)
219 quote (argv[optind]));
257 execvp (argv[optind], argv + optind);
261 error (0, errno, "%s", argv[optind]);
H A Dreadlink.c142 if (optind >= argc)
148 fname = argv[optind++];
150 if (optind < argc)
152 error (0, 0, _("extra operand %s"), quote (argv[optind]));
/haiku-fatelf/src/libs/pdflib/progs/pdflib/
H A Dpdfimage.c29 extern int optind;
39 #include <libc.h> /* for getopt(), optind, optarg */
43 #include <getopt.h> /* for getopt(), optind, optarg */
111 if (optind == argc) {
130 while (optind++ < argc) {
131 fprintf(stderr, "Processing image file '%s'...\n", argv[optind-1]);
133 image = PDF_load_image(p, "auto", argv[optind-1], 0, "");
149 PDF_add_bookmark(p, argv[optind-1], 0, 0);
/haiku-fatelf/src/bin/gdb/gdb/mi/
H A Dmi-cmd-env.c119 int optind = 0; local
145 &optind, &optarg);
155 argv += optind;
156 argc -= optind;
191 int optind = 0; local
217 &optind, &optarg);
227 argv += optind;
228 argc -= optind;
H A Dmi-cmd-disas.c75 int optind = 0; local
95 &optind, &optarg);
122 argv += optind;
123 argc -= optind;
/haiku-fatelf/src/bin/screenmode/
H A Dscreenmode.cpp158 if (argc - optind > 0) {
164 int parsed = sscanf(argv[optind], "%dx%dx%d", &width, &height,
167 depthIndex = optind + 1;
169 if (argc - optind > 1) {
170 height = strtol(argv[optind + 1], NULL, 0);
171 depthIndex = optind + 2;
183 if (argc - optind < 9)
186 mode.timing.pixel_clock = strtol(argv[optind], NULL, 0) * 1000;
187 mode.timing.h_display = strtol(argv[optind + 1], NULL, 0);
188 mode.timing.h_sync_start = strtol(argv[optind
[all...]
/haiku-fatelf/src/bin/network/wget/util/
H A Dtrunc.c97 if (argv[optind] == NULL
98 || argv[optind+1] == NULL
99 || argv[optind+2] != NULL)
105 fname = argv[optind];
106 szstr = argv[optind+1];
/haiku-fatelf/src/bin/package/
H A Dcommand_add.cpp86 if (optind >= argc)
89 const char* packageFileName = argv[optind++];
93 if (optind >= argc && packageInfoFileName == NULL)
96 const char* const* entriesToAdd = argv + optind;
97 int entriesToAddCount = argc - optind;
/haiku-fatelf/src/bin/addattr/
H A Dmain.cpp216 if (argc - optind < 1)
218 const char *attrName = argv[optind++];
220 if (argc - optind < 1)
223 attrValue = argv[optind++];
225 if (argc - optind < 1)
233 for (; optind < argc; optind++) {
234 status_t status = addAttr(argv[optind], attrType, attrName, attrValue,
242 ERR("can't add attribute to file %s: %s\n", argv[optind],
/haiku-fatelf/src/tests/kits/net/sock/
H A Dmain.c329 if (optind != argc-2)
331 host = argv[optind];
332 port = argv[optind+1];
337 if (optind == argc-2) {
338 host = argv[optind];
339 port = argv[optind+1];
340 } else if (optind == argc-1) {
342 port = argv[optind];
/haiku-fatelf/src/bin/bash/support/
H A Dbashversion.c44 extern int optind;
110 argc -= optind;
111 argv += optind;

Completed in 267 milliseconds

1234567891011