#include "Util/ExtAPI.h"
#include "Util/SVFUtil.h"
#include "Util/Options.h"
#include "Util/config.h"
#include <ostream>
#include <sys/stat.h>
#include "SVFIR/SVFVariables.h"
#include <dlfcn.h>
Go to the source code of this file.
◆ getCurrentSOPath()
Definition at line 143 of file ExtAPI.cpp.
144{
147 {
148 return std::string(
info.dli_fname);
149 }
150 return "";
151}
std::string getCurrentSOPath()
llvm::IRBuilder IRBuilder
◆ getFilePath()
Definition at line 102 of file ExtAPI.cpp.
103{
105
106 if (
path ==
"SVF_DIR")
107 {
110 return "";
111
113
116
118 }
119 else if (
path ==
"npm root")
120 {
121
122
124 "command -v npm >/dev/null 2>&1 && npm root"
125 );
126
128 return "";
129
132
134 }
135
137}
static std::string GetStdoutFromCommand(const std::string &command)
char * getenv(const char *name)
◆ GetStdoutFromCommand()
Definition at line 76 of file ExtAPI.cpp.
77{
80
83 return "";
84
86 {
88 }
89
92 return "";
93
94
97
99}
char * fgets(char *str, int n, void *stream)