Lines Matching refs:optind
238 int i, rv, argcount, optind = 1; in do_tpm() local
242 if (optind < argc) { in do_tpm()
243 command = strtoul(argv[optind], &e, 16); in do_tpm()
245 Error("%s: Invalid COMMAND: \"%s\"", argv[0], argv[optind]); in do_tpm()
246 optind++; in do_tpm()
253 argcount = argc - optind; in do_tpm()
263 buf[i] = 0xff & strtoul(argv[optind], &e, 16); in do_tpm()
265 Error("%s: Invalid byte value: \"%s\"", argv[0], argv[optind]); in do_tpm()
268 optind++; in do_tpm()
288 int optind = 1; in do_app() local
292 buflen = argc - optind; in do_app()
294 buf[i] = 0xff & strtoul(argv[optind], &e, 16); in do_app()
296 Error("%s: Invalid byte value: \"%s\"", argv[0], argv[optind]); in do_app()
299 optind++; in do_app()
1009 Error("Unrecognized option: %s", argv[optind - 1]); in main()
1013 Error("Missing argument to %s", argv[optind - 1]); in main()
1034 if (argc > optind) { in main()
1035 if (!strcmp("tpm", argv[optind])) in main()
1036 do_tpm(argc - optind, argv + optind); in main()
1037 else if (!strcmp("app", argv[optind])) in main()
1038 do_app(argc - optind, argv + optind); in main()
1039 else if (!strcmp("rw", argv[optind])) in main()
1040 do_rw(argc - optind, argv + optind); in main()