Home
last modified time | relevance | path

Searched refs:env_path (Results 1 – 3 of 3) sorted by relevance

/linux/tools/testing/selftests/bpf/
H A Dbpftool_helpers.c17 const char *env_path; in detect_bpftool_path() local
20 env_path = getenv("BPFTOOL"); in detect_bpftool_path()
21 if (env_path && access(env_path, X_OK) == 0) { in detect_bpftool_path()
22 strscpy(buffer, env_path, size); in detect_bpftool_path()
24 } else if (env_path) { in detect_bpftool_path()
25 fprintf(stderr, "bpftool '%s' doesn't exist or is not executable\n", env_path); in detect_bpftool_path()
/linux/samples/landlock/
H A Dsandboxer.c86 static int parse_path(char *env_path, const char ***const path_list) in parse_path() argument
90 if (env_path) { in parse_path()
92 for (i = 0; env_path[i]; i++) { in parse_path()
93 if (env_path[i] == ENV_DELIMITER[0]) in parse_path()
102 (*path_list)[i] = strsep(&env_path, ENV_DELIMITER); in parse_path()
/linux/tools/lib/subcmd/
H A Dhelp.c227 const char *env_path = getenv("PATH"); in load_command_list() local
237 if (env_path) { in load_command_list()
239 path = paths = strdup(env_path); in load_command_list()