Symbol: optind
bin/cat/cat.c
109
argv += optind;
bin/chio/chio.c
134
argc -= optind;
bin/chio/chio.c
135
argv += optind;
bin/chio/chio.c
537
optind = optreset = 1;
bin/chio/chio.c
567
argc -= optind;
bin/chio/chio.c
568
argv += optind;
bin/chio/chio.c
771
optind = optreset = 1;
bin/chio/chio.c
789
argc -= optind;
bin/chio/chio.c
790
argv += optind;
bin/chmod/chmod.c
100
argv[optind - 1][2] == '\0')
bin/chmod/chmod.c
101
--optind;
bin/chmod/chmod.c
110
done: argv += optind;
bin/chmod/chmod.c
111
argc -= optind;
bin/chmod/chmod.c
98
if (argv[optind - 1][0] == '-' &&
bin/chmod/chmod.c
99
argv[optind - 1][1] == ch &&
bin/cp/cp.c
155
argc -= optind;
bin/cp/cp.c
156
argv += optind;
bin/cpdup/cpdup.c
286
ac -= optind;
bin/cpdup/cpdup.c
287
av += optind;
bin/date/date.c
160
argc -= optind;
bin/date/date.c
161
argv += optind;
bin/df/df.c
172
argc -= optind;
bin/df/df.c
173
argv += optind;
bin/domainname/domainname.c
57
argc -= optind;
bin/domainname/domainname.c
58
argv += optind;
bin/ed/main.c
124
argv += optind;
bin/ed/main.c
125
argc -= optind;
bin/ed/main.c
129
optind = 1;
bin/hostname/hostname.c
154
argc -= optind;
bin/hostname/hostname.c
155
argv += optind;
bin/ln/ln.c
124
argv += optind;
bin/ln/ln.c
125
argc -= optind;
bin/ln/ln.c
79
argc -= optind;
bin/ln/ln.c
80
argv += optind;
bin/ls/ls.c
330
argc -= optind;
bin/ls/ls.c
331
argv += optind;
bin/mkdir/mkdir.c
77
argc -= optind;
bin/mkdir/mkdir.c
78
argv += optind;
bin/mv/mv.c
104
argc -= optind;
bin/mv/mv.c
105
argv += optind;
bin/pax/getoldopt.c
36
optind = 2;
bin/pax/getoldopt.c
56
if (optind < argc) {
bin/pax/getoldopt.c
57
optarg = argv[optind];
bin/pax/getoldopt.c
58
optind++;
bin/pax/options.c
1225
argc -= optind;
bin/pax/options.c
1226
argv += optind;
bin/pax/options.c
551
for (; optind < argc; optind++)
bin/pax/options.c
552
if (pat_add(argv[optind], NULL) < 0)
bin/pax/options.c
556
if (optind >= argc) {
bin/pax/options.c
567
for (; optind < argc; optind++)
bin/pax/options.c
568
if (ftree_add(argv[optind], 0) < 0)
bin/pax/options.c
808
argc -= optind;
bin/pax/options.c
809
argv += optind;
bin/ps/ps.c
310
argc -= optind;
bin/ps/ps.c
311
argv += optind;
bin/pwd/pwd.c
66
argc -= optind;
bin/pwd/pwd.c
67
argv += optind;
bin/realpath/realpath.c
61
argc -= optind;
bin/realpath/realpath.c
62
argv += optind;
bin/rm/rm.c
150
argc -= optind;
bin/rm/rm.c
151
argv += optind;
bin/rm/rm.c
95
argc -= optind;
bin/rm/rm.c
96
argv += optind;
bin/rmdir/rmdir.c
65
argc -= optind;
bin/rmdir/rmdir.c
66
argv += optind;
bin/sleep/sleep.c
61
argc -= optind;
bin/sleep/sleep.c
62
argv += optind;
bin/stty/stty.c
59
while (optind < argc &&
bin/stty/stty.c
60
strspn(argv[optind], "-aefg") == strlen(argv[optind]) &&
bin/stty/stty.c
81
args: argc -= optind;
bin/stty/stty.c
82
argv += optind;
bin/uuidgen/uuidgen.c
75
argv += optind;
bin/uuidgen/uuidgen.c
76
argc -= optind;
bin/varsym/varsym.c
106
for ( ; optind < ac; optind++) {
bin/varsym/varsym.c
107
char *name = av[optind];
bin/varsym/varsym.c
125
error = doexec(av + optind);
crypto/libressl/apps/nc/netcat.c
360
argc -= optind;
crypto/libressl/apps/nc/netcat.c
361
argv += optind;
crypto/openssh/scp.c
478
extern int optind;
crypto/openssh/scp.c
640
argc -= optind;
crypto/openssh/scp.c
641
argv += optind;
crypto/openssh/session.c
1642
extern int optind, optreset;
crypto/openssh/session.c
1652
optind = optreset = 1;
crypto/openssh/sftp.c
2448
extern int optind;
crypto/openssh/sftp.c
2611
if (optind == argc || argc > (optind + 2))
crypto/openssh/sftp.c
2613
argv += optind;
crypto/openssh/sftp.c
400
extern int opterr, optind, optopt, optreset;
crypto/openssh/sftp.c
403
optind = optreset = 1;
crypto/openssh/sftp.c
429
return optind;
crypto/openssh/sftp.c
435
extern int opterr, optind, optopt, optreset;
crypto/openssh/sftp.c
438
optind = optreset = 1;
crypto/openssh/sftp.c
453
return optind;
crypto/openssh/sftp.c
459
extern int opterr, optind, optopt, optreset;
crypto/openssh/sftp.c
462
optind = optreset = 1;
crypto/openssh/sftp.c
477
return optind;
crypto/openssh/sftp.c
483
extern int opterr, optind, optopt, optreset;
crypto/openssh/sftp.c
486
optind = optreset = 1;
crypto/openssh/sftp.c
530
return optind;
crypto/openssh/sftp.c
536
extern int opterr, optind, optopt, optreset;
crypto/openssh/sftp.c
539
optind = optreset = 1;
crypto/openssh/sftp.c
557
return optind;
crypto/openssh/sftp.c
563
extern int opterr, optind, optopt, optreset;
crypto/openssh/sftp.c
566
optind = optreset = 1;
crypto/openssh/sftp.c
581
return optind;
crypto/openssh/sftp.c
587
extern int opterr, optind, optopt, optreset;
crypto/openssh/sftp.c
590
optind = optreset = 1;
crypto/openssh/sftp.c
601
return optind;
crypto/openssh/ssh-add.c
811
extern int optind;
crypto/openssh/ssh-add.c
981
argc -= optind;
crypto/openssh/ssh-add.c
982
argv += optind;
crypto/openssh/ssh-agent.c
2201
extern int optind;
crypto/openssh/ssh-agent.c
2286
ac -= optind;
crypto/openssh/ssh-agent.c
2287
av += optind;
crypto/openssh/ssh-keygen.c
3367
extern int optind;
crypto/openssh/ssh-keygen.c
3594
argv += optind;
crypto/openssh/ssh-keygen.c
3595
argc -= optind;
crypto/openssh/ssh-keyscan.c
686
extern int optind;
crypto/openssh/ssh-keyscan.c
797
if (optind == argc && !fopt_count)
crypto/openssh/ssh-keyscan.c
851
while (optind < argc)
crypto/openssh/ssh-keyscan.c
852
do_host(argv[optind++]);
crypto/openssh/ssh.c
1106
if (optind > 1 && strcmp(av[optind - 1], "--") == 0)
crypto/openssh/ssh.c
1109
ac -= optind;
crypto/openssh/ssh.c
1110
av += optind;
crypto/openssh/ssh.c
1146
optind = optreset = 1;
crypto/openssh/ssh.c
677
extern int optind, optreset;
crypto/openssh/sshd-session.c
1024
if (optind < ac) {
crypto/openssh/sshd-session.c
1025
fprintf(stderr, "Extra argument %s.\n", av[optind]);
crypto/openssh/sshd-session.c
872
extern int optind;
crypto/openssh/sshd.c
1182
extern int optind;
crypto/openssh/sshd.c
1442
if (optind < ac) {
crypto/openssh/sshd.c
1443
fprintf(stderr, "Extra argument %s.\n", av[optind]);
games/arithmetic/arithmetic.c
131
if (argc -= optind)
games/banner/banner.c
1040
argc -= optind;
games/banner/banner.c
1041
argv += optind;
games/bcd/bcd.c
145
argc -= optind;
games/bcd/bcd.c
146
argv += optind;
games/boggle/boggle/bog.c
124
argc -= optind;
games/boggle/boggle/bog.c
125
argv += optind;
games/bs/bs.c
1156
argc -= optind;
games/bs/bs.c
1157
argv += optind;
games/factor/factor.c
118
argc -= optind;
games/factor/factor.c
119
argv += optind;
games/fortune/fortune/fortune.c
320
argc -= optind;
games/fortune/fortune/fortune.c
321
argv += optind;
games/gomoku/main.c
126
argc -= optind;
games/gomoku/main.c
127
argv += optind;
games/grdc/grdc.c
85
argc -= optind;
games/grdc/grdc.c
86
argv += optind;
games/hunt/hunt/hunt.c
159
if (optind + 1 < ac)
games/hunt/hunt/hunt.c
161
else if (optind + 1 == ac)
games/hunt/huntd/driver.c
127
if (optind < ac)
games/morse/morse.c
446
argc -= optind;
games/morse/morse.c
447
argv += optind;
games/number/number.c
91
argc -= optind;
games/number/number.c
92
argv += optind;
games/phantasia/setup.c
71
argc -= optind;
games/phantasia/setup.c
72
argv += optind;
games/pig/pig.c
58
argc -= optind;
games/pig/pig.c
59
argv += optind;
games/ppt/ppt.c
81
argc -= optind;
games/ppt/ppt.c
82
argv += optind;
games/primes/primes.c
101
argc -= optind;
games/primes/primes.c
102
argv += optind;
games/quiz/quiz.c
88
argc -= optind;
games/quiz/quiz.c
89
argv += optind;
games/random/random.c
102
argc -= optind;
games/random/random.c
103
argv += optind;
games/sail/main.c
153
argc -= optind;
games/sail/main.c
154
argv += optind;
games/tetris/tetris.c
192
argc -= optind;
games/tetris/tetris.c
193
argv += optind;
games/trek/main.c
182
if (optind < argc)
include/unistd.h
432
extern int optind, opterr, optopt;
lib/libc/db/test/btree.tests/main.c
161
argc -= optind;
lib/libc/db/test/btree.tests/main.c
162
argv += optind;
lib/libc/db/test/dbtest.c
114
argc -= optind;
lib/libc/db/test/dbtest.c
115
argv += optind;
lib/libc/db/test/dbtest.c
78
extern int optind;
lib/libc/stdlib/getopt.c
101
++optind;
lib/libc/stdlib/getopt.c
114
++optind;
lib/libc/stdlib/getopt.c
126
else if (nargc > ++optind)
lib/libc/stdlib/getopt.c
127
optarg = nargv[optind];
lib/libc/stdlib/getopt.c
140
++optind;
lib/libc/stdlib/getopt.c
45
optind = 1, /* index into parent argv vector */
lib/libc/stdlib/getopt.c
69
if (optind == 0)
lib/libc/stdlib/getopt.c
70
optind = 1;
lib/libc/stdlib/getopt.c
74
place = nargv[optind];
lib/libc/stdlib/getopt.c
75
if (optind >= nargc || *place++ != '-') {
lib/libc/stdlib/getopt.c
83
++optind;
lib/libc/stdlib/getopt_long.c
225
optind++;
lib/libc/stdlib/getopt_long.c
306
optarg = nargv[optind++];
lib/libc/stdlib/getopt_long.c
328
--optind;
lib/libc/stdlib/getopt_long.c
333
--optind;
lib/libc/stdlib/getopt_long.c
392
if (optind == 0)
lib/libc/stdlib/getopt_long.c
393
optind = optreset = 1;
lib/libc/stdlib/getopt_long.c
401
if (optind >= nargc) { /* end of argument vector */
lib/libc/stdlib/getopt_long.c
406
optind, nargv);
lib/libc/stdlib/getopt_long.c
407
optind -= nonopt_end - nonopt_start;
lib/libc/stdlib/getopt_long.c
414
optind = nonopt_start;
lib/libc/stdlib/getopt_long.c
419
if (*(place = nargv[optind]) != '-' ||
lib/libc/stdlib/getopt_long.c
431
optarg = nargv[optind++];
lib/libc/stdlib/getopt_long.c
443
nonopt_start = optind;
lib/libc/stdlib/getopt_long.c
446
optind, nargv);
lib/libc/stdlib/getopt_long.c
447
nonopt_start = optind -
lib/libc/stdlib/getopt_long.c
451
optind++;
lib/libc/stdlib/getopt_long.c
456
nonopt_end = optind;
lib/libc/stdlib/getopt_long.c
462
optind++;
lib/libc/stdlib/getopt_long.c
470
optind, nargv);
lib/libc/stdlib/getopt_long.c
471
optind -= nonopt_end - nonopt_start;
lib/libc/stdlib/getopt_long.c
484
if (long_options != NULL && place != nargv[optind] &&
lib/libc/stdlib/getopt_long.c
517
++optind;
lib/libc/stdlib/getopt_long.c
533
else if (++optind >= nargc) { /* no arg */
lib/libc/stdlib/getopt_long.c
540
place = nargv[optind];
lib/libc/stdlib/getopt_long.c
551
++optind;
lib/libc/stdlib/getopt_long.c
557
if (++optind >= nargc) { /* no arg */
lib/libc/stdlib/getopt_long.c
564
optarg = nargv[optind];
lib/libc/stdlib/getopt_long.c
567
++optind;
lib/libc/stdlib/getopt_long.c
76
int optind = 1; /* index into parent argv vector */
libexec/diff3prog/diff3prog.c
170
argc -= optind;
libexec/diff3prog/diff3prog.c
171
argv += optind;
libexec/dma/dma.c
526
optind--;
libexec/dma/dma.c
558
argc -= optind;
libexec/dma/dma.c
559
argv += optind;
libexec/ftpd/popen.c
137
optreset = optind = optopt = 1;
libexec/pppoed/pppoed.c
559
if (optind >= argc || optind + 2 < argc)
libexec/pppoed/pppoed.c
606
if ((ret = ConfigureNode(prog, argv[optind], provider, cs, ds,
libexec/rbootd/rbootd.c
100
for (; optind < argc; optind++) {
libexec/rbootd/rbootd.c
102
ConfigFile = argv[optind];
libexec/rbootd/rbootd.c
105
argv[optind]);
libexec/telnetd/telnetd.c
304
argc -= optind;
libexec/telnetd/telnetd.c
305
argv += optind;
libexec/tftpd/tftpd.c
143
if (optind < argc) {
libexec/tftpd/tftpd.c
147
for (dirp = dirs; optind < argc && dirp < &dirs[MAXDIRS];
libexec/tftpd/tftpd.c
148
optind++) {
libexec/tftpd/tftpd.c
149
if (argv[optind][0] == '/') {
libexec/tftpd/tftpd.c
150
dirp->name = argv[optind];
libexec/ypxfr/ypxfr_main.c
221
my_optind = optind - 1;
sbin/camcontrol/camcontrol.c
1087
tstr = argv[optind];
sbin/camcontrol/camcontrol.c
1093
rv = parse_btl(argv[optind], &mybus, &mytarget, &mylun,
sbin/camcontrol/camcontrol.c
1855
hook.argc = argc - optind;
sbin/camcontrol/camcontrol.c
1856
hook.argv = argv + optind;
sbin/camcontrol/camcontrol.c
1871
optind += hook.got;
sbin/camcontrol/camcontrol.c
1889
hook.argc = argc - optind;
sbin/camcontrol/camcontrol.c
1890
hook.argv = argv + optind;
sbin/camcontrol/camcontrol.c
1892
optind++;
sbin/camcontrol/camcontrol.c
1925
hook.argc = argc - optind;
sbin/camcontrol/camcontrol.c
1926
hook.argv = argv + optind;
sbin/camcontrol/camcontrol.c
1945
optind += hook.got;
sbin/camcontrol/camcontrol.c
2136
argc -= optind;
sbin/camcontrol/camcontrol.c
2137
argv += optind;
sbin/camcontrol/camcontrol.c
3992
optind = optstart;
sbin/camcontrol/camcontrol.c
4065
optind = optstart;
sbin/ccdconfig/ccdconfig.c
152
argc -= optind;
sbin/ccdconfig/ccdconfig.c
153
argv += optind;
sbin/cryptdisks/cryptdisks.c
511
argc -= optind;
sbin/cryptdisks/cryptdisks.c
512
argv += optind;
sbin/devfsctl/devfsctl.c
871
argc -= optind;
sbin/devfsctl/devfsctl.c
872
argv += optind;
sbin/dhclient/dhclient.c
313
argc -= optind;
sbin/dhclient/dhclient.c
314
argv += optind;
sbin/diskinfo/diskinfo.c
73
for (i = optind; i < ac; ++i) {
sbin/disklabel32/disklabel.c
222
argc -= optind;
sbin/disklabel32/disklabel.c
223
argv += optind;
sbin/disklabel64/disklabel64.c
230
argc -= optind;
sbin/disklabel64/disklabel64.c
231
argv += optind;
sbin/dmesg/dmesg.c
116
argc -= optind;
sbin/dmesg/dmesg.c
117
argv += optind;
sbin/dump/main.c
220
argc -= optind;
sbin/dump/main.c
221
argv += optind;
sbin/dumpfs/dumpfs.c
85
argc -= optind;
sbin/dumpfs/dumpfs.c
86
argv += optind;
sbin/dumpon/dumpon.c
76
argc -= optind;
sbin/dumpon/dumpon.c
77
argv += optind;
sbin/fdisk/fdisk.c
209
argc -= optind;
sbin/fdisk/fdisk.c
210
argv += optind;
sbin/ffsinfo/ffsinfo.c
187
argc -= optind;
sbin/ffsinfo/ffsinfo.c
188
argv += optind;
sbin/fsck/main.c
123
argc -= optind;
sbin/fsck/main.c
124
argv += optind;
sbin/fsck_hammer2/destroy.c
492
argc -= optind;
sbin/fsck_hammer2/destroy.c
493
argv += optind;
sbin/fsck_hammer2/fsck_hammer2.c
165
ac -= optind;
sbin/fsck_hammer2/fsck_hammer2.c
166
av += optind;
sbin/fsck_hammer2/reconstruct.c
531
argc -= optind;
sbin/fsck_hammer2/reconstruct.c
532
argv += optind;
sbin/fsck_msdosfs/main.c
100
argv += optind;
sbin/fsck_msdosfs/main.c
99
argc -= optind;
sbin/fsdb/fsdb.c
90
argc -= optind;
sbin/fsdb/fsdb.c
91
argv += optind;
sbin/fsid/fsid.c
158
argc -= optind;
sbin/fsid/fsid.c
159
argv += optind;
sbin/fsirand/fsirand.c
77
if (argc - optind < 1)
sbin/fsirand/fsirand.c
90
for (n = optind; n < argc; n++) {
sbin/fsirand/fsirand.c
91
if (argc - optind != 1)
sbin/getdevpath/getdevpath.c
67
ac -= optind;
sbin/getdevpath/getdevpath.c
68
av += optind;
sbin/gpt/add.c
318
if (argc == optind)
sbin/gpt/add.c
321
while (optind < argc) {
sbin/gpt/add.c
322
fd = gpt_open(argv[optind++]);
sbin/gpt/boot.c
184
if (argc == optind)
sbin/gpt/boot.c
187
while (optind < argc) {
sbin/gpt/boot.c
188
fd = gpt_open(argv[optind++]);
sbin/gpt/create.c
255
if (argc == optind)
sbin/gpt/create.c
258
while (optind < argc) {
sbin/gpt/create.c
259
fd = gpt_open(argv[optind++]);
sbin/gpt/create.c
318
if (argc == optind) {
sbin/gpt/create.c
323
while (optind < argc) {
sbin/gpt/create.c
324
const char *path = argv[optind++];
sbin/gpt/destroy.c
102
while (optind < argc) {
sbin/gpt/destroy.c
103
fd = gpt_open(argv[optind++]);
sbin/gpt/destroy.c
99
if (argc == optind)
sbin/gpt/expand.c
60
if (argc == optind)
sbin/gpt/expand.c
63
while (optind < argc) {
sbin/gpt/expand.c
64
fd = gpt_open(argv[optind++]);
sbin/gpt/gpt.c
778
if (argc == optind)
sbin/gpt/gpt.c
781
cmd = argv[optind++];
sbin/gpt/label.c
230
if (name == NULL || argc == optind)
sbin/gpt/label.c
233
while (optind < argc) {
sbin/gpt/label.c
234
fd = gpt_open(argv[optind++]);
sbin/gpt/migrate.c
486
if (argc == optind)
sbin/gpt/migrate.c
489
while (optind < argc) {
sbin/gpt/migrate.c
490
fd = gpt_open(argv[optind++]);
sbin/gpt/recover.c
189
if (argc == optind)
sbin/gpt/recover.c
192
while (optind < argc) {
sbin/gpt/recover.c
193
fd = gpt_open(argv[optind++]);
sbin/gpt/remove.c
190
if (argc == optind)
sbin/gpt/remove.c
193
while (optind < argc) {
sbin/gpt/remove.c
194
fd = gpt_open(argv[optind++]);
sbin/gpt/show.c
227
if (argc == optind)
sbin/gpt/show.c
230
while (optind < argc) {
sbin/gpt/show.c
231
fd = gpt_open(argv[optind++]);
sbin/gpt/show.c
238
if (optind != argc)
sbin/growfs/growfs.c
1950
argc -= optind;
sbin/growfs/growfs.c
1951
argv += optind;
sbin/hammer/hammer.c
227
ac -= optind;
sbin/hammer/hammer.c
228
av += optind;
sbin/hammer2/main.c
160
ac -= optind;
sbin/hammer2/main.c
161
av += optind;
sbin/ifconfig/ifconfig.c
435
argc -= optind;
sbin/ifconfig/ifconfig.c
436
argv += optind;
sbin/init/init.c
325
if (optind != argc)
sbin/ip6fw/ip6fw.c
1167
extern int optind;
sbin/ip6fw/ip6fw.c
1170
optind = 1;
sbin/ip6fw/ip6fw.c
1200
ac -= optind;
sbin/ip6fw/ip6fw.c
1201
if (*(av+=optind)==NULL) {
sbin/ip6fw/ip6fw.c
1315
av += optind;
sbin/ip6fw/ip6fw.c
1316
ac -= optind;
sbin/ipfw/ipfw2.c
3998
optind = optreset = 1;
sbin/ipfw/ipfw2.c
4042
ac -= optind;
sbin/ipfw/ipfw2.c
4043
av += optind;
sbin/ipfw/ipfw2.c
4188
av += optind;
sbin/ipfw/ipfw2.c
4189
ac -= optind;
sbin/ipfw3/ipfw3.c
1002
ac -= optind;
sbin/ipfw3/ipfw3.c
1003
av += optind;
sbin/ipfw3/ipfw3.c
1137
av += optind;
sbin/ipfw3/ipfw3.c
1138
ac -= optind;
sbin/ipfw3/ipfw3.c
963
optind = optreset = 1;
sbin/iscontrol/iscontrol.c
184
cc -= optind;
sbin/iscontrol/iscontrol.c
185
vv += optind;
sbin/jscan/jscan.c
186
if (optind > ac + 1) {
sbin/jscan/jscan.c
216
if (optind == ac) {
sbin/jscan/jscan.c
227
} else if (stat(av[optind], &st) == 0 && S_ISREG(st.st_mode)) {
sbin/jscan/jscan.c
228
input_prefix = av[optind];
sbin/jscan/jscan.c
229
if ((input_fd = open(av[optind], O_RDONLY)) != 0) {
sbin/jscan/jscan.c
235
input_prefix = av[optind];
sbin/kldconfig/kldconfig.c
393
argc -= optind;
sbin/kldconfig/kldconfig.c
394
argv += optind;
sbin/kldload/kldload.c
89
argc -= optind;
sbin/kldload/kldload.c
90
argv += optind;
sbin/kldstat/kldstat.c
136
argc -= optind;
sbin/kldstat/kldstat.c
137
argv += optind;
sbin/kldunload/kldunload.c
72
argc -= optind;
sbin/kldunload/kldunload.c
73
argv += optind;
sbin/ldconfig/ldconfig.c
106
update_elf_hints(hints_file, argc - optind, argv + optind,
sbin/md5/md5.c
384
argc -= optind;
sbin/md5/md5.c
385
argv += optind;
sbin/md5/md5.c
418
} else if (!sflag && (optind == 1 || qflag || rflag))
sbin/mount/mount.c
179
argc -= optind;
sbin/mount/mount.c
180
argv += optind;
sbin/mount_autofs/mount_autofs.c
87
argc -= optind;
sbin/mount_autofs/mount_autofs.c
88
argv += optind;
sbin/mount_cd9660/mount_cd9660.c
143
argc -= optind;
sbin/mount_cd9660/mount_cd9660.c
144
argv += optind;
sbin/mount_devfs/mount_devfs.c
103
argc -= optind;
sbin/mount_devfs/mount_devfs.c
104
argv += optind;
sbin/mount_dirfs/mount_dirfs.c
92
ac -= optind;
sbin/mount_dirfs/mount_dirfs.c
93
av += optind;
sbin/mount_ext2fs/mount_ext2fs.c
76
argc -= optind;
sbin/mount_ext2fs/mount_ext2fs.c
77
argv += optind;
sbin/mount_fuse/mount_fusefs.c
153
argc -= optind;
sbin/mount_fuse/mount_fusefs.c
154
argv += optind;
sbin/mount_hammer/mount_hammer.c
111
ac -= optind;
sbin/mount_hammer/mount_hammer.c
112
av += optind;
sbin/mount_hammer2/mount_hammer2.c
92
ac -= optind;
sbin/mount_hammer2/mount_hammer2.c
93
av += optind;
sbin/mount_hpfs/mount_hpfs.c
104
if (optind + 2 != argc)
sbin/mount_hpfs/mount_hpfs.c
109
dev = argv[optind];
sbin/mount_hpfs/mount_hpfs.c
110
dir = argv[optind + 1];
sbin/mount_msdos/mount_msdos.c
144
if (optind + 2 != argc)
sbin/mount_msdos/mount_msdos.c
156
dev = argv[optind];
sbin/mount_msdos/mount_msdos.c
157
dir = argv[optind + 1];
sbin/mount_nfs/mount_nfs.c
432
argc -= optind;
sbin/mount_nfs/mount_nfs.c
433
argv += optind;
sbin/mount_ntfs/mount_ntfs.c
120
if (optind + 2 != argc)
sbin/mount_ntfs/mount_ntfs.c
123
dev = argv[optind];
sbin/mount_ntfs/mount_ntfs.c
124
dir = argv[optind + 1];
sbin/mount_null/mount_null.c
81
argc -= optind;
sbin/mount_null/mount_null.c
82
argv += optind;
sbin/mount_std/mount_std.c
90
argc -= optind;
sbin/mount_std/mount_std.c
91
argv += optind;
sbin/mount_tmpfs/mount_tmpfs.c
111
optind = optreset = 1;
sbin/mount_tmpfs/mount_tmpfs.c
234
argc -= optind;
sbin/mount_tmpfs/mount_tmpfs.c
235
argv += optind;
sbin/mount_udf/mount_udf.c
87
argc -= optind;
sbin/mount_udf/mount_udf.c
88
argv += optind;
sbin/mount_ufs/mount.c
152
argc -= optind;
sbin/mount_ufs/mount.c
153
argv += optind;
sbin/mount_ufs/mount_ufs.c
75
optind = optreset = 1; /* Reset for parse of new argv. */
sbin/mount_ufs/mount_ufs.c
85
argc -= optind;
sbin/mount_ufs/mount_ufs.c
86
argv += optind;
sbin/mountctl/mountctl.c
190
ac -= optind;
sbin/mountctl/mountctl.c
191
av += optind;
sbin/mountd/mountd.c
338
argc -= optind;
sbin/mountd/mountd.c
339
argv += optind;
sbin/newfs/newfs.c
391
argc -= optind;
sbin/newfs/newfs.c
392
argv += optind;
sbin/newfs_hammer/newfs_hammer.c
142
ac -= optind;
sbin/newfs_hammer/newfs_hammer.c
143
av += optind;
sbin/newfs_hammer2/newfs_hammer2.c
128
ac -= optind;
sbin/newfs_hammer2/newfs_hammer2.c
129
av += optind;
sbin/newfs_msdos/newfs_msdos.c
173
argc -= optind;
sbin/newfs_msdos/newfs_msdos.c
174
argv += optind;
sbin/nfsd/nfsd.c
184
argv += optind;
sbin/nfsd/nfsd.c
185
argc -= optind;
sbin/nfsiod/nfsiod.c
100
argv += optind;
sbin/nfsiod/nfsiod.c
99
argc -= optind;
sbin/nos-tun/nos-tun.c
274
argc -= optind;
sbin/nos-tun/nos-tun.c
275
argv += optind;
sbin/nvmectl/nvmectl.c
67
ac -= optind;
sbin/nvmectl/nvmectl.c
68
av += optind;
sbin/ping/ping.c
447
if (argc - optind != 1)
sbin/ping/ping.c
449
target = argv[optind];
sbin/ping6/ping6.c
505
argc -= optind;
sbin/ping6/ping6.c
506
argv += optind;
sbin/quotacheck/quotacheck.c
149
argc -= optind;
sbin/quotacheck/quotacheck.c
150
argv += optind;
sbin/rconfig/rconfig.c
85
for (i = optind; i < ac; ++i) {
sbin/rcorder/rcorder.c
181
argc -= optind;
sbin/rcorder/rcorder.c
182
argv += optind;
sbin/reboot/reboot.c
92
argc -= optind;
sbin/reboot/reboot.c
93
argv += optind;
sbin/restore/main.c
156
argc -= optind;
sbin/restore/main.c
157
argv += optind;
sbin/route/route.c
174
argc -= optind;
sbin/route/route.c
175
argv += optind;
sbin/routed/main.c
214
argc -= optind;
sbin/routed/main.c
215
argv += optind;
sbin/routed/rtquery/rtquery.c
244
argv += optind;
sbin/routed/rtquery/rtquery.c
245
argc -= optind;
sbin/savecore/savecore.c
615
argc -= optind;
sbin/savecore/savecore.c
616
argv += optind;
sbin/shutdown/shutdown.c
125
argc -= optind;
sbin/shutdown/shutdown.c
126
argv += optind;
sbin/shutdown/shutdown.c
162
argc -= optind;
sbin/shutdown/shutdown.c
163
argv += optind;
sbin/slattach/slattach.c
165
if (optind == argc - 1)
sbin/slattach/slattach.c
166
dev = argv[optind];
sbin/slattach/slattach.c
168
if (optind < (argc - 1))
sbin/slattach/slattach.c
169
warnx("too many args, first='%s'", argv[optind]);
sbin/slattach/slattach.c
170
if (optind > (argc - 1))
sbin/spppcontrol/spppcontrol.c
75
argv += optind;
sbin/spppcontrol/spppcontrol.c
76
argc -= optind;
sbin/startslip/startslip.c
172
argc -= optind;
sbin/startslip/startslip.c
173
argv += optind;
sbin/startslip/startslip.c
190
for (ap = argv - optind + 1; ap < argv + 3; ap++)
sbin/svc/svc.c
248
i = optind;
sbin/svc/svc.c
86
optind = 1;
sbin/swapon/swapon.c
147
argv += optind;
sbin/sysctl/sysctl.c
132
argc -= optind;
sbin/sysctl/sysctl.c
133
argv += optind;
sbin/tcplay/main.c
442
argc -= optind;
sbin/tcplay/main.c
443
argv += optind;
sbin/udevd/udevd.c
385
argc -= optind;
sbin/udevd/udevd.c
386
argv += optind;
sbin/umount/umount.c
123
argc -= optind;
sbin/umount/umount.c
124
argv += optind;
sbin/usched/usched.c
73
ac -= optind;
sbin/usched/usched.c
74
av += optind;
sbin/vquota/vquota.c
720
argc -= optind;
sbin/vquota/vquota.c
721
argv += optind;
share/examples/libusb20/bulk.c
184
argc -= optind;
share/examples/libusb20/bulk.c
185
argv += optind;
share/examples/libusb20/bulk.c
214
BUFLEN, optind);
share/examples/libusb20/control.c
350
argc -= optind;
share/examples/libusb20/control.c
351
argv += optind;
share/examples/libusb20/control.c
385
BUFLEN, optind);
share/examples/ppi/ppilcd.c
132
argc -= optind;
share/examples/ppi/ppilcd.c
133
argv += optind;
share/examples/ppi/ppilcd.c
96
extern int optind;
share/examples/scsi_target/scsi_target.c
170
argc -= optind;
share/examples/scsi_target/scsi_target.c
171
argv += optind;
stand/boot/common/commands.c
320
optind = 1;
stand/boot/common/commands.c
333
argv += (optind);
stand/boot/common/commands.c
334
argc -= (optind);
stand/boot/common/commands.c
365
optind = 1;
stand/boot/common/commands.c
386
argv += (optind);
stand/boot/common/commands.c
387
argc -= (optind);
stand/boot/common/commands.c
476
optind = 1;
stand/boot/common/commands.c
489
argv += (optind);
stand/boot/common/commands.c
490
argc -= (optind);
stand/boot/common/ls.c
67
optind = 1;
stand/boot/common/ls.c
80
argv += (optind - 1);
stand/boot/common/ls.c
81
argc -= (optind - 1);
stand/boot/common/module.c
104
optind = 1;
stand/boot/common/module.c
126
argv += (optind - 1);
stand/boot/common/module.c
127
argc -= (optind - 1);
stand/boot/common/module.c
259
optind = 1;
stand/boot/common/pnp.c
44
optind = 1;
stand/boot/efi/loader/main.c
812
if (aflag && optind < argc) {
stand/boot/efi/loader/main.c
817
if (optind == argc)
stand/boot/efi/loader/main.c
820
argc -= optind;
stand/boot/efi/loader/main.c
821
argv += optind;
stand/boot/pc32/btxld/btxld.c
165
argc -= optind;
stand/boot/pc32/btxld/btxld.c
166
argv += optind;
stand/lib/getopt.c
101
++optind;
stand/lib/getopt.c
37
optind = 1, /* index into parent argv vector */
stand/lib/getopt.c
58
if (optind >= nargc || *(place = nargv[optind]) != '-') {
stand/lib/getopt.c
63
++optind;
stand/lib/getopt.c
77
++optind;
stand/lib/getopt.c
85
++optind;
stand/lib/getopt.c
90
else if (nargc <= ++optind) { /* no arg */
stand/lib/getopt.c
99
optarg = nargv[optind];
stand/lib/stand.h
281
extern int optind, opterr, optopt, optreset;
test/debug/bufqueues.c
133
ac -= optind;
test/debug/bufqueues.c
134
av += optind;
test/debug/h2chains.c
92
ac -= optind;
test/debug/h2chains.c
93
av += optind;
test/debug/h2dio.c
91
ac -= optind;
test/debug/h2dio.c
92
av += optind;
test/debug/h2inodes.c
91
ac -= optind;
test/debug/h2inodes.c
92
av += optind;
test/debug/kmapinfo.c
115
ac -= optind;
test/debug/kmapinfo.c
116
av += optind;
test/debug/kshowprocs.c
84
ac -= optind;
test/debug/kshowprocs.c
85
av += optind;
test/debug/ksyscalls.c
96
ac -= optind;
test/debug/ksyscalls.c
97
av += optind;
test/debug/ncptrace.c
118
ac -= optind;
test/debug/ncptrace.c
119
av += optind;
test/debug/psinfo.c
123
ac -= optind;
test/debug/psinfo.c
124
av += optind;
test/debug/schedmon.c
103
ac -= optind;
test/debug/schedmon.c
104
av += optind;
test/debug/slabinfo.c
115
ac -= optind;
test/debug/slabinfo.c
116
av += optind;
test/debug/umtx.c
69
ac -= optind;
test/debug/umtx.c
70
av += optind;
test/debug/vmobjinfo.c
132
for (i = 0; i < nswdev && i < ac - optind; ++i) {
test/debug/vmobjinfo.c
133
printf("open %s\n", av[optind + i]);
test/debug/vmobjinfo.c
134
swapfds[i] = open(av[optind + i], O_RDONLY);
test/debug/vmpagehash.c
133
ac -= optind;
test/debug/vmpagehash.c
134
av += optind;
test/debug/vmpageinfo.c
164
ac -= optind;
test/debug/vmpageinfo.c
165
av += optind;
test/debug/vmpagequeues.c
126
ac -= optind;
test/debug/vmpagequeues.c
127
av += optind;
test/debug/vmpqinactive.c
174
ac -= optind;
test/debug/vmpqinactive.c
175
av += optind;
test/debug/zallocinfo.c
112
ac -= optind;
test/debug/zallocinfo.c
113
av += optind;
test/interbench/interbench.c
1572
argc -= optind;
test/interbench/interbench.c
1573
argv += optind;
test/stress/fsx/fsx.c
1106
argc -= optind;
test/stress/fsx/fsx.c
1107
argv += optind;
test/stress/stress2/lib/options.c
192
op->argc = argc -= optind;
test/stress/stress2/lib/options.c
193
op->argv = argv += optind;
test/stress/tuxload.c
154
argc -= optind;
test/stress/tuxload.c
155
argv += optind;
test/stress/webstress/webstress.c
138
ac -= optind;
test/stress/webstress/webstress.c
139
av += optind;
tools/multimedia/cxm/setchannel/cxm_setchannel.c
148
if (optind < argc) {
tools/multimedia/cxm/setchannel/cxm_setchannel.c
155
if ((ptr = strchr(argv[optind], '.')) != NULL) {
tools/multimedia/cxm/setchannel/cxm_setchannel.c
156
freq = strtol(argv[optind], &endptr, 10) * 1000;
tools/multimedia/cxm/setchannel/cxm_setchannel.c
180
channel = atoi(argv[optind]);
tools/tools/ath/athkey/athkey.c
163
argc -= optind;
tools/tools/ath/athkey/athkey.c
164
argv += optind;
tools/tools/ath/athpoke/athpoke.c
96
argc -= optind;
tools/tools/ath/athpoke/athpoke.c
97
argv += optind;
tools/tools/ath/athprom/athprom.c
122
argc -= optind;
tools/tools/ath/athprom/athprom.c
123
argv += optind;
tools/tools/ath/athrd/athrd.c
1122
switch (argc - optind) {
tools/tools/ath/athrd/athrd.c
1130
if (!cclookup(argv[optind], &rd, &cc)) {
tools/tools/ath/athrd/athrd.c
1131
if (!rdlookup(argv[optind], &rd)) {
tools/tools/ath/athrd/athrd.c
1134
rd = strtoul(argv[optind], NULL, 0);
tools/tools/ath/athrd/athrd.c
1138
"domain code\n", argv[optind]);
tools/tools/ath/athrd/athrd.c
1146
if (!rdlookup(argv[optind], &rd)) {
tools/tools/ath/athrd/athrd.c
1149
rd = strtoul(argv[optind], NULL, 0);
tools/tools/ath/athrd/athrd.c
1153
"domain code\n", argv[optind]);
tools/tools/ath/athrd/athrd.c
1157
if (!cclookup(argv[optind+1], &rd, &cc))
tools/tools/ath/athrd/athrd.c
1158
cc = strtoul(argv[optind+1], NULL, 0);
tools/tools/ath/athregs/dumpregs.c
148
argc -= optind;
tools/tools/ath/athregs/dumpregs.c
149
argv += optind;
tools/tools/ath/athstats/main.c
120
argc -= optind;
tools/tools/ath/athstats/main.c
121
argv += optind;
tools/tools/ifinfo/ifinfo.c
107
if (!isit(argc - optind, argv + optind, ifmd.ifmd_name))
tools/tools/net80211/wlanstats/main.c
194
argc -= optind;
tools/tools/net80211/wlanstats/main.c
195
argv += optind;
tools/tools/net80211/wlanwds/wlanwds.c
137
argc -= optind, argv += optind;
tools/tools/toeplitz/toeplitz.c
76
argc -= optind;
tools/tools/toeplitz/toeplitz.c
77
argv += optind;
usr.bin/apply/apply.c
85
argc -= optind;
usr.bin/apply/apply.c
86
argv += optind;
usr.bin/asa/asa.c
57
argc -= optind;
usr.bin/asa/asa.c
58
argv += optind;
usr.bin/at/at.c
570
for (i=optind; i < argc; i++) {
usr.bin/at/at.c
860
joblist = get_job_list(argc - optind, argv + optind, &joblen);
usr.bin/at/at.c
898
if (argc > optind)
usr.bin/at/parsetime.c
573
if (argc <= optind)
usr.bin/at/parsetime.c
576
init_scanner(argc-optind, argv+optind);
usr.bin/backlight/backlight.c
119
argc -= optind;
usr.bin/backlight/backlight.c
120
argv += optind;
usr.bin/basename/basename.c
74
argc -= optind;
usr.bin/basename/basename.c
75
argv += optind;
usr.bin/bc/bc.y
1128
argc -= optind;
usr.bin/bc/bc.y
1129
argv += optind;
usr.bin/biff/biff.c
60
argc -= optind;
usr.bin/biff/biff.c
61
argv += optind;
usr.bin/brandelf/brandelf.c
97
argc -= optind;
usr.bin/brandelf/brandelf.c
98
argv += optind;
usr.bin/c89/c89.c
79
if (argv[optind - 1][0] == '-') /* -llib */
usr.bin/c89/c89.c
80
optind -= 1;
usr.bin/c89/c89.c
82
optind -= 2;
usr.bin/c89/c89.c
86
if (argc == optind) {
usr.bin/c99/c99.c
63
if (argv[optind - 1][0] == '-')
usr.bin/c99/c99.c
64
optind -= 1;
usr.bin/c99/c99.c
66
optind -= 2;
usr.bin/c99/c99.c
75
for (i = 1; i < optind; i++)
usr.bin/calendar/calendar.c
266
if (argc > optind)
usr.bin/cap_mkdb/cap_mkdb.c
95
argc -= optind;
usr.bin/cap_mkdb/cap_mkdb.c
96
argv += optind;
usr.bin/chat/chat.c
269
argc -= optind;
usr.bin/chat/chat.c
270
argv += optind;
usr.bin/chflags/chflags.c
90
argv += optind;
usr.bin/chflags/chflags.c
91
argc -= optind;
usr.bin/chkey/chkey.c
104
argc -= optind;
usr.bin/chkey/chkey.c
105
argv += optind;
usr.bin/chpass/chpass.c
121
argc -= optind;
usr.bin/chpass/chpass.c
122
argv += optind;
usr.bin/cksum/cksum.c
93
argc -= optind;
usr.bin/cksum/cksum.c
94
argv += optind;
usr.bin/cmp/cmp.c
97
argv += optind;
usr.bin/cmp/cmp.c
98
argc -= optind;
usr.bin/col/col.c
160
if (optind != argc)
usr.bin/colcrt/colcrt.c
89
argc -= optind;
usr.bin/colcrt/colcrt.c
90
argv += optind;
usr.bin/colrm/colrm.c
66
argc -= optind;
usr.bin/colrm/colrm.c
67
argv += optind;
usr.bin/column/column.c
113
argc -= optind;
usr.bin/column/column.c
114
argv += optind;
usr.bin/comm/comm.c
91
argc -= optind;
usr.bin/comm/comm.c
92
argv += optind;
usr.bin/compress/compress.c
105
argc -= optind;
usr.bin/compress/compress.c
106
argv += optind;
usr.bin/crunch/crunchgen/crunchgen.c
189
argc -= optind;
usr.bin/crunch/crunchgen/crunchgen.c
190
argv += optind;
usr.bin/crunch/crunchide/crunchide.c
106
argc -= optind;
usr.bin/crunch/crunchide/crunchide.c
107
argv += optind;
usr.bin/csplit/csplit.c
134
argc -= optind;
usr.bin/csplit/csplit.c
135
argv += optind;
usr.bin/ctags/ctags.c
129
argv += optind;
usr.bin/ctags/ctags.c
130
argc -= optind;
usr.bin/cut/cut.c
118
argc -= optind;
usr.bin/cut/cut.c
119
argv += optind;
usr.bin/dc/dc.c
72
argc -= optind;
usr.bin/dc/dc.c
73
argv += optind;
usr.bin/dfregress/main.c
102
argc -= optind;
usr.bin/dfregress/main.c
103
argv += optind;
usr.bin/diff/diff.c
212
newarg = optind != prevoptind;
usr.bin/diff/diff.c
213
prevoptind = optind;
usr.bin/diff/diff.c
215
argc -= optind;
usr.bin/diff/diff.c
216
argv += optind;
usr.bin/dirname/dirname.c
58
argc -= optind;
usr.bin/dirname/dirname.c
59
argv += optind;
usr.bin/dsynth/dsynth.c
188
ac -= optind;
usr.bin/dsynth/dsynth.c
189
av += optind;
usr.bin/dsynth/dsynth.c
534
DoAddReExec(lkfd, optind + 1, av - optind);
usr.bin/du/du.c
165
argc -= optind;
usr.bin/du/du.c
166
argv += optind;
usr.bin/env/env.c
74
split_spaces(optarg, &optind, &argc, &argv);
usr.bin/env/env.c
99
for (argv += optind; *argv && (p = strchr(*argv, '=')); ++argv) {
usr.bin/evtranalyze/evtranalyze.c
1020
optind = 0;
usr.bin/evtranalyze/evtranalyze.c
1098
optind = 0;
usr.bin/evtranalyze/evtranalyze.c
1110
argc -= optind;
usr.bin/evtranalyze/evtranalyze.c
1111
argv += optind;
usr.bin/evtranalyze/evtranalyze.c
1215
optind = 0;
usr.bin/evtranalyze/evtranalyze.c
1227
argc -= optind;
usr.bin/evtranalyze/evtranalyze.c
1228
argv += optind;
usr.bin/evtranalyze/evtranalyze.c
1506
argc -= optind;
usr.bin/evtranalyze/evtranalyze.c
1507
argv += optind;
usr.bin/evtranalyze/evtranalyze.c
928
optind = 0;
usr.bin/evtranalyze/evtranalyze.c
944
argc -= optind;
usr.bin/evtranalyze/evtranalyze.c
945
argv += optind;
usr.bin/expand/expand.c
82
argc -= optind;
usr.bin/expand/expand.c
83
argv += optind;
usr.bin/fetch/fetch.c
1093
argc -= optind;
usr.bin/fetch/fetch.c
1094
argv += optind;
usr.bin/file2c/file2c.c
52
argc -= optind;
usr.bin/file2c/file2c.c
53
argv += optind;
usr.bin/find/main.c
116
argc -= optind;
usr.bin/find/main.c
117
argv += optind;
usr.bin/finger/finger.c
134
return optind;
usr.bin/finger/finger.c
95
optind = 1; /* reset getopt */
usr.bin/fmt/fmt.c
307
p = argv[optind - 1];
usr.bin/fmt/fmt.c
311
goal_length = get_positive(argv[optind]+1,
usr.bin/fmt/fmt.c
332
argc -= optind; argv += optind;
usr.bin/fold/fold.c
108
argv += optind;
usr.bin/fold/fold.c
109
argc -= optind;
usr.bin/from/from.c
80
argv += optind;
usr.bin/fstat/fstat.c
211
if (*(argv += optind)) {
usr.bin/gcore/gcore.c
129
argv += optind;
usr.bin/gcore/gcore.c
130
argc -= optind;
usr.bin/gencat/gencat.c
155
argc -= optind;
usr.bin/gencat/gencat.c
156
argv += optind;
usr.bin/getaddrinfo/getaddrinfo.c
124
argc -= optind;
usr.bin/getaddrinfo/getaddrinfo.c
125
argv += optind;
usr.bin/getconf/getconf.c
126
do_pathconf(name, key, argv[optind + 1]);
usr.bin/getconf/getconf.c
75
if ((name = argv[optind]) == NULL)
usr.bin/getconf/getconf.c
83
if (argv[optind + 1] == NULL)
usr.bin/getconf/getconf.c
84
execl(alt_path, "getconf", argv[optind],
usr.bin/getconf/getconf.c
87
execl(alt_path, "getconf", argv[optind],
usr.bin/getconf/getconf.c
88
argv[optind + 1], NULL);
usr.bin/getconf/getconf.c
97
if (argv[optind + 1] == NULL) { /* confstr or sysconf */
usr.bin/getopt/getopt.c
14
optind = 2; /* Past the program name and the option letters. */
usr.bin/getopt/getopt.c
28
for (; optind < argc; optind++)
usr.bin/getopt/getopt.c
29
printf(" %s", argv[optind]);
usr.bin/gzip/gzip.c
362
argv += optind;
usr.bin/gzip/gzip.c
363
argc -= optind;
usr.bin/head/head.c
87
argc -= optind;
usr.bin/head/head.c
88
argv += optind;
usr.bin/hesinfo/hesinfo.c
50
if (argc - optind != 2 || errflg) {
usr.bin/hesinfo/hesinfo.c
56
name = argv[optind];
usr.bin/hesinfo/hesinfo.c
57
type = argv[optind + 1];
usr.bin/hexdump/hexsyntax.c
124
*argvp += optind;
usr.bin/hexdump/odsyntax.c
168
argc -= optind;
usr.bin/hexdump/odsyntax.c
169
*argvp += optind;
usr.bin/iconv/iconv.c
199
argc -= optind;
usr.bin/iconv/iconv.c
200
argv += optind;
usr.bin/id/id.c
106
argc -= optind;
usr.bin/id/id.c
107
argv += optind;
usr.bin/ioprio/ioprio.c
70
argc -= optind;
usr.bin/ioprio/ioprio.c
71
argv += optind;
usr.bin/ipcrm/ipcrm.c
169
if (optind != argc) {
usr.bin/ipcrm/ipcrm.c
170
warnx("unknown argument: %s\n", argv[optind]);
usr.bin/join/join.c
201
argc -= optind;
usr.bin/join/join.c
202
argv += optind;
usr.bin/jot/jot.c
120
argc -= optind;
usr.bin/jot/jot.c
121
argv += optind;
usr.bin/kcollect/kcollect.c
192
if (cmd != 'x' && ac != optind) {
usr.bin/kcollect/kcollect.c
193
fprintf(stderr, "Unknown argument %s\n", av[optind]);
usr.bin/kcollect/kcollect.c
202
start_gnuplot(ac - optind, av + optind, datafile);
usr.bin/kdump/kdump.c
140
if (argc > optind)
usr.bin/kenv/kenv.c
89
argc -= optind;
usr.bin/kenv/kenv.c
90
argv += optind;
usr.bin/ktrace/ktrace.c
104
argv += optind;
usr.bin/ktrace/ktrace.c
105
argc -= optind;
usr.bin/ktrdump/ktrdump.c
271
ac -= optind;
usr.bin/ktrdump/ktrdump.c
272
av += optind;
usr.bin/last/last.c
143
p = argv[optind - 1];
usr.bin/last/last.c
147
maxrec = atol(argv[optind] + 1);
usr.bin/last/last.c
181
for (argv += optind; *argv; ++argv) {
usr.bin/lastcomm/lastcomm.c
115
argc -= optind;
usr.bin/lastcomm/lastcomm.c
116
argv += optind;
usr.bin/ldd/ldd.c
82
argc -= optind;
usr.bin/ldd/ldd.c
83
argv += optind;
usr.bin/limits/limits.c
334
--optind; /* back one arg, and make arg NULL */
usr.bin/limits/limits.c
381
argv += optind;
usr.bin/locale/locale.c
235
argc -= optind;
usr.bin/locale/locale.c
236
argv += optind;
usr.bin/localedef/localedef.c
295
if ((argc - 1) != (optind)) {
usr.bin/locate/code/locate.code.c
130
argc -= optind;
usr.bin/locate/code/locate.code.c
131
argv += optind;
usr.bin/locate/locate/locate.c
172
argv += optind;
usr.bin/locate/locate/locate.c
173
argc -= optind;
usr.bin/lockf/lockf.c
92
if (argc - optind < 2)
usr.bin/lockf/lockf.c
94
lockname = argv[optind++];
usr.bin/lockf/lockf.c
95
argc -= optind;
usr.bin/lockf/lockf.c
96
argv += optind;
usr.bin/logger/logger.c
120
argc -= optind;
usr.bin/logger/logger.c
121
argv += optind;
usr.bin/login/login.c
213
argc -= optind;
usr.bin/login/login.c
214
argv += optind;
usr.bin/logname/logname.c
57
argc -= optind;
usr.bin/logname/logname.c
58
argv += optind;
usr.bin/look/look.c
124
argc -= optind;
usr.bin/look/look.c
125
argv += optind;
usr.bin/m4/main.c
221
argc -= optind;
usr.bin/m4/main.c
222
argv += optind;
usr.bin/mail/main.c
148
if ((argv[optind] != NULL) && (argv[optind][0] != '-'))
usr.bin/mail/main.c
149
ef = argv[optind++];
usr.bin/mail/main.c
208
for (i = optind; (argv[i] != NULL) && (*argv[i] != '-'); i++)
usr.bin/mesg/mesg.c
63
argc -= optind;
usr.bin/mesg/mesg.c
64
argv += optind;
usr.bin/ministat/ministat.c
604
argc -= optind;
usr.bin/ministat/ministat.c
605
argv += optind;
usr.bin/mkcsmapper/yacc.y
710
argc -= optind;
usr.bin/mkcsmapper/yacc.y
711
argv += optind;
usr.bin/mkesdb/yacc.y
320
argc-=optind;
usr.bin/mkesdb/yacc.y
321
argv+=optind;
usr.bin/mkfifo/mkfifo.c
72
argc -= optind;
usr.bin/mkfifo/mkfifo.c
73
argv += optind;
usr.bin/mktemp/mktemp.c
84
argc -= optind;
usr.bin/mktemp/mktemp.c
85
argv += optind;
usr.bin/monitor/monitor.c
91
ac -= optind;
usr.bin/monitor/monitor.c
92
av += optind;
usr.bin/mt/mt.c
155
argc -= optind;
usr.bin/mt/mt.c
156
argv += optind;
usr.bin/ncal/ncal.c
352
argc -= optind;
usr.bin/ncal/ncal.c
353
argv += optind;
usr.bin/netstat/main.c
349
argv += optind;
usr.bin/netstat/main.c
350
argc -= optind;
usr.bin/newgrp/newgrp.c
95
argc -= optind;
usr.bin/newgrp/newgrp.c
96
argv += optind;
usr.bin/nfsstat/nfsstat.c
117
argc -= optind;
usr.bin/nfsstat/nfsstat.c
118
argv += optind;
usr.bin/nice/nice.c
77
argc -= optind;
usr.bin/nice/nice.c
78
argv += optind;
usr.bin/nl/nl.c
232
argc -= optind;
usr.bin/nl/nl.c
233
argv += optind;
usr.bin/nohup/nohup.c
66
argc -= optind;
usr.bin/nohup/nohup.c
67
argv += optind;
usr.bin/passwd/passwd.c
90
argc -= optind;
usr.bin/passwd/passwd.c
91
argv += optind;
usr.bin/paste/paste.c
93
argc -= optind;
usr.bin/paste/paste.c
94
argv += optind;
usr.bin/patch/patch.c
561
optreset = optind = 1;
usr.bin/patch/patch.c
669
Argc -= optind;
usr.bin/patch/patch.c
670
Argv += optind;
usr.bin/pathchk/pathchk.c
74
argc -= optind;
usr.bin/pathchk/pathchk.c
75
argv += optind;
usr.bin/pctrack/pctrack.c
140
ac -= optind;
usr.bin/pctrack/pctrack.c
141
av += optind;
usr.bin/pkill/pkill.c
298
argc -= optind;
usr.bin/pkill/pkill.c
299
argv += optind;
usr.bin/printenv/printenv.c
65
argc -= optind;
usr.bin/printenv/printenv.c
66
argv += optind;
usr.bin/pwait/pwait.c
83
argc -= optind;
usr.bin/pwait/pwait.c
84
argv += optind;
usr.bin/quota/quota.c
125
argc -= optind;
usr.bin/quota/quota.c
126
argv += optind;
usr.bin/rev/rev.c
62
argc -= optind;
usr.bin/rev/rev.c
63
argv += optind;
usr.bin/rpcinfo/rpcinfo.c
257
if (argc - optind > 1)
usr.bin/rpcinfo/rpcinfo.c
268
pmapdump(argc - optind, argv + optind);
usr.bin/rpcinfo/rpcinfo.c
272
ip_ping(portnum, "udp", argc - optind, argv + optind);
usr.bin/rpcinfo/rpcinfo.c
276
ip_ping(portnum, "tcp", argc - optind, argv + optind);
usr.bin/rpcinfo/rpcinfo.c
280
brdcst(argc - optind, argv + optind);
usr.bin/rpcinfo/rpcinfo.c
283
deletereg(netid, argc - optind, argv + optind);
usr.bin/rpcinfo/rpcinfo.c
286
addrping(address, netid, argc - optind, argv + optind);
usr.bin/rpcinfo/rpcinfo.c
289
progping(netid, argc - optind, argv + optind);
usr.bin/rpcinfo/rpcinfo.c
293
rpcbdump(function, netid, argc - optind, argv + optind);
usr.bin/rpcinfo/rpcinfo.c
296
rpcbgetstat(argc - optind, argv + optind);
usr.bin/rpcinfo/rpcinfo.c
299
rpcbaddrlist(netid, argc - optind, argv + optind);
usr.bin/rup/rup.c
239
if (argc == optind)
usr.bin/rup/rup.c
242
for (; optind < argc; optind++)
usr.bin/rup/rup.c
243
retval += onehost(argv[optind]);
usr.bin/ruptime/ruptime.c
105
argc -= optind;
usr.bin/ruptime/ruptime.c
106
argv += optind;
usr.bin/rusers/rusers.c
239
if (argc == optind)
usr.bin/rusers/rusers.c
242
for (; optind < argc; optind++)
usr.bin/rusers/rusers.c
243
onehost(argv[optind]);
usr.bin/rwall/rwall.c
77
argc -= optind;
usr.bin/rwall/rwall.c
78
argv += optind;
usr.bin/rwho/rwho.c
95
argc -= optind;
usr.bin/rwho/rwho.c
96
argv += optind;
usr.bin/script/script.c
134
argc -= optind;
usr.bin/script/script.c
135
argv += optind;
usr.bin/sdiff/sdiff.c
322
argc -= optind;
usr.bin/sdiff/sdiff.c
323
argv += optind;
usr.bin/sdpquery/sdpquery.c
108
argc -= optind;
usr.bin/sdpquery/sdpquery.c
109
argv += optind;
usr.bin/sdpquery/sdpquery.c
111
optind = 0;
usr.bin/sed/main.c
177
argc -= optind;
usr.bin/sed/main.c
178
argv += optind;
usr.bin/seq/seq.c
124
argc -= optind;
usr.bin/seq/seq.c
125
argv += optind;
usr.bin/seq/seq.c
98
while ((optind < argc) && !numeric(argv[optind]) &&
usr.bin/setcaps/setcaps.c
89
ac -= optind;
usr.bin/setcaps/setcaps.c
90
av += optind;
usr.bin/shlock/shlock.c
86
argc -= optind;
usr.bin/shlock/shlock.c
87
argv += optind;
usr.bin/showmount/showmount.c
140
argc -= optind;
usr.bin/showmount/showmount.c
141
argv += optind;
usr.bin/sockstat/sockstat.c
582
argc -= optind;
usr.bin/sockstat/sockstat.c
583
argv += optind;
usr.bin/soelim/soelim.c
164
argc -= optind;
usr.bin/soelim/soelim.c
165
argv += optind;
usr.bin/sort/sort.c
1248
argc -= optind;
usr.bin/sort/sort.c
1249
argv += optind;
usr.bin/split/split.c
124
argv += optind;
usr.bin/split/split.c
125
argc -= optind;
usr.bin/split/split.c
84
p = argv[optind - 1];
usr.bin/split/split.c
89
strtol(argv[optind] + 1, &ep, 10);
usr.bin/stat/stat.c
280
argc -= optind;
usr.bin/stat/stat.c
281
argv += optind;
usr.bin/stdbuf/stdbuf.c
74
argc -= optind;
usr.bin/stdbuf/stdbuf.c
75
argv += optind;
usr.bin/strfile/strfile.c
284
argv += optind;
usr.bin/su/su.c
191
if (optind < argc && strcmp(argv[optind], "-") == 0) {
usr.bin/su/su.c
194
optind++;
usr.bin/su/su.c
197
if (optind < argc)
usr.bin/su/su.c
198
user = argv[optind++];
usr.bin/su/su.c
231
for (i = argc; i >= optind; i--)
usr.bin/su/su.c
235
argv += optind;
usr.bin/tail/tail.c
120
argc -= optind;
usr.bin/tail/tail.c
121
argv += optind;
usr.bin/tcopy/tcopy.c
98
argc -= optind;
usr.bin/tcopy/tcopy.c
99
argv += optind;
usr.bin/tee/tee.c
78
argv += optind;
usr.bin/tee/tee.c
79
argc -= optind;
usr.bin/telnet/main.c
304
argc -= optind;
usr.bin/telnet/main.c
305
argv += optind;
usr.bin/time/time.c
103
if (!(argc -= optind))
usr.bin/time/time.c
105
argv += optind;
usr.bin/timeout/timeout.c
325
argc -= optind;
usr.bin/timeout/timeout.c
326
argv += optind;
usr.bin/top/top.c
107
extern int optind;
usr.bin/top/top.c
333
optind = 1;
usr.bin/top/top.c
471
if (optind < ac && *av[optind])
usr.bin/top/top.c
473
if ((i = atoiwi(av[optind])) == Invalid)
usr.bin/touch/touch.c
111
argc -= optind;
usr.bin/touch/touch.c
112
argv += optind;
usr.bin/tput/tput.c
68
argc -= optind;
usr.bin/tput/tput.c
69
argv += optind;
usr.bin/tr/tr.c
94
argc -= optind;
usr.bin/tr/tr.c
95
argv += optind;
usr.bin/truncate/truncate.c
81
argv += optind;
usr.bin/truncate/truncate.c
82
argc -= optind;
usr.bin/truss/main.c
179
ac -= optind; av += optind;
usr.bin/tset/tset.c
140
argc -= optind;
usr.bin/tset/tset.c
141
argv += optind;
usr.bin/tsort/tsort.c
130
argc -= optind;
usr.bin/tsort/tsort.c
131
argv += optind;
usr.bin/u4bhidctl/usbhid.c
491
argc -= optind;
usr.bin/u4bhidctl/usbhid.c
492
argv += optind;
usr.bin/ul/ul.c
139
if (optind == argc)
usr.bin/ul/ul.c
141
else for (; optind<argc; optind++) {
usr.bin/ul/ul.c
142
f = fopen(argv[optind],"r");
usr.bin/ul/ul.c
144
err(1, "%s", argv[optind]);
usr.bin/uname/uname.c
138
argc -= optind;
usr.bin/uname/uname.c
139
argv += optind;
usr.bin/undo/undo.c
196
ac -= optind;
usr.bin/undo/undo.c
197
av += optind;
usr.bin/unexpand/unexpand.c
80
argc -= optind;
usr.bin/unexpand/unexpand.c
81
argv += optind;
usr.bin/unifdef/unifdef.c
343
argc -= optind;
usr.bin/unifdef/unifdef.c
344
argv += optind;
usr.bin/uniq/uniq.c
105
argc -= optind;
usr.bin/uniq/uniq.c
106
argv += optind;
usr.bin/units/units.c
751
if (optind == argc - 2) {
usr.bin/units/units.c
752
havestr = argv[optind];
usr.bin/units/units.c
753
wantstr = argv[optind + 1];
usr.bin/unvis/unvis.c
70
argc -= optind;
usr.bin/unvis/unvis.c
71
argv += optind;
usr.bin/unzip/unzip.c
1011
return (optind);
usr.bin/unzip/unzip.c
945
optreset = optind = 1;
usr.bin/usbhidaction/usbhidaction.c
135
argc -= optind;
usr.bin/usbhidaction/usbhidaction.c
136
argv += optind;
usr.bin/users/users.c
64
argc -= optind;
usr.bin/users/users.c
65
argv += optind;
usr.bin/uudecode/uudecode.c
114
argc -= optind;
usr.bin/uudecode/uudecode.c
115
argv += optind;
usr.bin/uuencode/uuencode.c
88
argv += optind;
usr.bin/uuencode/uuencode.c
89
argc -= optind;
usr.bin/vis/vis.c
136
argc -= optind;
usr.bin/vis/vis.c
137
argv += optind;
usr.bin/vknet/vknet.c
100
av += optind;
usr.bin/vknet/vknet.c
101
ac -= optind;
usr.bin/vmstat/vmstat.c
240
argc -= optind;
usr.bin/vmstat/vmstat.c
241
argv += optind;
usr.bin/w/w.c
180
argc -= optind;
usr.bin/w/w.c
181
argv += optind;
usr.bin/wall/wall.c
103
argc -= optind;
usr.bin/wall/wall.c
104
argv += optind;
usr.bin/wc/wc.c
107
argv += optind;
usr.bin/wc/wc.c
108
argc -= optind;
usr.bin/what/what.c
62
argv += optind;
usr.bin/whereis/whereis.c
123
while (optind < argc &&
usr.bin/whereis/whereis.c
124
strcmp(argv[optind], "-f") != 0 &&
usr.bin/whereis/whereis.c
125
strcmp(argv[optind], "-B") != 0 &&
usr.bin/whereis/whereis.c
126
strcmp(argv[optind], "-M") != 0 &&
usr.bin/whereis/whereis.c
127
strcmp(argv[optind], "-S") != 0) {
usr.bin/whereis/whereis.c
128
decolonify(argv[optind], dirlist, &i);
usr.bin/whereis/whereis.c
129
optind++;
usr.bin/whereis/whereis.c
168
if (optind == argc)
usr.bin/whereis/whereis.c
170
query = argv + optind;
usr.bin/which/which.c
67
argv += optind;
usr.bin/which/which.c
68
argc -= optind;
usr.bin/who/who.c
150
argc -= optind;
usr.bin/who/who.c
151
argv += optind;
usr.bin/whois/whois.c
157
argc -= optind;
usr.bin/whois/whois.c
158
argv += optind;
usr.bin/xargs/xargs.c
232
argc -= optind;
usr.bin/xargs/xargs.c
233
argv += optind;
usr.bin/xinstall/xinstall.c
222
argc -= optind;
usr.bin/xinstall/xinstall.c
223
argv += optind;
usr.bin/xstr/xstr.c
105
argc -= optind;
usr.bin/xstr/xstr.c
106
argv += optind;
usr.bin/ypcat/ypcat.c
117
if (optind + 1 != argc)
usr.bin/ypcat/ypcat.c
123
inmap = argv[optind];
usr.bin/ypmatch/ypmatch.c
102
if ((argc-optind) < 2)
usr.bin/ypmatch/ypmatch.c
112
for (; optind < argc-1; optind++) {
usr.bin/ypmatch/ypmatch.c
113
inkey = argv[optind];
usr.bin/ypwhich/ypwhich.c
174
switch (argc-optind) {
usr.bin/ypwhich/ypwhich.c
186
if ((lsin.sin_addr.s_addr = inet_addr(argv[optind])) == INADDR_NONE) {
usr.bin/ypwhich/ypwhich.c
187
hent = gethostbyname(argv[optind]);
usr.bin/ypwhich/ypwhich.c
189
errx(ERR_NOSUCHHOST, "host %s unknown", argv[optind]);
usr.bin/ypwhich/ypwhich.c
202
if (argc-optind > 1)
usr.bin/ypwhich/ypwhich.c
205
if (argv[optind]) {
usr.bin/ypwhich/ypwhich.c
206
map = argv[optind];
usr.sbin/ac/ac.c
241
if (optind < argc) {
usr.sbin/ac/ac.c
245
for (; optind < argc; optind++) {
usr.sbin/ac/ac.c
246
update_user(argv[optind], (struct timeval){ 0, 0 });
usr.sbin/accton/accton.c
54
argc -= optind;
usr.sbin/accton/accton.c
55
argv += optind;
usr.sbin/acpi/acpicall/acpicall.c
150
argc -= optind;
usr.sbin/acpi/acpicall/acpicall.c
151
argv += optind;
usr.sbin/acpi/acpiconf/acpiconf.c
230
argc -= optind;
usr.sbin/acpi/acpiconf/acpiconf.c
231
argv += optind;
usr.sbin/arp/arp.c
150
argc -= optind;
usr.sbin/arp/arp.c
151
argv += optind;
usr.sbin/asf/asf.c
210
argv += optind;
usr.sbin/asf/asf.c
211
argc -= optind;
usr.sbin/autofs/automount.c
300
argc -= optind;
usr.sbin/autofs/automountd.c
466
argc -= optind;
usr.sbin/autofs/autounmountd.c
293
argc -= optind;
usr.sbin/boot0cfg/boot0cfg.c
137
argc -= optind;
usr.sbin/boot0cfg/boot0cfg.c
138
argv += optind;
usr.sbin/btconfig/btconfig.c
229
av += optind;
usr.sbin/btconfig/btconfig.c
230
ac -= optind;
usr.sbin/burncd/burncd.c
132
argc -= optind;
usr.sbin/burncd/burncd.c
133
argv += optind;
usr.sbin/cdcontrol/cdcontrol.c
217
argc -= optind;
usr.sbin/cdcontrol/cdcontrol.c
218
argv += optind;
usr.sbin/chown/chown.c
104
argv += optind;
usr.sbin/chown/chown.c
105
argc -= optind;
usr.sbin/chroot/chroot.c
91
argc -= optind;
usr.sbin/chroot/chroot.c
92
argv += optind;
usr.sbin/ckdist/ckdist.c
129
argc -= optind;
usr.sbin/ckdist/ckdist.c
130
argv += optind;
usr.sbin/clog/clog.c
105
if (init==1) init_log(argv[optind],size);
usr.sbin/clog/clog.c
107
read_log(argv[optind],optf);
usr.sbin/clog/clog.c
92
if (argv[optind]==NULL) {
usr.sbin/config/main.c
113
argc -= optind;
usr.sbin/config/main.c
114
argv += optind;
usr.sbin/cpucontrol/cpucontrol.c
482
argc -= optind;
usr.sbin/cpucontrol/cpucontrol.c
483
argv += optind;
usr.sbin/cron/cron/externs.h
81
extern int optind, opterr, optopt;
usr.sbin/cron/crontab/crontab.c
173
if (argv[optind] != NULL) {
usr.sbin/cron/crontab/crontab.c
177
if (argv[optind] != NULL) {
usr.sbin/cron/crontab/crontab.c
179
strncpy (Filename, argv[optind], (sizeof Filename)-1);
usr.sbin/daemon/daemon.c
162
argc -= optind;
usr.sbin/daemon/daemon.c
163
argv += optind;
usr.sbin/dntpd/main.c
189
if (optind != ac)
usr.sbin/dntpd/main.c
204
if (optind != ac - 1)
usr.sbin/dntpd/main.c
206
dotest(av[optind]);
usr.sbin/dntpd/main.c
213
for (i = optind; i < ac; ++i) {
usr.sbin/edquota/edquota.c
186
argc -= optind;
usr.sbin/edquota/edquota.c
187
argv += optind;
usr.sbin/efidp/efidp.c
108
argc -= optind;
usr.sbin/efidp/efidp.c
109
argv += optind;
usr.sbin/efivar/efivar.c
339
argc -= optind;
usr.sbin/efivar/efivar.c
340
argv += optind;
usr.sbin/fdformat/fdformat.c
302
if (optind != argc - 1)
usr.sbin/fdformat/fdformat.c
321
dev_name = makename(argv[optind], suffix);
usr.sbin/fdwrite/fdwrite.c
112
if(optind < argc)
usr.sbin/fstyp/fstyp.c
205
argc -= optind;
usr.sbin/fstyp/fstyp.c
206
argv += optind;
usr.sbin/hotplugd/hotplugd.c
86
argc -= optind;
usr.sbin/hotplugd/hotplugd.c
87
argv += optind;
usr.sbin/inetd/builtins.c
359
optind = 1;
usr.sbin/inetd/inetd.c
431
argc -= optind;
usr.sbin/inetd/inetd.c
432
argv += optind;
usr.sbin/installer/dfuibe_installer/main.c
110
argc -= optind;
usr.sbin/installer/dfuibe_installer/main.c
111
argv += optind;
usr.sbin/installer/dfuife_curses/main.c
177
argc -= optind;
usr.sbin/installer/dfuife_curses/main.c
178
argv += optind;
usr.sbin/iostat/iostat.c
225
argc -= optind;
usr.sbin/iostat/iostat.c
226
argv += optind;
usr.sbin/jail/jail.c
89
argc -= optind;
usr.sbin/jail/jail.c
90
argv += optind;
usr.sbin/kbdcontrol/kbdcontrol.c
1152
nextarg(argc, argv, &optind, 'f'));
usr.sbin/kbdcontrol/kbdcontrol.c
1178
if ((optind != argc) || (argc == 1))
usr.sbin/keyserv/keyserv.c
145
if (optind != argc) {
usr.sbin/lpr/chkprintcap/chkprintcap.c
98
if (optind != argc)
usr.sbin/lpr/lpd/lpd.c
205
argc -= optind;
usr.sbin/lpr/lpd/lpd.c
206
argv += optind;
usr.sbin/lpr/lpq/lpq.c
105
for (argc -= optind, argv += optind; argc; --argc, ++argv)
usr.sbin/lpr/lpr/lpr.c
222
optind--;
usr.sbin/lpr/lpr/lpr.c
262
argc -= optind;
usr.sbin/lpr/lpr/lpr.c
263
argv += optind;
usr.sbin/lptcontrol/lptcontrol.c
86
argc -= optind;
usr.sbin/lptcontrol/lptcontrol.c
87
argv += optind;
usr.sbin/makefs/makefs.c
286
argc -= optind;
usr.sbin/makefs/makefs.c
287
argv += optind;
usr.sbin/memcontrol/memcontrol.c
232
argc -= optind;
usr.sbin/memcontrol/memcontrol.c
233
argv += optind;
usr.sbin/mfiutil/mfi_config.c
588
optind = 2;
usr.sbin/mfiutil/mfi_config.c
622
ac -= optind;
usr.sbin/mfiutil/mfi_config.c
623
av += optind;
usr.sbin/mfiutil/mfi_evt.c
567
optind = 1;
usr.sbin/mfiutil/mfi_evt.c
604
ac -= optind;
usr.sbin/mfiutil/mfi_evt.c
605
av += optind;
usr.sbin/mfiutil/mfiutil.c
135
av += optind;
usr.sbin/mfiutil/mfiutil.c
136
ac -= optind;
usr.sbin/mld6query/mld6query.c
97
argv += optind;
usr.sbin/mld6query/mld6query.c
98
argc -= optind;
usr.sbin/mlxcontrol/command.c
134
argc -= optind;
usr.sbin/mlxcontrol/command.c
135
argv += optind;
usr.sbin/mlxcontrol/command.c
467
optind = 1;
usr.sbin/mlxcontrol/command.c
479
argc -= optind;
usr.sbin/mlxcontrol/command.c
480
argv += optind;
usr.sbin/mlxcontrol/command.c
525
optind = 1;
usr.sbin/mlxcontrol/command.c
534
argc -= optind;
usr.sbin/mlxcontrol/command.c
535
argv += optind;
usr.sbin/mlxcontrol/command.c
584
optind = 1;
usr.sbin/mlxcontrol/command.c
593
argc -= optind;
usr.sbin/mlxcontrol/command.c
594
argv += optind;
usr.sbin/mlxcontrol/command.c
774
optind = 1;
usr.sbin/mlxcontrol/command.c
793
argc -= optind;
usr.sbin/mlxcontrol/command.c
794
argv += optind;
usr.sbin/moused/moused.c
652
debug("optind: %d, optarg: '%s'", optind, optarg);
usr.sbin/moused/moused.c
654
if ((optind >= argc) || !isdigit(*argv[optind]))
usr.sbin/moused/moused.c
656
i = atoi(argv[optind]);
usr.sbin/moused/moused.c
658
warnx("invalid argument `%s'", argv[optind]);
usr.sbin/moused/moused.c
662
++optind;
usr.sbin/mpsutil/mpsutil.c
111
av += optind;
usr.sbin/mpsutil/mpsutil.c
112
ac -= optind;
usr.sbin/mptable/mptable.c
346
argc -= optind;
usr.sbin/mptable/mptable.c
347
argv += optind;
usr.sbin/mptutil/mpt_config.c
620
optind = 2;
usr.sbin/mptutil/mpt_config.c
654
ac -= optind;
usr.sbin/mptutil/mpt_config.c
655
av += optind;
usr.sbin/mptutil/mpt_evt.c
116
optind = 1;
usr.sbin/mptutil/mpt_evt.c
127
ac -= optind;
usr.sbin/mptutil/mpt_evt.c
128
av += optind;
usr.sbin/mptutil/mptutil.c
107
av += optind;
usr.sbin/mptutil/mptutil.c
108
ac -= optind;
usr.sbin/mtree/mtree.c
227
argc -= optind;
usr.sbin/mtree/mtree.c
228
argv += optind;
usr.sbin/ndp/ndp.c
224
argc -= optind;
usr.sbin/ndp/ndp.c
225
argv += optind;
usr.sbin/ndp/ndp.c
272
argc -= optind;
usr.sbin/ndp/ndp.c
273
argv += optind;
usr.sbin/newsyslog/newsyslog.c
335
argc -= optind;
usr.sbin/newsyslog/newsyslog.c
336
argv += optind;
usr.sbin/newsyslog/newsyslog.c
739
if (optind == argc) {
usr.sbin/ngctl/list.c
65
optind = 1;
usr.sbin/ngctl/list.c
77
ac -= optind;
usr.sbin/ngctl/list.c
78
av += optind;
usr.sbin/ngctl/main.c
142
ac -= optind;
usr.sbin/ngctl/main.c
143
av += optind;
usr.sbin/ngctl/show.c
67
optind = 1;
usr.sbin/ngctl/show.c
79
ac -= optind;
usr.sbin/ngctl/show.c
80
av += optind;
usr.sbin/nghook/main.c
91
ac -= optind;
usr.sbin/nghook/main.c
92
av += optind;
usr.sbin/pciconf/pciconf.c
151
if ((listmode && optind != argc)
usr.sbin/pciconf/pciconf.c
152
|| (writemode && optind + 3 != argc)
usr.sbin/pciconf/pciconf.c
153
|| (readmode && optind + 2 != argc)
usr.sbin/pciconf/pciconf.c
154
|| (attachedmode && optind + 1 != argc))
usr.sbin/pciconf/pciconf.c
160
chkattached(argv[optind]);
usr.sbin/pciconf/pciconf.c
162
readit(argv[optind], argv[optind + 1],
usr.sbin/pciconf/pciconf.c
165
writeit(argv[optind], argv[optind + 1], argv[optind + 2],
usr.sbin/pfctl/pfctl.c
2133
argc -= optind;
usr.sbin/pfctl/pfctl.c
2134
argv += optind;
usr.sbin/pfctl/pfctl.c
2141
} else if (argc != optind) {
usr.sbin/pfctl/pfctl.c
2142
warnx("unknown command line argument: %s ...", argv[optind]);
usr.sbin/pflogd/pflogd.c
646
argc -= optind;
usr.sbin/pflogd/pflogd.c
647
argv += optind;
usr.sbin/powerd/powerd.c
275
ac -= optind;
usr.sbin/powerd/powerd.c
276
av += optind;
usr.sbin/procctl/procctl.c
74
argc -= optind;
usr.sbin/procctl/procctl.c
75
argv += optind;
usr.sbin/pstat/pstat.c
274
argc -= optind;
usr.sbin/pstat/pstat.c
275
argv += optind;
usr.sbin/pwd_mkdb/pwd_mkdb.c
147
argc -= optind;
usr.sbin/pwd_mkdb/pwd_mkdb.c
148
argv += optind;
usr.sbin/quotaon/quotaon.c
100
argv += optind;
usr.sbin/quotaon/quotaon.c
99
argc -= optind;
usr.sbin/rarpd/rarpd.c
166
argc -= optind;
usr.sbin/rarpd/rarpd.c
167
argv += optind;
usr.sbin/repquota/repquota.c
119
argc -= optind;
usr.sbin/repquota/repquota.c
120
argv += optind;
usr.sbin/resident/resident.c
139
argc -= optind;
usr.sbin/resident/resident.c
140
argv += optind;
usr.sbin/rip6query/rip6query.c
101
argv += optind;
usr.sbin/rip6query/rip6query.c
102
argc -= optind;
usr.sbin/rndcontrol/rndcontrol.c
105
argc -= optind;
usr.sbin/rndcontrol/rndcontrol.c
106
argv += optind;
usr.sbin/rndcontrol/rndcontrol.c
109
fprintf(stderr, "%s: unknown argument(s): ", argv[-optind]);
usr.sbin/route6d/route6d.c
317
argc -= optind;
usr.sbin/route6d/route6d.c
318
argv += optind;
usr.sbin/rpc.umntall/rpc.umntall.c
89
argc -= optind;
usr.sbin/rpc.umntall/rpc.umntall.c
90
argv += optind;
usr.sbin/rrenumd/rrenumd.c
450
argc -= optind;
usr.sbin/rrenumd/rrenumd.c
451
argv += optind;
usr.sbin/rtadvctl/rtadvctl.c
169
argc -= optind;
usr.sbin/rtadvctl/rtadvctl.c
170
argv += optind;
usr.sbin/rtadvd/rtadvd.c
224
argc -= optind;
usr.sbin/rtadvd/rtadvd.c
225
argv += optind;
usr.sbin/rtsold/rtsold.c
157
argc -= optind;
usr.sbin/rtsold/rtsold.c
158
argv += optind;
usr.sbin/sa/main.c
171
argc -= optind;
usr.sbin/sa/main.c
172
argv += optind;
usr.sbin/sensorsd/sensorsd.c
128
argc -= optind;
usr.sbin/sensorsd/sensorsd.c
129
argv += optind;
usr.sbin/slstat/slstat.c
100
&& isdigit(argv[optind][2])
usr.sbin/slstat/slstat.c
101
&& sscanf(argv[optind], "sl%d", &unit) == 1) {
usr.sbin/slstat/slstat.c
102
strncpy(interface, argv[optind], IFNAMSIZ);
usr.sbin/slstat/slstat.c
92
if (optind >= argc)
usr.sbin/slstat/slstat.c
94
else if (isdigit(argv[optind][0])) {
usr.sbin/slstat/slstat.c
95
unit = atoi(argv[optind]);
usr.sbin/slstat/slstat.c
99
} else if (strncmp(argv[optind], "sl", 2) == 0
usr.sbin/spray/spray.c
87
argc -= optind;
usr.sbin/spray/spray.c
88
argv += optind;
usr.sbin/syslogd/syslogd.c
465
if ((argc -= optind) != 0)
usr.sbin/tcpdrop/tcpdrop.c
87
argc -= optind;
usr.sbin/tcpdrop/tcpdrop.c
88
argv += optind;
usr.sbin/traceroute/traceroute.c
469
argc -= optind;
usr.sbin/traceroute/traceroute.c
470
argv += optind;
usr.sbin/traceroute6/traceroute6.c
492
argc -= optind;
usr.sbin/traceroute6/traceroute6.c
493
argv += optind;
usr.sbin/trpt/trpt.c
126
argc -= optind;
usr.sbin/trpt/trpt.c
127
argv += optind;
usr.sbin/tzsetup/tzsetup.c
1039
if (optind == argc - 1) {
usr.sbin/tzsetup/tzsetup.c
1042
"\nUse the default `%s' zone?", argv[optind]);
usr.sbin/tzsetup/tzsetup.c
1044
rv = install_zoneinfo_file(argv[optind]);
usr.sbin/tzsetup/tzsetup.c
939
if (argc - optind > 1)
usr.sbin/tzsetup/tzsetup.c
988
if (optind == argc - 1) {
usr.sbin/tzsetup/tzsetup.c
991
if (stat(argv[optind], &sb) != 0) {
usr.sbin/tzsetup/tzsetup.c
995
rv = install_zoneinfo(argv[optind]);
usr.sbin/uefisign/uefisign.c
368
argc -= optind;
usr.sbin/uefisign/uefisign.c
369
argv += optind;
usr.sbin/vidcontrol/vidcontrol.c
1128
font = nextarg(argc, argv, &optind, 'f', 0);
usr.sbin/vidcontrol/vidcontrol.c
1169
get_reverse_colors(argc, argv, &optind);
usr.sbin/vidcontrol/vidcontrol.c
1188
if (optind < argc && !strcmp(argv[optind], "show")) {
usr.sbin/vidcontrol/vidcontrol.c
1190
optind++;
usr.sbin/vidcontrol/vidcontrol.c
1193
video_mode(argc, argv, &optind);
usr.sbin/vidcontrol/vidcontrol.c
1195
get_normal_colors(argc, argv, &optind);
usr.sbin/vidcontrol/vidcontrol.c
1210
if ((optind != argc) || (argc == 1))
usr.sbin/vipw/vipw.c
74
argc -= optind;
usr.sbin/vipw/vipw.c
75
argv += optind;
usr.sbin/vknetd/vknetd.c
105
av += optind;
usr.sbin/vknetd/vknetd.c
106
ac -= optind;
usr.sbin/vnconfig/vnconfig.c
211
if(argc > optind)
usr.sbin/vnconfig/vnconfig.c
212
while(argc > optind)
usr.sbin/vnconfig/vnconfig.c
213
rv += getinfo( argv[optind++]);
usr.sbin/vnconfig/vnconfig.c
226
if (argc < optind + 1)
usr.sbin/vnconfig/vnconfig.c
228
vndisks[0].dev = argv[optind++];
usr.sbin/vnconfig/vnconfig.c
229
vndisks[0].file = argv[optind++]; /* may be NULL */
usr.sbin/vnconfig/vnconfig.c
233
if (optind < argc)
usr.sbin/vnconfig/vnconfig.c
234
getoptions(&vndisks[0], argv[optind]);
usr.sbin/watch/watch.c
337
if (*(av += optind) == NULL) {
usr.sbin/watchdogd/watchdogd.c
92
argc -= optind;
usr.sbin/watchdogd/watchdogd.c
93
argv += optind;
usr.sbin/yp_mkdb/yp_mkdb.c
155
argc -= optind;
usr.sbin/yp_mkdb/yp_mkdb.c
156
argv += optind;
usr.sbin/yppoll/yppoll.c
88
if (optind + 1 != argc)
usr.sbin/yppoll/yppoll.c
91
inmap = argv[optind];
usr.sbin/yppush/yppush_main.c
524
argc -= optind;
usr.sbin/yppush/yppush_main.c
525
argv += optind;
usr.sbin/ypset/ypset.c
119
extern int optind;
usr.sbin/ypset/ypset.c
147
if (optind + 1 != argc)
usr.sbin/ypset/ypset.c
150
if (bind_tohost(&sin, domainname, argv[optind]))
usr.sbin/zic/zdump.c
234
if (! (optind == argc - 1 && strcmp(argv[optind], "=") == 0))
usr.sbin/zic/zdump.c
299
for (i = optind; i < argc; ++i)
usr.sbin/zic/zdump.c
322
for (i = optind; i < argc; ++i) {
usr.sbin/zic/zic.c
509
if (optind == argc - 1 && strcmp(argv[optind], "=") == 0)
usr.sbin/zic/zic.c
516
if (optind < argc && leapsec != NULL) {
usr.sbin/zic/zic.c
521
for (i = optind; i < argc; ++i)