summaryrefslogtreecommitdiffhomepage
path: root/file.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2024-05-31 17:04:21 +0200
committerRoland Reichwein <mail@reichwein.it>2024-05-31 17:04:21 +0200
commit9b6c531505ff74f119bff6facae35c10801b2c6c (patch)
treee8efa038553588a7f4bde3f3ebe2cc3c996baf73 /file.h
parent92be2196d6515f854295b0b830ad7dd4b97bb956 (diff)
Link dynamic lib, test
Diffstat (limited to 'file.h')
-rw-r--r--file.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/file.h b/file.h
index fbab148..972b580 100644
--- a/file.h
+++ b/file.h
@@ -19,6 +19,10 @@ std::string dynamic_lib_name(const std::filesystem::path& p);
// removes initial "./"
std::filesystem::path simplified_path(const std::filesystem::path& p);
+// path of lib, i.e. parent
+// e.g. libs/libabc.so.1.0.0 -> libs
+// e.g. libabc.so -> .
+std::filesystem::path lib_path(const std::filesystem::path& p);
std::string env_value(const std::string& key);
bool is_executable_command(const std::string& file);