| 876 | |
| 877 | #ifndef _WIN32 |
| 878 | static bool is_executable_file(const char *path) { |
| 879 | struct stat st; |
| 880 | return path && stat(path, &st) == 0 && S_ISREG(st.st_mode) && access(path, X_OK) == 0; |
| 881 | } |
| 882 | |
| 883 | static bool resolve_from_path(const char *name, char *out, size_t outsz) { |
| 884 | const char *path = getenv("PATH"); |
no test coverage detected