Home | History | Annotate | Download | only in libiberty

Lines Matching refs:progname

24 @deftypefn Extension {const char*} make_relative_prefix (const char *@var{progname}, @
27 Given three paths @var{progname}, @var{bin_prefix}, @var{prefix},
29 @var{progname}'s directory as @var{prefix} is relative to
31 portion of @var{progname}, followed by a relative pathname of the
34 If @var{progname} does not contain any directory separators,
36 named @var{progname}. Also, if @var{progname} is a symbolic link,
40 @var{prefix} is @code{/alpha/beta/gamma/omega/}, and @var{progname} is
217 /* Given three strings PROGNAME, BIN_PREFIX, PREFIX, return a string that gets
218 to PREFIX starting with the directory portion of PROGNAME and a relative
222 /alpha/beta/gamma/omega/, and PROGNAME is /red/green/blue/gcc, then this
228 make_relative_prefix_1 (const char *progname, const char *bin_prefix,
237 if (progname == NULL || bin_prefix == NULL || prefix == NULL)
242 if (lbasename (progname) == progname)
255 len = prefixlen + strlen (progname) + 1;
283 strcat (nstore, progname);
295 progname = nstore;
311 full_progname = lrealpath (progname);
313 full_progname = strdup (progname);
409 make_relative_prefix (const char *progname, const char *bin_prefix,
412 return make_relative_prefix_1 (progname, bin_prefix, prefix, 1);
421 make_relative_prefix_ignore_links (const char *progname,
425 return make_relative_prefix_1 (progname, bin_prefix, prefix, 0);