Lines Matching defs:info
422 * Initialize a path info buffer for use with ld_place_section().
427 * info - Address of buffer to be initialized.
432 * match list (ec_files), then the block pointed at by info is
433 * initialized, and info is returned.
441 ld_place_path_info_init(Ofl_desc *ofl, Ifl_desc *ifl, Place_path_info *info)
451 info->ppi_path = ifl->ifl_name;
452 info->ppi_path_len = strlen(info->ppi_path);
453 info->ppi_isar = (ifl->ifl_flags & FLG_IF_EXTRACT) != 0;
459 info->ppi_bname = strrchr(info->ppi_path, '/');
460 if (info->ppi_bname == NULL)
461 info->ppi_bname = info->ppi_path;
463 info->ppi_bname++; /* Skip leading '/' */
464 info->ppi_bname_len =
465 info->ppi_path_len - (info->ppi_bname - info->ppi_path);
472 if (info->ppi_isar) {
473 info->ppi_oname = strrchr(info->ppi_bname, '(');
475 assert((info->ppi_bname[info->ppi_bname_len - 1] == ')') &&
476 (info->ppi_oname != NULL));
477 info->ppi_oname++; /* skip leading '(' */
478 info->ppi_oname_len = info->ppi_bname_len -
479 (info->ppi_oname - info->ppi_bname + 1);
481 info->ppi_oname = info->ppi_bname;
482 info->ppi_oname_len = info->ppi_bname_len;
485 return (info);