Lines Matching refs:optopt
56 state->optopt = 0; in getopt_init()
69 optopt = 0; in getopt_init()
95 state->optopt = *state->place++; in getopt()
96 if (state->optopt == '-' && *state->place == 0) { in getopt()
103 if (state->optopt == 0) { in getopt()
112 state->optopt = '-'; in getopt()
115 state->optopt = *state->place++; in getopt()
119 oli = strchr(ostr, state->optopt); in getopt()
120 if (state->optopt == ':' || oli == NULL) { in getopt()
125 LOG_ERR("illegal option -- %c", state->optopt); in getopt()
155 state->optopt); in getopt()
164 return state->optopt; /* return option letter */ in getopt()