AMF-Placer
2.0
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
sysInfo.cc
Go to the documentation of this file.
1
25
#include "
sysInfo.h
"
26
#include <assert.h>
27
std::string
getExePath
()
28
{
29
char
result[PATH_MAX];
30
// ssize_t count =
31
assert(readlink(
"/proc/self/exe"
, result, PATH_MAX) > 0);
32
const
char
*path;
33
path = dirname(result);
34
return
std::string(path);
35
}
sysInfo.h
getExePath
std::string getExePath()
Definition:
sysInfo.cc:27
src
lib
utils
sysInfo.cc
Generated by
1.8.18