Searched refs:env_path (Results 1 – 3 of 3) sorted by relevance
17 const char *env_path; in detect_bpftool_path() local20 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()
86 static int parse_path(char *env_path, const char ***const path_list) in parse_path() argument90 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()
227 const char *env_path = getenv("PATH"); in load_command_list() local237 if (env_path) { in load_command_list()239 path = paths = strdup(env_path); in load_command_list()