/external/llvm/tools/llvm-link/ |
D | llvm-link.cpp | 111 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/ |
D | Main.cpp | 52 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/ |
D | Main.cpp | 50 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/ |
D | sysmodule.c | 1633 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/ |
D | InitializeTest.cpp | 12 static char *argv0; variable 16 argv0 = **argv; in LLVMFuzzerInitialize() 21 if (strncmp(reinterpret_cast<const char*>(Data), argv0, Size)) { in LLVMFuzzerTestOneInput()
|
/external/clang/ |
D | compiler_wrapper | 14 argv0 = real_compiler variable 26 argv0 = gomacc variable 31 os.execv(argv0, execargs)
|
/external/ltp/testcases/kernel/syscalls/setsid/ |
D | setsid01.c | 53 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/ |
D | sanitizer_procmaps_test.cc | 21 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()
|
D | sanitizer_test_main.cc | 16 const char *argv0; variable 19 argv0 = argv[0]; in main()
|
D | sanitizer_nolibc_test.cc | 21 extern const char *argv0; 25 std::string NolibcTestPath = argv0; in TEST()
|
/external/libdaemon/libdaemon/ |
D | dlog.c | 86 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/ |
D | sysmodule.c | 2158 (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/ |
D | kill02.c | 207 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/ |
D | gflags_reporting.cc | 263 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/ |
D | cg_merge.c | 114 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/ |
D | main.c | 208 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/ |
D | self_exec.c | 164 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/ |
D | core2md.cc | 41 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/ |
D | bridge.c | 64 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/ |
D | sendfile05.c | 78 static char *argv0; variable 203 if (self_exec(argv0, "") < 0) { in create_server() 231 argv0 = av[0]; in main()
|
D | sendfile06.c | 63 static char *argv0; variable 183 if (self_exec(argv0, "") < 0) { in create_server() 214 argv0 = av[0]; in main()
|
D | sendfile02.c | 95 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/ |
D | tsan_test.cc | 48 const char *argv0; variable 64 argv0 = argv[0]; in main()
|
/external/skia/debugger/ |
D | debuggermain.cpp | 13 static void usage(const char * argv0) { in usage() argument 14 SkDebugf("%s <input> \n", argv0); in usage()
|
/external/skqp/debugger/ |
D | debuggermain.cpp | 13 static void usage(const char * argv0) { in usage() argument 14 SkDebugf("%s <input> \n", argv0); in usage()
|