/external/bison/lib/ |
D | progname.c | 39 set_program_name (const char *argv0) in set_program_name() argument 51 if (argv0 == NULL) in set_program_name() 59 slash = strrchr (argv0, '/'); in set_program_name() 60 base = (slash != NULL ? slash + 1 : argv0); in set_program_name() 61 if (base - argv0 >= 7 && strncmp (base - 7, "/.libs/", 7) == 0) in set_program_name() 63 argv0 = base; in set_program_name() 66 argv0 = base + 3; in set_program_name() 70 program_invocation_short_name = (char *) argv0; in set_program_name() 84 program_name = argv0; in set_program_name() 90 program_invocation_name = (char *) argv0; in set_program_name()
|
D | progname.h | 37 extern void set_program_name (const char *argv0); 43 extern void set_program_name_and_installdir (const char *argv0,
|
/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/openssh/ |
D | log.c | 59 static char *argv0; variable 247 argv0 = av0; in log_init() 325 openlog_r(argv0 ? argv0 : __progname, LOG_PID, log_facility, &sdata); in log_init() 328 openlog(argv0 ? argv0 : __progname, LOG_PID, log_facility); in log_init() 337 if (argv0 == NULL) in log_change_level() 339 log_init(argv0, new_log_level, log_facility, log_on_stderr); in log_change_level() 450 openlog_r(argv0 ? argv0 : __progname, LOG_PID, log_facility, &sdata); in do_log() 454 openlog(argv0 ? argv0 : __progname, LOG_PID, log_facility); in do_log()
|
/external/ltp/testcases/kernel/syscalls/waitpid/ |
D | waitpid10.c | 60 static char *argv0; variable 74 argv0 = av[0]; in main() 97 if (self_exec(argv0, "n", 1) < 0) in main() 108 if (self_exec(argv0, "n", 2) < 0) in main() 119 if (self_exec(argv0, "n", 3) < 0) in main() 130 if (self_exec(argv0, "n", 4) < 0) in main() 303 if (self_exec(argv0, "n", 1) < 0) { in do_fork()
|
D | waitpid06.c | 70 static char *argv0; variable 84 argv0 = argv[0]; in main() 163 if (self_exec(argv0, "n", 2) < 0) { in do_child_1()
|
/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/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/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/openssh/openbsd-compat/ |
D | bsd-misc.c | 42 char *ssh_get_progname(char *argv0) in ssh_get_progname() argument 50 if (argv0 == NULL) in ssh_get_progname() 52 p = strrchr(argv0, '/'); in ssh_get_progname() 54 p = argv0; in ssh_get_progname()
|
/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/ltp/testcases/kernel/syscalls/mkdir/ |
D | mkdir09.c | 92 static char *argv0; variable 110 argv0 = argv[0]; in main() 320 if (self_exec(argv0, "nd", 1, nfiles) < 0) { in getchild() 330 if (self_exec(argv0, "n", 2) < 0) { in getchild() 340 if (self_exec(argv0, "nd", 3, group) < 0) { in getchild()
|
/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/ltp/lib/ |
D | self_exec.c | 159 int self_exec(const char *argv0, const char *fmt, ...) in self_exec() argument 217 return execlp(argv0, argv0, "-C", arg, (char *)NULL); in self_exec()
|
/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/compiler-rt/lib/tsan/tests/rtl/ |
D | tsan_test.cc | 48 const char *argv0; variable 64 argv0 = argv[0]; in main()
|
/external/ltp/testcases/kernel/syscalls/ipc/msgctl/ |
D | msgctl11.c | 74 static char *argv0; variable 92 argv0 = argv[0]; in main() 216 if (self_exec(argv0, "ndd", 1, key, i) < 0) { in dotest_iteration() 322 if (self_exec(argv0, "nddd", 2, key, getpid(), in dotest() 349 if (self_exec(argv0, "nddd", 3, key, rkidarray[i], in dotest()
|
/external/ltp/testcases/kernel/syscalls/sendfile/ |
D | sendfile05.c | 77 static char *argv0; variable 205 if (self_exec(argv0, "") < 0) { in create_server() 236 argv0 = av[0]; in main()
|