MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / isLoadableModule

Method isLoadableModule

src/common/os/posix/mod_loader.cpp:73–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73bool ModuleLoader::isLoadableModule(const Firebird::PathName& module)
74{
75 struct STAT sb;
76
77 if (-1 == os_utils::stat(module.c_str(), &sb))
78 return false;
79
80 if ( ! (sb.st_mode & S_IFREG) ) // Make sure it is a plain file
81 return false;
82
83 if ( -1 == access(module.c_str(), R_OK | X_OK))
84 return false;
85
86 return true;
87}
88
89bool ModuleLoader::doctorModuleExtension(Firebird::PathName& name, int& step)
90{

Callers

nothing calls this directly

Calls 2

statClass · 0.70
c_strMethod · 0.45

Tested by

no test coverage detected