Lines Matching refs:opts_av
58 static av_opts *opts_av = NULL;
407 realloc(opts_av, (i+1) * sizeof (av_opts)))) == NULL) {
408 if (opts_av != NULL)
409 free(opts_av);
410 opts_av = NULL;
413 opts_av = (av_opts *)temp;
416 (void) memset(&opts_av[i], 0, sizeof (av_opts));
419 opts_av[i].shortnm = *marker++; /* set short name */
423 opts_av[i].has_arg = B_TRUE;
428 opts_av[i].longnm = marker;
429 opts_av[i].longnm_len = strcspn(marker, ")");
430 optstring = marker + opts_av[i].longnm_len + 1;
433 opts_av[i].longnm = optstring;
434 opts_av[i].longnm_len = 1;
463 if (opts_av != NULL)
464 free(opts_av);
465 opts_av = NULL;
485 if (len == opts_av[i].longnm_len && strncmp(cur_option,
486 opts_av[i].longnm, opts_av[i].longnm_len) == 0) {
488 if (!opts_av[i].has_arg) {
490 return (opts_av[i].shortnm);
497 return (opts_av[i].shortnm);