Lines Matching refs:optctx

856     struct getopt_context optctx;  in __logcat()  local
857 INIT_GETOPT_CONTEXT(optctx); in __logcat()
858 optctx.opterr = !!context->error; in __logcat()
859 optctx.optstderr = context->error; in __logcat()
905 long_options, &option_index, &optctx); in __logcat()
913 if (!getSizeTArg(optctx.optarg, &pid, 1)) { in __logcat()
916 optctx.optarg); in __logcat()
926 if (optctx.optarg && in __logcat()
927 !getSizeTArg(optctx.optarg, &dummy, 1)) { in __logcat()
930 optctx.optarg); in __logcat()
951 setId = (optctx.optarg && optctx.optarg[0]) ? optctx.optarg in __logcat()
980 if (strspn(optctx.optarg, "0123456789") != in __logcat()
981 strlen(optctx.optarg)) { in __logcat()
982 char* cp = parseTime(tail_time, optctx.optarg); in __logcat()
986 optctx.optarg); in __logcat()
996 ret, optctx.optarg, c, cp + 1); in __logcat()
1001 if (!getSizeTArg(optctx.optarg, &tail_lines, 1)) { in __logcat()
1005 ret, optctx.optarg); in __logcat()
1017 context->regex = new pcrecpp::RE(optctx.optarg); in __logcat()
1022 if (!getSizeTArg(optctx.optarg, &context->maxCount)) { in __logcat()
1026 ret, optctx.optarg); in __logcat()
1032 if (!optctx.optarg) { in __logcat()
1040 if (strtoll(optctx.optarg, &cp, 0) > 0) { in __logcat()
1041 setLogSize = strtoll(optctx.optarg, &cp, 0); in __logcat()
1074 if (!optctx.optarg) { in __logcat()
1081 setPruneList = optctx.optarg; in __logcat()
1086 strdup(optctx.optarg), free); in __logcat()
1149 tail_time = lastLogTime(optctx.optarg); in __logcat()
1152 context->outputFileName = optctx.optarg; in __logcat()
1156 if (!getSizeTArg(optctx.optarg, &context->logRotateSizeKBytes, in __logcat()
1160 optctx.optarg); in __logcat()
1166 if (!getSizeTArg(optctx.optarg, &context->maxRotatedLogs, 1)) { in __logcat()
1169 optctx.optarg); in __logcat()
1175 if (!strcmp(optctx.optarg, "help") || in __logcat()
1176 !strcmp(optctx.optarg, "--help")) { in __logcat()
1182 strdup(optctx.optarg), free); in __logcat()
1304 "Option -%c needs an argument\n", optctx.optopt); in __logcat()
1314 optctx.optopt); in __logcat()
1403 } else if (argc == optctx.optind) { in __logcat()
1419 for (int i = optctx.optind ; i < argc ; i++) { in __logcat()