|
| typedef void * | libhandle_t |
| | library handle
|
| |
| typedef void * | symhandle_t |
| | symbol handle within a library
|
| |
| virtual | ~DynamicLinker () noexcept=default |
| |
| void | closeLibrary (libhandle_t handle) noexcept |
| | Security checks are implicit by previous call of openLibraryLocal(const std::string_view&, boolean) or openLibraryGlobal(const std::string_view&, boolean) retrieving the librarHandle.
|
| |
| std::string | getLastError () noexcept |
| | Returns a string containing the last error.
|
| |
| const char * | lookupLibraryPathname (libhandle_t handle, const std::string &symbolName) noexcept |
| |
| symhandle_t | lookupSymbol (libhandle_t handle, const std::string &symbolName) noexcept |
| |
| symhandle_t | lookupSymbolGlobal (const std::string &symbolName) noexcept |
| |
| libhandle_t | openLibraryGlobal (const std::string &pathname) noexcept |
| | Opens the named library, allowing system wide access for other users.
|
| |
| libhandle_t | openLibraryLocal (const std::string &pathname) noexcept |
| | Opens the named library, restricting access to this process.
|
| |
| static std::vector< std::string > | enumerateLibraryPaths (const std::string &libName, bool searchSystemPath=false, bool searchSystemPathFirst=false) noexcept |
| | Returns list of potential absolute library filenames.
|
| |
| static DynamicLinker & | get () noexcept |
| | Returns static singleton instance of DynamicLinker.
|
| |
| static std::string | getBaseName (const std::string &filename, const bool isBasename=false, const bool caseInsensitive=jau::os::is_windows()) noexcept |
| | Returns the library basename, i.e.
|
| |
| static constexpr_cxx20 std::string | getCanonicalName (const std::string &basename, const bool checkIsCanonical=true) noexcept |
| | Returns canonical library name for this system from given library-basename, e.g.
|
| |
| static constexpr_cxx20 std::string | getDefaultPrefix () noexcept |
| | Returns the native library prefix, e.g.
|
| |
| static constexpr_cxx20 std::string | getDefaultSuffix () noexcept |
| | Returns the native library suffix including the dot, e.g.
|
| |
| static constexpr_cxx20 std::string | getEnvLibPathVarName () noexcept |
| | Returns the environment library path variable name, e.g.
|
| |
| static std::vector< std::string > | getSystemEnvLibraryPaths () |
| | Returns a list of system paths, from the getSystemEnvLibraryPathVarname() variable.
|
| |
| static bool | isCanonicalName (const std::string &filename, const bool isBasename=false, const bool caseInsensitive=jau::os::is_windows()) noexcept |
| | Returns true if the given filename contains the canonical prefix and suffix, otherwise returns false.
|
| |
| static constexpr const bool | DEBUG_LOOKUP = false |
| |
Definition at line 49 of file unix_dyn_linker.cpp.