Home
last modified time | relevance | path

Searched refs:argv0 (Results 1 – 2 of 2) sorted by relevance

/tools/lib/subcmd/
Dexec-cmd.c84 const char *extract_argv0_path(const char *argv0) in extract_argv0_path() argument
88 if (!argv0 || !*argv0) in extract_argv0_path()
90 slash = argv0 + strlen(argv0); in extract_argv0_path()
92 while (argv0 <= slash && !is_dir_sep(*slash)) in extract_argv0_path()
95 if (slash >= argv0) { in extract_argv0_path()
96 argv0_path = strndup(argv0, slash - argv0); in extract_argv0_path()
100 return argv0; in extract_argv0_path()
/tools/usb/
Dffs-test.c55 static const char argv0[] = "ffs-test"; variable
79 fprintf(stderr, "%s: %s ", argv0, levels[level]); in _msg()