/external/python/cpython3/Python/ |
D | pathconfig.c | 284 wchar_t *argv0; in _PyPathConfig_ComputeArgv0() local 300 argv0 = argv[0]; in _PyPathConfig_ComputeArgv0() 301 if (argc > 0 && argv0 != NULL) { in _PyPathConfig_ComputeArgv0() 302 have_module_arg = (wcscmp(argv0, L"-m") == 0); in _PyPathConfig_ComputeArgv0() 303 have_script_arg = !have_module_arg && (wcscmp(argv0, L"-c") != 0); in _PyPathConfig_ComputeArgv0() 309 argv0 = fullpath; in _PyPathConfig_ComputeArgv0() 310 n = wcslen(argv0); in _PyPathConfig_ComputeArgv0() 312 argv0 = L"."; in _PyPathConfig_ComputeArgv0() 319 nr = _Py_wreadlink(argv0, link, MAXPATHLEN); in _PyPathConfig_ComputeArgv0() 324 argv0 = link; /* Link to absolute path */ in _PyPathConfig_ComputeArgv0() [all …]
|
/external/iperf3/examples/ |
D | mis.c | 16 char* argv0; in main() local 21 argv0 = strrchr( argv[0], '/' ); in main() 22 if ( argv0 != (char*) 0 ) in main() 23 ++argv0; in main() 25 argv0 = argv[0]; in main() 28 fprintf( stderr, "usage: %s [port]\n", argv0 ); in main() 35 fprintf( stderr, "%s: failed to create test\n", argv0 ); in main() 46 fprintf( stderr, "%s: error - %s\n\n", argv0, iperf_strerror( i_errno ) ); in main() 49 fprintf(stderr, "%s: too many errors, exiting\n", argv0); in main()
|
D | mic.c | 16 char* argv0; in main() local 21 argv0 = strrchr( argv[0], '/' ); in main() 22 if ( argv0 != (char*) 0 ) in main() 23 ++argv0; in main() 25 argv0 = argv[0]; in main() 28 fprintf( stderr, "usage: %s [host] [port]\n", argv0 ); in main() 36 fprintf( stderr, "%s: failed to create test\n", argv0 ); in main() 53 fprintf( stderr, "%s: error - %s\n", argv0, iperf_strerror( i_errno ) ); in main()
|
/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/swiftshader/third_party/llvm-7.0/llvm/lib/TableGen/ |
D | Main.cpp | 59 static int createDependencyFile(const TGParser &Parser, const char *argv0) { in createDependencyFile() argument 61 return reportError(argv0, "the option -d must be used together with -o\n"); in createDependencyFile() 66 return reportError(argv0, "error opening " + DependFilename + ":" + in createDependencyFile() 77 int llvm::TableGenMain(char *argv0, TableGenMainFn *MainFn) { in TableGenMain() argument 84 return reportError(argv0, "Could not open input file '" + InputFilename + in TableGenMain() 102 return reportError(argv0, "error opening " + OutputFilename + ":" + in TableGenMain() 105 if (int Ret = createDependencyFile(Parser, argv0)) in TableGenMain() 113 return reportError(argv0, Twine(ErrorsPrinted) + " errors.\n"); in TableGenMain()
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-link/ |
D | llvm-link.cpp | 117 static std::unique_ptr<Module> loadFile(const char *argv0, in loadFile() argument 131 Err.print(argv0, errs()); in loadFile() 152 std::function<std::unique_ptr<Module>(const char *argv0, 159 const char *argv0, const std::string &FileName)> in ModuleLazyLoaderCache() 164 Module &operator()(const char *argv0, const std::string &FileName); 176 Module &ModuleLazyLoaderCache::operator()(const char *argv0, in operator ()() argument 180 Module = createLazyModule(argv0, Identifier); in operator ()() 212 static bool importFunctions(const char *argv0, Module &DestModule) { in importFunctions() argument 221 auto ModuleLoader = [&DestModule](const char *argv0, in importFunctions() 223 return loadFile(argv0, Identifier, DestModule.getContext(), 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 257 argv0 = av0; in log_init() 335 openlog_r(argv0 ? argv0 : __progname, LOG_PID, log_facility, &sdata); in log_init() 338 openlog(argv0 ? argv0 : __progname, LOG_PID, log_facility); in log_init() 347 if (argv0 == NULL) in log_change_level() 349 log_init(argv0, new_log_level, log_facility, log_on_stderr); in log_change_level() 461 openlog_r(argv0 ? argv0 : __progname, LOG_PID, log_facility, &sdata); in do_log() 465 openlog(argv0 ? argv0 : __progname, LOG_PID, log_facility); in do_log()
|
/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/u-boot/tools/ |
D | prelink-riscv.c | 45 const char *argv0; variable 49 fprintf(stderr, "%s: " fmt "\n", argv0, ## __VA_ARGS__); \ 63 argv0 = argv[0]; in main() 66 fprintf(stderr, "Usage: %s <u-boot>\n", argv0); in main()
|
/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()
|
/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/deqp-deps/SPIRV-Tools/tools/stats/ |
D | stats.cpp | 29 void PrintUsage(char* argv0) { in PrintUsage() argument 45 argv0, argv0, argv0); in PrintUsage()
|
/external/swiftshader/third_party/SPIRV-Tools/tools/stats/ |
D | stats.cpp | 29 void PrintUsage(char* argv0) { in PrintUsage() argument 45 argv0, argv0, argv0); in PrintUsage()
|
/external/grpc-grpc/test/core/util/ |
D | cmdline.cc | 43 const char* argv0; member 149 char* gpr_cmdline_usage_string(gpr_cmdline* cl, const char* argv0) { in gpr_cmdline_usage_string() argument 153 const char* name = strrchr(argv0, '/'); in gpr_cmdline_usage_string() 158 name = argv0; in gpr_cmdline_usage_string() 178 char* usage = gpr_cmdline_usage_string(cl, cl->argv0); in print_usage_and_die() 323 cl->argv0 = argv[0]; in gpr_cmdline_parse()
|
/external/swiftshader/third_party/SPIRV-Tools/tools/cfg/ |
D | cfg.cpp | 26 static void print_usage(const char* argv0) { in print_usage() argument 44 argv0, argv0); in print_usage()
|
/external/deqp-deps/SPIRV-Tools/tools/cfg/ |
D | cfg.cpp | 26 static void print_usage(const char* argv0) { in print_usage() argument 44 argv0, argv0); in print_usage()
|
/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/deqp-deps/SPIRV-Tools/tools/as/ |
D | as.cpp | 23 void print_usage(char* argv0) { in print_usage() argument 48 argv0, argv0); in print_usage()
|
/external/swiftshader/third_party/SPIRV-Tools/tools/as/ |
D | as.cpp | 23 void print_usage(char* argv0) { in print_usage() argument 48 argv0, argv0); in print_usage()
|