Searched refs:argv0 (Results 1 – 3 of 3) sorted by relevance
25 const char *perf_extract_argv0_path(const char *argv0) in perf_extract_argv0_path() argument29 if (!argv0 || !*argv0) in perf_extract_argv0_path()31 slash = argv0 + strlen(argv0); in perf_extract_argv0_path()33 while (argv0 <= slash && !is_dir_sep(*slash)) in perf_extract_argv0_path()36 if (slash >= argv0) { in perf_extract_argv0_path()37 argv0_path = strndup(argv0, slash - argv0); in perf_extract_argv0_path()41 return argv0; in perf_extract_argv0_path()
374 char *argv0 = strdup(argv[0]); in handle_internal_command() local375 argv[0] = cmd = argv0; in handle_internal_command()376 argv0[i] = '\0'; in handle_internal_command()
55 static const char argv0[] = "ffs-test"; variable79 fprintf(stderr, "%s: %s ", argv0, levels[level]); in _msg()