MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / is_executable_file

Function is_executable_file

src/ui/http_server.c:878–881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

876
877#ifndef _WIN32
878static 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
883static bool resolve_from_path(const char *name, char *out, size_t outsz) {
884 const char *path = getenv("PATH");

Callers 2

resolve_from_pathFunction · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected