Lines Matching defs:optarg
695 * by optarg, and advance the pointer to the next item.
698 * optarg - Address of pointer to argument or option array
703 * the next item in the optarg array. *optarg has been advanced
707 elfedit_next_optarg(elfedit_cmd_optarg_t **optarg, elfedit_optarg_item_t *item)
740 oa = (*optarg)++;
757 (*optarg)++;
836 * Used by usage_optarg() to insert an optarg item string into the output
870 * optarg - Options list
877 elfedit_cmd_optarg_t *optarg, int isopt, const char *wrap_str)
907 elfedit_cmd_optarg_t *tmp_optarg = optarg;
947 while (optarg->oa_name != NULL) {
948 elfedit_next_optarg(&optarg, &item);
998 elfedit_cmd_optarg_t *tmp_optarg = optarg;
1074 elfedit_cmd_optarg_t *optarg;
1089 if ((optarg = cmd->cmd_opt) != NULL)
1090 while (optarg->oa_name != NULL) {
1091 elfedit_next_optarg(&optarg, &item);
1094 if ((optarg = cmd->cmd_args) != NULL)
1095 while (optarg->oa_name != NULL) {
1096 elfedit_next_optarg(&optarg, &item);
1555 validate_optarg(elfedit_cmd_optarg_t *optarg, int isopt, MODLIST_T *moddef,
1564 for (; optarg->oa_name != NULL; optarg++) {
1572 if (optarg->oa_flags & ELFEDIT_CMDOA_F_INHERIT) {
1573 if ((((uintptr_t)optarg->oa_name) >
1575 (optarg->oa_help != 0) ||
1576 (optarg->oa_flags != ELFEDIT_CMDOA_F_INHERIT))
1592 if (optarg->oa_name[0] != '-') {
1596 if (optarg->oa_name[1] == '\0') {
1606 if (optarg->oa_idmask == 0) {
1607 if (optarg->oa_excmask != 0) {
1612 if (elfedit_bits_set(optarg->oa_idmask,
1613 sizeof (optarg->oa_idmask)) != 1) {
1619 if ((optarg->oa_idmask & optmask) != 0) {
1625 optmask |= optarg->oa_idmask;
1632 if (optarg->oa_name[0] == '-') {
1636 if (optarg->oa_name[1] == '\0') {
1643 if ((optarg->oa_idmask != 0) ||
1644 (optarg->oa_excmask != 0)) {
1662 if (optarg->oa_flags & ELFEDIT_CMDOA_F_VALUE) {
1663 elfedit_cmd_optarg_t *oa1 = optarg + 1;
1670 if ((optarg + 1)->oa_name == NULL) {
1684 optarg++;
1693 dl_path, mod_name, cmd_name, optarg->oa_name);
3136 elfedit_cmd_optarg_t *optarg;
3247 if ((optarg = cmd->cmd_opt) == NULL)
3249 while (optarg->oa_name != NULL) {
3251 (optarg->oa_flags & ELFEDIT_CMDOA_F_INHERIT) &&
3252 (optarg->oa_name == ELFEDIT_STDOA_OPT_O);
3254 elfedit_next_optarg(&optarg, &item);
3336 if ((optarg = cmd->cmd_opt) != NULL) {
3337 while (optarg->oa_name != NULL) {
3338 elfedit_next_optarg(&optarg, &item);
3469 batch_list[num_batch++] = optarg;
3473 modpath = optarg;
3477 if (elfedit_atooutstyle(optarg, &state.outstyle) == 0)