Lines Matching refs:opts_av
46 static av_opts *opts_av = NULL;
383 realloc(opts_av, (i+1) * sizeof (av_opts)))) == NULL) {
384 free(opts_av);
385 opts_av = NULL;
388 opts_av = (av_opts *)temp;
392 opts_av[i].shortnm = *marker++; /* set short name */
396 opts_av[i].has_arg = B_TRUE;
401 opts_av[i].longnm = marker;
402 opts_av[i].longnm_len = strcspn(marker, ")");
403 optstring = marker + opts_av[i].longnm_len + 1;
406 opts_av[i].longnm = optstring;
407 opts_av[i].longnm_len = 1;
433 if (opts_av != NULL)
434 free(opts_av);
435 opts_av = NULL;
448 if (len == opts_av[i].longnm_len && strncmp(argv[optind_av],
449 opts_av[i].longnm, opts_av[i].longnm_len) == 0) {
451 if (!opts_av[i].has_arg) {
453 return (opts_av[i].shortnm);
460 return (opts_av[i].shortnm);