Lines Matching refs:argstate
155 * argstate - Address of ARGSTATE block to be initialized
158 * On success, *argstate is initialized. On error,
163 ARGSTATE *argstate)
168 bzero(argstate, sizeof (*argstate));
169 argstate->obj_state = obj_state;
174 argstate->optmask |= getopt_ret->gor_idmask;
181 argstate->argc = argc;
182 argstate->argv = argv;
235 * argstate - Argument state block
239 ARGSTATE *argstate)
275 ehdr = argstate->obj_state->os_ehdr;
290 argstate->obj_state->os_secarr[0].sec_shdr);
513 num = argstate->obj_state->
535 num = argstate->obj_state->
552 num = argstate->obj_state->
671 ARGSTATE argstate;
678 process_args(obj_state, argc, argv, &argstate);
684 if (argstate.argc > 0)
694 if (argstate.argc > 0) {
695 if (argstate.argc > 2)
698 elfedit_atoconst_range(argstate.argv[0],
701 argstate.argc--;
702 argstate.argv++;
720 if (argstate.argc > 1)
726 if (argstate.argc == 0) {
727 print_ehdr(cmd, e_ident_ndx, 0, &argstate);
747 elfedit_atoui_range(argstate.argv[0],
768 Half type = (Half) elfedit_atoconst(argstate.argv[0],
793 Half mach = (Half) elfedit_atoconst(argstate.argv[0],
818 Word ver = (Word) elfedit_atoconst(argstate.argv[0],
843 elfedit_atoui(argstate.argv[0], NULL);
863 Off off = (Off) elfedit_atoui(argstate.argv[0],
884 Off off = (Off) elfedit_atoui(argstate.argv[0],
910 for (i = 0; i < argstate.argc; i++)
912 elfedit_atoconst(argstate.argv[i],
916 if (argstate.optmask & EHDR_OPT_F_CMP)
920 if (argstate.optmask & EHDR_OPT_F_AND)
922 else if (argstate.optmask & EHDR_OPT_F_OR)
947 Half ehsize = (Half) elfedit_atoui(argstate.argv[0],
971 Half phentsize = (Half) elfedit_atoui(argstate.argv[0],
993 Word phnum = (Word) elfedit_atoui(argstate.argv[0],
1043 Half shentsize = (Half) elfedit_atoui(argstate.argv[0],
1065 Word shnum = (Word) elfedit_atoui(argstate.argv[0],
1123 if (argstate.optmask & EHDR_OPT_F_SHNDX)
1124 shstrndx = elfedit_atoshndx(argstate.argv[0],
1126 else if (argstate.optmask & EHDR_OPT_F_SHTYP)
1128 elfedit_atoconst(argstate.argv[0],
1132 argstate.argv[0]);
1192 int mag = (int)elfedit_atoui_range(argstate.argv[0],
1218 argstate.argv[0], MSG_ORIG(MSG_STR_VALUE), 0, 255,
1242 int data = (int)elfedit_atoconst_range(argstate.argv[0],
1267 int ver = (int)elfedit_atoconst_range(argstate.argv[0],
1292 argstate.argv[0], MSG_ORIG(MSG_STR_VALUE), 0, 255,
1317 argstate.argv[0], MSG_ORIG(MSG_STR_VALUE), 0, 255,
1349 print_ehdr(cmd, e_ident_ndx, 1, &argstate);