HomeSort by: relevance | last modified time | path
    Searched refs:optind (Results 1 - 25 of 618) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /src/usr.bin/getopt/
getopt.c 23 optind = 2; /* Past the program name and the option letters. */
37 for (; optind < argc; optind++)
38 printf(" %s", argv[optind]);
  /src/usr.bin/netgroup/
netgroup.c 69 if (optind >= argc)
72 for(; optind < argc; optind++) {
73 setnetgrent(argv[optind]);
  /src/usr.bin/innetgr/
innetgr.c 76 if (optind >= argc)
79 for(; optind < argc; optind++) {
80 ok = innetgr(argv[optind], host, user, domain);
82 printf("%s: %d\n", argv[optind], ok);
  /src/common/lib/libc/stdlib/
getopt.c 63 optind = 1, /* index into parent argv vector */
87 place = nargv[optind];
88 if (optind >= nargc || *place++ != '-') {
96 ++optind;
114 ++optind;
125 ++optind;
137 else if (nargc > ++optind)
138 optarg = nargv[optind];
151 ++optind;
  /src/distrib/utils/more/
option.c 75 optind = 1; /* called twice, re-init getopt. */
85 p = argv[optind - 1];
89 sc_height = atoi(argv[optind] + 1);
127 return(optind);
  /src/lib/libc/stdlib/
getopt_long.c 61 int optind = 1; /* index into parent argv vector */ variable in typeref:typename:int
180 * XXX re-initialize optind to 0 and have getopt_long(3)
183 if (optind == 0)
184 optind = 1;
191 if (optind >= nargc) { /* end of argument vector */
196 optind, nargv);
197 optind -= nonopt_end - nonopt_start;
201 * If we skipped non-options, set optind
204 optind = nonopt_start;
209 if ((*(place = nargv[optind]) != '-'
    [all...]
  /src/sbin/dkscan_bsdlabel/
dkscan_bsdlabel.c 93 if (optind >= argc)
96 disk_fd = opendisk(argv[optind], O_RDWR, buf, PATH_MAX, 0);
98 err(1, "%s", argv[optind]);
100 devpart = strrchr(argv[optind], '/');
102 devpart = argv[optind];
  /src/sbin/nvmectl/
reset.c 73 if (optind >= argc)
76 open_dev(argv[optind], &fd, 1, 1);
78 err(1, "reset request to %s failed", argv[optind]);
  /src/usr.sbin/fusermount/
fusermount.c 137 if (optind >= argc - 2) {
142 execme = argv[optind + 1];
144 argv[optind + 1] = progname;
146 /* mountpoint = argv[optind]; */
149 execvp(execme, &argv[optind + 1]);
152 if (!refuse_unmount(argc - optind, argv + optind)) {
  /src/usr.bin/dirname/
dirname.c 68 argc -= optind;
69 argv += optind;
  /src/usr.bin/msgc/
msgmain.c 76 if (optind != argc-1)
79 src_name = argv[optind];
  /src/usr.bin/skey/
skey.c 78 if (argc <= optind + 1) {
80 if (argc <= optind)
82 slash = strchr(argv[optind], '/');
88 if ((n = atoi(argv[optind])) < 0) {
89 fprintf(stderr, "%s not positive\n", argv[optind]);
97 if ((n = atoi(argv[optind])) < 0) {
98 fprintf(stderr, "%s not positive\n", argv[optind]);
104 seed = argv[++optind];
  /src/usr.sbin/accton/
accton.c 67 argc -= optind;
68 argv += optind;
  /src/libexec/httpd/
main.c 194 if (argc - optind < 1)
197 argv[optind++]);
268 if (argc - optind < 1)
270 bozo_add_lua_map(&httpd, optarg, argv[optind]);
271 optind++;
280 if (argc - optind < 3)
282 bozo_add_content_map_mime(&httpd, optarg, argv[optind],
283 argv[optind+1], argv[optind+2]);
284 optind += 3
    [all...]
  /src/bin/pax/
getoldopt.c 52 optind = 2;
81 if (optind < argc) {
82 optarg = argv[optind];
83 optind++;
  /src/bin/domainname/
domainname.c 72 argc -= optind;
73 argv += optind;
  /src/bin/hostname/
hostname.c 73 argc -= optind;
74 argv += optind;
  /src/usr.bin/mkfifo/
mkfifo.c 88 argc -= optind;
89 argv += optind;
  /src/sys/arch/atari/stand/tostools/aptck/
aptck.in 76 extern int optind;
101 argv += optind;
  /src/tests/lib/libc/tls/dso/
h_tls_dlopen.c 58 var3 = &optind;
  /src/sbin/mount_hfs/
mount_hfs.c 113 optind = optreset = 1; /* Reset for parse of new argv. */
126 argc -= optind;
127 argv += optind;
  /src/tests/lib/libc/tls/
t_tls_dlopen.c 60 __thread int *var3 = &optind;
69 ATF_CHECK_EQ(var3, &optind);
77 ATF_CHECK_EQ(var3, &optind);
  /src/usr.bin/hesinfo/
hesinfo.c 58 if (argc - optind != 2 || errflg) {
64 name = argv[optind];
65 type = argv[optind + 1];
  /src/sys/arch/hppa/stand/mkboot/
mkboot.c 160 if (argc - optind < 2)
162 else if (argc - optind > 8)
184 argv += optind;
185 argc -= optind;
186 optind = 0;
187 for (pos = HPPA_LIF_FILESTART; optind < argc; optind++) {
192 lifd[optind].dir_addr = htobe32(hppa_btolifs(pos));
193 n = hppa_btolifs(putfile(argv[optind], to));
197 lifd[optind].dir_type = htobe16(HPPA_LIF_DIR_ISL)
    [all...]
  /src/bin/stty/
stty.c 75 while (optind < argc &&
76 strspn(argv[optind], "-aefg") == strlen(argv[optind]) &&
97 args: argc -= optind;
98 argv += optind;

Completed in 25 milliseconds

1 2 3 4 5 6 7 8 91011>>