Lines Matching +defs:match +defs:end
118 const struct option *popt, *match = NULL, *match2 = NULL;
144 /* "--" marks end of options; consume it and return. */
222 /* Search the table for an unambiguous match. */
224 /* Short-circuit if first chars don't match. */
229 match2 = match; /* Record up to two matches. */
230 match = popt;
231 /* If it's an exact match, we're done. */
239 /* Fail if there wasn't a unique match. */
240 if (match == NULL) {
249 long_prefix, opt_word, match->name, match2->name);
253 /* We've found a unique match; does it need an argument? */
254 if (match->required) {
261 long_prefix, match->name);
272 long_prefix, match->name);
276 return (match->equivalent);
339 /* Look up user: ue is first char after end of user. */
353 char *end;
355 *uid = (int)strtoul(user, &end, 10);
356 if (errno || *end != '\0') {
372 char *end;
374 *gid = (int)strtoul(g, &end, 10);
375 if (errno || *end != '\0') {