| 1493 | |
| 1494 | #ifndef _WIN32 |
| 1495 | static bool is_executable_file(const char *path) { |
| 1496 | struct stat st; |
| 1497 | return path && stat(path, &st) == 0 && S_ISREG(st.st_mode) && access(path, X_OK) == 0; |
| 1498 | } |
| 1499 | |
| 1500 | static bool resolve_from_path(const char *name, char *out, size_t outsz) { |
| 1501 | const char *path = getenv("PATH"); |
no test coverage detected