From 49ba7383ac0fa8c5450c0e345914ac03b38d07c4 Mon Sep 17 00:00:00 2001 From: open-license-manager <rillf@maildrop.cc> Date: 周三, 17 9月 2014 06:03:08 +0800 Subject: [PATCH] splitted os-linux.c --- src/library/os/linux/os-linux.cpp | 20 -------------------- 1 files changed, 0 insertions(+), 20 deletions(-) diff --git a/src/library/os/linux/os-linux.cpp b/src/library/os/linux/os-linux.cpp index 1f65304..fffd816 100644 --- a/src/library/os/linux/os-linux.cpp +++ b/src/library/os/linux/os-linux.cpp @@ -34,26 +34,6 @@ using namespace std; -string OsFunctions::getModuleName() { - char path[2048] = { 0 }; - string strPath; - string result; - pid_t pid = getpid(); - const string pidstr = to_string(((long) pid)); - strPath = string("/proc/") + pidstr + "/exe"; - const char * proc_path = strPath.c_str(); - int ch = readlink(proc_path, path, 2048); - if (ch != -1) { - path[ch] = '\0'; - result = string(path); - } else { - throw runtime_error( - string("Can't find: ") + strPath + " proc filesystem mounted?"); - } - return result; -} - - bool OsFunctions::verifySignature(const char* stringToVerify, const char* signatureB64) { -- Gitblit v1.9.1