Home
last modified time | relevance | path

Searched refs:argv0 (Results 1 – 25 of 209) sorted by relevance

123456789

/external/llvm/tools/llvm-link/
Dllvm-link.cpp111 static std::unique_ptr<Module> loadFile(const char *argv0, in loadFile() argument
120 Err.print(argv0, errs()); in loadFile()
141 std::function<std::unique_ptr<Module>(const char *argv0,
148 const char *argv0, const std::string &FileName)> in ModuleLazyLoaderCache()
153 Module &operator()(const char *argv0, const std::string &FileName);
165 Module &ModuleLazyLoaderCache::operator()(const char *argv0, in operator ()() argument
169 Module = createLazyModule(argv0, Identifier); in operator ()()
200 static bool importFunctions(const char *argv0, LLVMContext &Context, in importFunctions() argument
215 auto ModuleLoader = [&Context](const char *argv0, in importFunctions()
217 return loadFile(argv0, Identifier, Context, false); in importFunctions()
[all …]
/external/llvm/lib/TableGen/
DMain.cpp52 static int createDependencyFile(const TGParser &Parser, const char *argv0) { in createDependencyFile() argument
54 errs() << argv0 << ": the option -d must be used together with -o\n"; in createDependencyFile()
60 errs() << argv0 << ": error opening " << DependFilename << ":" in createDependencyFile()
73 int llvm::TableGenMain(char *argv0, TableGenMainFn *MainFn) { in TableGenMain() argument
100 errs() << argv0 << ": error opening " << OutputFilename << ":" in TableGenMain()
105 if (int Ret = createDependencyFile(Parser, argv0)) in TableGenMain()
113 errs() << argv0 << ": " << ErrorsPrinted << " errors.\n"; in TableGenMain()
/external/swiftshader/third_party/LLVM/lib/TableGen/
DMain.cpp50 int TableGenMain(char *argv0, TableGenAction &Action) { in TableGenMain() argument
78 errs() << argv0 << ": error opening " << OutputFilename in TableGenMain()
84 errs() << argv0 << ": the option -d must be used together with -o\n"; in TableGenMain()
89 errs() << argv0 << ": error opening " << DependFilename in TableGenMain()
118 errs() << argv0 << ": Unknown unexpected exception occurred.\n"; in TableGenMain()
/external/python/cpython2/Python/
Dsysmodule.c1633 char *argv0 = argv[0]; in PySys_SetArgvEx() local
1641 if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) in PySys_SetArgvEx()
1642 nr = readlink(argv0, link, MAXPATHLEN); in PySys_SetArgvEx()
1647 argv0 = link; /* Link to absolute path */ in PySys_SetArgvEx()
1652 char *q = strrchr(argv0, SEP); in PySys_SetArgvEx()
1654 argv0 = link; /* argv0 without path */ in PySys_SetArgvEx()
1657 strcpy(argv0copy, argv0); in PySys_SetArgvEx()
1660 argv0 = argv0copy; in PySys_SetArgvEx()
1666 if (argc > 0 && argv0 != NULL && strcmp(argv0, "-c") != 0) { in PySys_SetArgvEx()
1673 if (GetFullPathName(argv0, in PySys_SetArgvEx()
[all …]
/external/llvm/lib/Fuzzer/test/
DInitializeTest.cpp12 static char *argv0; variable
16 argv0 = **argv; in LLVMFuzzerInitialize()
21 if (strncmp(reinterpret_cast<const char*>(Data), argv0, Size)) { in LLVMFuzzerTestOneInput()
/external/clang/
Dcompiler_wrapper14 argv0 = real_compiler variable
26 argv0 = gomacc variable
31 os.execv(argv0, execargs)
/external/ltp/testcases/kernel/syscalls/setsid/
Dsetsid01.c53 static char *argv0; variable
72 argv0 = av[0]; in main()
102 if (self_exec(argv0, "n", 1) < 0) { in main()
169 if (self_exec(argv0, "n", 2) < 0) { in do_child_1()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_procmaps_test.cc21 extern const char *argv0;
36 const char *last_slash = strrchr(argv0, '/'); in TEST()
37 const char *binary_name = last_slash ? last_slash + 1 : argv0; in TEST()
Dsanitizer_test_main.cc16 const char *argv0; variable
19 argv0 = argv[0]; in main()
Dsanitizer_nolibc_test.cc21 extern const char *argv0;
25 std::string NolibcTestPath = argv0; in TEST()
/external/libdaemon/libdaemon/
Ddlog.c86 char *daemon_ident_from_argv0(char *argv0) { in daemon_ident_from_argv0() argument
89 if ((p = strrchr(argv0, '/'))) in daemon_ident_from_argv0()
92 return argv0; in daemon_ident_from_argv0()
/external/python/cpython3/Python/
Dsysmodule.c2158 (argc > 0 && argv0 != NULL && \
2159 wcscmp(argv0, L"-c") != 0 && wcscmp(argv0, L"-m") != 0)
2164 wchar_t *argv0; in sys_update_path() local
2184 argv0 = argv[0]; in sys_update_path()
2188 nr = _Py_wreadlink(argv0, link, MAXPATHLEN); in sys_update_path()
2193 argv0 = link; /* Link to absolute path */ in sys_update_path()
2198 wchar_t *q = wcsrchr(argv0, SEP); in sys_update_path()
2200 argv0 = link; /* argv0 without path */ in sys_update_path()
2203 wcsncpy(argv0copy, argv0, MAXPATHLEN); in sys_update_path()
2207 argv0 = argv0copy; in sys_update_path()
[all …]
/external/ltp/testcases/kernel/syscalls/kill/
Dkill02.c207 static char *argv0; variable
219 argv0 = av[0]; in main()
239 if (self_exec(argv0, "nd", 4, pipe2_fd[1]) < 0) { in main()
269 (argv0, "ndddddd", 3, pipe1_fd[1], pipe2_fd[1], in main()
462 if (self_exec(argv0, "nd", 2, pipeB_fd[1]) < 0) { in child1_rout()
489 if (self_exec(argv0, "nd", 1, pipeA_fd[1]) < 0) { in child1_rout()
/external/gflags/src/
Dgflags_reporting.cc263 static void ShowUsageWithFlagsMatching(const char *argv0, in ShowUsageWithFlagsMatching() argument
265 fprintf(stdout, "%s: %s\n", Basename(argv0), ProgramUsage()); in ShowUsageWithFlagsMatching()
299 void ShowUsageWithFlagsRestrict(const char *argv0, const char *restrict) { in ShowUsageWithFlagsRestrict() argument
304 ShowUsageWithFlagsMatching(argv0, substrings); in ShowUsageWithFlagsRestrict()
307 void ShowUsageWithFlags(const char *argv0) { in ShowUsageWithFlags() argument
308 ShowUsageWithFlagsRestrict(argv0, ""); in ShowUsageWithFlags()
/external/valgrind/cachegrind/
Dcg_merge.c114 static const char* argv0 = "cg_merge"; variable
128 fprintf(stderr, "%s: near %s line %u\n", argv0, s->filename, s->lno-1); in printSrcLoc()
134 fprintf(stderr, "%s: out of memory in %s\n", argv0, who ); in mallocFail()
142 fprintf(stderr, "%s: parse error: %s\n", argv0, msg ); in parseError()
150 fprintf(stderr, "%s: %s\n", argv0, msg ); in barf()
183 perror(argv0); in readline()
853 argv0); in usage()
855 argv0, argv0); in usage()
870 argv0 = argv[0]; in main()
903 fprintf(stderr, "%s: parsing %s\n", argv0, argv[i]); in main()
[all …]
/external/python/cpython2/Modules/
Dmain.c208 PyObject *argv0 = NULL, *importer = NULL; in RunMainFromImporter() local
210 if ((argv0 = PyString_FromString(filename)) && in RunMainFromImporter()
211 (importer = PyImport_GetImporter(argv0)) && in RunMainFromImporter()
218 !PyList_SetItem(sys_path, 0, argv0)) in RunMainFromImporter()
220 Py_INCREF(argv0); in RunMainFromImporter()
226 Py_XDECREF(argv0); in RunMainFromImporter()
/external/ltp/lib/
Dself_exec.c164 int self_exec(const char *argv0, const char *fmt, ...) in self_exec() argument
222 return execlp(argv0, argv0, "-C", arg, (char *)NULL); in self_exec()
/external/google-breakpad/src/tools/linux/core2md/
Dcore2md.cc41 static int ShowUsage(const char* argv0) { in ShowUsage() argument
42 fprintf(stderr, "Usage: %s <core file> <procfs dir> <output>\n", argv0); in ShowUsage()
/external/iproute2/bridge/
Dbridge.c64 static int do_cmd(const char *argv0, int argc, char **argv) in do_cmd() argument
69 if (matches(argv0, c->cmd) == 0) in do_cmd()
74 "Object \"%s\" is unknown, try \"bridge help\".\n", argv0); in do_cmd()
/external/ltp/testcases/kernel/syscalls/sendfile/
Dsendfile05.c78 static char *argv0; variable
203 if (self_exec(argv0, "") < 0) { in create_server()
231 argv0 = av[0]; in main()
Dsendfile06.c63 static char *argv0; variable
183 if (self_exec(argv0, "") < 0) { in create_server()
214 argv0 = av[0]; in main()
Dsendfile02.c95 static char *argv0; variable
241 if (self_exec(argv0, "") < 0) { in create_server()
270 argv0 = av[0]; in main()
/external/compiler-rt/lib/tsan/tests/rtl/
Dtsan_test.cc48 const char *argv0; variable
64 argv0 = argv[0]; in main()
/external/skia/debugger/
Ddebuggermain.cpp13 static void usage(const char * argv0) { in usage() argument
14 SkDebugf("%s <input> \n", argv0); in usage()
/external/skqp/debugger/
Ddebuggermain.cpp13 static void usage(const char * argv0) { in usage() argument
14 SkDebugf("%s <input> \n", argv0); in usage()

123456789