Lines Matching refs:optarg
704 * Decompose the string pointed by optarg into argv[][] so that argv[][] can be
723 if (optarg[2] == '3')
726 if (optarg[2] == '6')
730 p0 = &optarg[5];
762 if ((p0 = (char *)strdup(&optarg[5])) == NULL)
833 * optarg - option string to be processed. This will either be a NULL
842 guidance_parse(Ofl_desc *ofl, char *optarg)
869 optarg += MSG_ARG_GUIDE_SIZE;
870 if (*optarg == '=') {
871 optarg++;
873 if ((name = libld_malloc(strlen(optarg) + 1)) == NULL)
875 (void) strcpy(name, optarg);
932 assdeflib_parse(Ofl_desc *ofl, char *optarg)
937 olen = strlen(optarg);
942 if (optarg[MSG_ARG_ASSDEFLIB_SIZE] != '=') {
945 MSG_ORIG(MSG_ARG_ASSDEFLIB), optarg);
949 if (strncmp(optarg + MSG_ARG_ASSDEFLIB_SIZE + 1,
951 strcmp(optarg + olen - MSG_STR_SOEXT_SIZE,
954 MSG_INTL(MSG_ARG_ASSDEFLIB_MALFORMED), optarg);
958 if (aplist_append(&ofl->ofl_assdeflib, optarg +
989 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
996 if (optarg[0] != '2')
999 MSG_ORIG(MSG_ARG_3), optarg);
1003 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1010 if (optarg[0] != '4')
1013 MSG_ORIG(MSG_ARG_6), optarg);
1039 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1045 ofl->ofl_config = optarg;
1054 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1055 if ((optarg[0] == 'n') && (optarg[1] == '\0')) {
1062 } else if ((optarg[0] == 'y') && (optarg[1] == '\0')) {
1072 MSG_ORIG(MSG_ARG_D), optarg);
1077 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1083 ofl->ofl_entry = (void *)optarg;
1087 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1096 add_string(ofl->ofl_filtees, optarg)) ==
1104 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1113 add_string(ofl->ofl_filtees, optarg)) ==
1120 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1126 ofl->ofl_soname = (const char *)optarg;
1135 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1141 ofl->ofl_interp = (const char *)optarg;
1145 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1161 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1167 ofl->ofl_name = (const char *)optarg;
1171 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1178 if (*optarg != '\0') {
1181 optarg)) == (const char *)S_ERROR)
1187 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1194 if (*optarg != '\0') {
1197 optarg)) == (const char *)S_ERROR)
1208 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1215 if (*optarg != '\0') {
1218 optarg)) == (const char *)S_ERROR)
1234 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1238 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1244 if (strncmp(optarg, MSG_ORIG(MSG_ARG_HELP),
1254 if ((strncmp(optarg, MSG_ORIG(MSG_ARG_LD32),
1256 (strncmp(optarg, MSG_ORIG(MSG_ARG_LD64),
1262 strcmp(optarg, MSG_ORIG(MSG_ARG_DEFS)) == 0) {
1270 } else if (strcmp(optarg,
1279 } else if (strcmp(optarg,
1288 } else if (strcmp(optarg,
1297 } else if (strcmp(optarg,
1310 } else if (strcmp(optarg,
1313 } else if (strcmp(optarg,
1316 } else if (strcmp(optarg,
1319 } else if (strcmp(optarg,
1322 } else if (strcmp(optarg,
1325 } else if (strcmp(optarg,
1328 } else if (strcmp(optarg,
1331 } else if (strcmp(optarg,
1334 } else if (strcmp(optarg,
1337 } else if (strcmp(optarg,
1340 } else if (strcmp(optarg,
1343 } else if (strcmp(optarg,
1347 } else if (strcmp(optarg,
1351 } else if (strcmp(optarg,
1354 } else if (strcmp(optarg,
1357 } else if (strcmp(optarg,
1360 } else if (strcmp(optarg,
1363 } else if (strcmp(optarg,
1366 } else if (strcmp(optarg,
1369 } else if (strcmp(optarg,
1372 } else if (strcmp(optarg,
1375 } else if (strcmp(optarg,
1378 } else if (strcmp(optarg,
1381 } else if (strcmp(optarg,
1384 } else if (strcmp(optarg,
1387 } else if (strcmp(optarg,
1390 } else if (strcmp(optarg,
1393 } else if (strcmp(optarg,
1396 } else if (strcmp(optarg,
1405 } else if (strcmp(optarg,
1417 } else if (strcmp(optarg,
1435 } else if (strncmp(optarg, MSG_ORIG(MSG_ARG_WRAP),
1438 optarg + MSG_ARG_WRAP_SIZE) == NULL)
1440 } else if ((strncmp(optarg, MSG_ORIG(MSG_ARG_GUIDE),
1442 ((optarg[MSG_ARG_GUIDE_SIZE] == '=') ||
1443 (optarg[MSG_ARG_GUIDE_SIZE] == '\0'))) {
1444 if (!guidance_parse(ofl, optarg))
1446 } else if (strcmp(optarg,
1456 } else if (strcmp(optarg,
1470 } else if (strncmp(optarg, MSG_ORIG(MSG_ARG_ASSDEFLIB),
1472 if (assdeflib_parse(ofl, optarg) != TRUE)
1480 strncmp(optarg, MSG_ORIG(MSG_ARG_INITARRAY),
1482 strncmp(optarg, MSG_ORIG(MSG_ARG_FINIARRAY),
1484 strncmp(optarg, MSG_ORIG(MSG_ARG_PREINITARRAY),
1486 strncmp(optarg, MSG_ORIG(MSG_ARG_RTLDINFO),
1488 strncmp(optarg, MSG_ORIG(MSG_ARG_DTRACE),
1490 strcmp(optarg, MSG_ORIG(MSG_ARG_ALLEXTRT)) &&
1491 strcmp(optarg, MSG_ORIG(MSG_ARG_DFLEXTRT)) &&
1492 strcmp(optarg, MSG_ORIG(MSG_ARG_DIRECT)) &&
1493 strcmp(optarg, MSG_ORIG(MSG_ARG_NODIRECT)) &&
1494 strcmp(optarg, MSG_ORIG(MSG_ARG_GROUPPERM)) &&
1495 strcmp(optarg, MSG_ORIG(MSG_ARG_LAZYLOAD)) &&
1496 strcmp(optarg, MSG_ORIG(MSG_ARG_NOGROUPPERM)) &&
1497 strcmp(optarg, MSG_ORIG(MSG_ARG_NOLAZYLOAD)) &&
1498 strcmp(optarg, MSG_ORIG(MSG_ARG_NODEFERRED)) &&
1499 strcmp(optarg, MSG_ORIG(MSG_ARG_RECORD)) &&
1500 strcmp(optarg, MSG_ORIG(MSG_ARG_ALTEXEC64)) &&
1501 strcmp(optarg, MSG_ORIG(MSG_ARG_WEAKEXT)) &&
1502 strncmp(optarg, MSG_ORIG(MSG_ARG_TARGET),
1504 strcmp(optarg, MSG_ORIG(MSG_ARG_RESCAN_NOW)) &&
1505 strcmp(optarg, MSG_ORIG(MSG_ARG_DEFERRED))) {
1508 MSG_ORIG(MSG_ARG_Z), optarg);
1525 if (dbg_setup(ofl, optarg, 2) == 0)
1538 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1542 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1543 if (strcmp(optarg, MSG_ORIG(MSG_ARG_DIRECT)) == 0) {
1553 } else if (strcmp(optarg,
1564 } else if (strcmp(optarg,
1567 else if (strcmp(optarg, MSG_ORIG(MSG_ARG_REDUCE)) == 0)
1569 else if (strcmp(optarg, MSG_ORIG(MSG_STR_LOCAL)) == 0)
1571 else if (strcmp(optarg, MSG_ORIG(MSG_ARG_GROUP)) == 0)
1573 else if (strcmp(optarg,
1576 else if (strcmp(optarg,
1581 } else if (strcmp(optarg,
1583 strcmp(optarg, MSG_ORIG(MSG_ARG_STATIC))) {
1586 MSG_ORIG(MSG_ARG_CB), optarg);
1596 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1600 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1601 if (aplist_append(&(ofl->ofl_maps), optarg,
1607 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1611 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1612 if ((optarg[0] == 'n') && (optarg[1] == '\0')) {
1619 } else if ((optarg[0] == 'y') && (optarg[1] == '\0')) {
1629 MSG_ORIG(MSG_ARG_CQ), optarg);
1634 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1635 if (aplist_append(&lib_support, optarg,
1649 DBG_CALL(Dbg_args_option(ofl->ofl_lml, ndx, c, optarg));
1650 if (strncmp(optarg, MSG_ORIG(MSG_ARG_LCOM), 2) == 0) {
1656 Llibdir = optarg + 2;
1657 } else if (strncmp(optarg,
1664 Ulibdir = optarg + 2;
1665 } else if (strncmp(optarg,
1672 Plibpath = optarg + 2;
1676 MSG_ORIG(MSG_ARG_CY), optarg);
1725 optarg));
1726 if (ld_find_library(optarg, ofl) == S_ERROR)
1731 optarg));
1732 if (strcmp(optarg,
1742 } else if (strcmp(optarg,
1748 optarg));
1749 if (ld_add_libdir(ofl, optarg) == S_ERROR)
1754 optarg));
1769 ifl->ifl_soname = optarg;
1776 optarg));
1777 (void) dbg_setup(ofl, optarg, 3);
1781 optarg));
1782 if (ld_sym_add_u(optarg, ofl,
1788 optarg));
1789 if ((strncmp(optarg, MSG_ORIG(MSG_ARG_LD32),
1791 (strncmp(optarg, MSG_ORIG(MSG_ARG_LD64),
1795 } else if (strcmp(optarg,
1799 } else if (strcmp(optarg,
1803 } else if (strcmp(optarg,
1808 } else if (strcmp(optarg,
1812 } else if (strcmp(optarg,
1816 } else if (strcmp(optarg,
1819 } else if (strcmp(optarg,
1822 } else if (strcmp(optarg,
1826 } else if (strcmp(optarg,
1830 } else if (strcmp(optarg,
1833 } else if (strcmp(optarg,
1836 } else if (strncmp(optarg,
1839 if (((sdp = ld_sym_add_u(optarg +
1846 } else if (strncmp(optarg,
1849 if (((sdp = ld_sym_add_u(optarg +
1856 } else if (strncmp(optarg,
1859 if (((sdp = ld_sym_add_u(optarg +
1866 } else if (strncmp(optarg,
1869 if (((sdp = ld_sym_add_u(optarg +
1876 } else if (strncmp(optarg,
1879 if ((sdp = ld_sym_add_u(optarg +
1885 } else if (strcmp(optarg,
1890 } else if (strcmp(optarg,
1894 } else if (strcmp(optarg,
1899 } else if (strcmp(optarg,
1902 } else if (strcmp(optarg,