Home
last modified time | relevance | path

Searched refs:new_path (Results 1 – 4 of 4) sorted by relevance

/tools/lib/subcmd/
Dexec-cmd.c142 char *new_path = NULL; in setup_path() local
145 add_path(&new_path, tmp); in setup_path()
146 add_path(&new_path, argv0_path); in setup_path()
150 astrcat(&new_path, old_path); in setup_path()
152 astrcat(&new_path, "/usr/local/bin:/usr/bin:/bin"); in setup_path()
154 setenv("PATH", new_path, 1); in setup_path()
156 free(new_path); in setup_path()
/tools/perf/
Dbuiltin-help.c324 char *new_path; in setup_man_path() local
331 if (asprintf(&new_path, "%s:%s", system_path(PERF_MAN_PATH), old_path ?: "") > 0) { in setup_man_path()
332 setenv("MANPATH", new_path, 1); in setup_man_path()
333 free(new_path); in setup_man_path()
/tools/perf/util/
Dprobe-finder.h62 char **new_path);
Dprobe-finder.c1831 char **new_path) in get_real_path() argument
1841 *new_path = strdup(raw_path); in get_real_path()
1842 return *new_path ? 0 : -ENOMEM; in get_real_path()
1848 *new_path = malloc((strlen(prefix) + strlen(raw_path) + 2)); in get_real_path()
1849 if (!*new_path) in get_real_path()
1853 sprintf(*new_path, "%s/%s", prefix, raw_path); in get_real_path()
1855 if (access(*new_path, R_OK) == 0) in get_real_path()
1860 zfree(new_path); in get_real_path()
1871 zfree(new_path); in get_real_path()
1877 zfree(new_path); in get_real_path()