Home
last modified time | relevance | path

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

1234567891011

/external/iperf3/examples/
Dmis.c16 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()
Dmic.c16 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-project/compiler-rt/test/fuzzer/
DInitializeTest.cpp13 static char *argv0 = NULL; variable
17 argv0 = **argv; in LLVMFuzzerInitialize()
18 fprintf(stderr, "LLVMFuzzerInitialize: %s\n", argv0); in LLVMFuzzerInitialize()
23 assert(argv0); in LLVMFuzzerTestOneInput()
24 if (argv0 && Size >= 4 && !memcmp(Data, "fuzz", 4)) { in LLVMFuzzerTestOneInput()
25 fprintf(stderr, "BINGO %s\n", argv0); in LLVMFuzzerTestOneInput()
/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/swiftshader/third_party/llvm-10.0/llvm/lib/TableGen/
DMain.cpp65 static int createDependencyFile(const TGParser &Parser, const char *argv0) { in createDependencyFile() argument
67 return reportError(argv0, "the option -d must be used together with -o\n"); in createDependencyFile()
72 return reportError(argv0, "error opening " + DependFilename + ":" + in createDependencyFile()
83 int llvm::TableGenMain(char *argv0, TableGenMainFn *MainFn) { in TableGenMain() argument
90 return reportError(argv0, "Could not open input file '" + InputFilename + in TableGenMain()
116 if (int Ret = createDependencyFile(Parser, argv0)) in TableGenMain()
132 return reportError(argv0, "error opening " + OutputFilename + ":" + in TableGenMain()
137 return reportError(argv0, Twine(ErrorsPrinted) + " errors.\n"); in TableGenMain()
/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/llvm-project/llvm/tools/llvm-link/
Dllvm-link.cpp118 static std::unique_ptr<Module> loadFile(const char *argv0, in loadFile() argument
133 Err.print(argv0, errs()); in loadFile()
219 std::function<std::unique_ptr<Module>(const char *argv0,
226 const char *argv0, const std::string &FileName)> in ModuleLazyLoaderCache()
231 Module &operator()(const char *argv0, const std::string &FileName);
243 Module &ModuleLazyLoaderCache::operator()(const char *argv0, in operator ()() argument
247 Module = createLazyModule(argv0, Identifier); in operator ()()
279 static bool importFunctions(const char *argv0, Module &DestModule) { in importFunctions() argument
288 auto ModuleLoader = [&DestModule](const char *argv0, in importFunctions()
292 return loadFile(argv0, std::move(Buffer), DestModule.getContext(), false); in importFunctions()
[all …]
/external/llvm-project/llvm/lib/TableGen/
DMain.cpp68 static int createDependencyFile(const TGParser &Parser, const char *argv0) { in createDependencyFile() argument
70 return reportError(argv0, "the option -d must be used together with -o\n"); in createDependencyFile()
75 return reportError(argv0, "error opening " + DependFilename + ":" + in createDependencyFile()
86 int llvm::TableGenMain(const char *argv0, TableGenMainFn *MainFn) { in TableGenMain() argument
98 return reportError(argv0, "Could not open input file '" + InputFilename + in TableGenMain()
130 if (int Ret = createDependencyFile(Parser, argv0)) in TableGenMain()
148 return reportError(argv0, "error opening " + OutputFilename + ": " + in TableGenMain()
159 return reportError(argv0, Twine(ErrorsPrinted) + " errors.\n"); in TableGenMain()
/external/openssh/
Dlog.c59 static char *argv0; variable
263 argv0 = av0; in log_init()
330 openlog_r(argv0 ? argv0 : __progname, LOG_PID, log_facility, &sdata); in log_init()
333 openlog(argv0 ? argv0 : __progname, LOG_PID, log_facility); in log_init()
342 if (argv0 == NULL) in log_change_level()
470 openlog_r(argv0 ? argv0 : __progname, LOG_PID, log_facility, &sdata); in do_log()
474 openlog(argv0 ? argv0 : __progname, LOG_PID, log_facility); in do_log()
/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/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/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()
/external/angle/third_party/vulkan-deps/spirv-tools/src/tools/cfg/
Dcfg.cpp26 static void print_usage(const char* argv0) { in print_usage() argument
44 argv0, argv0); in print_usage()
/external/deqp-deps/SPIRV-Tools/tools/cfg/
Dcfg.cpp26 static void print_usage(const char* argv0) { in print_usage() argument
44 argv0, argv0); in print_usage()
/external/swiftshader/third_party/SPIRV-Tools/tools/cfg/
Dcfg.cpp26 static void print_usage(const char* argv0) { in print_usage() argument
44 argv0, argv0); in print_usage()
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_procmaps_test.cpp20 extern const char *argv0;
35 const char *last_slash = strrchr(argv0, '/'); in TEST()
36 const char *binary_name = last_slash ? last_slash + 1 : argv0; in TEST()
Dsanitizer_test_main.cpp15 const char *argv0; variable
18 argv0 = argv[0]; in main()
/external/grpc-grpc/test/core/util/
Dcmdline.cc43 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/rust/crates/grpcio-sys/grpc/test/core/util/
Dcmdline.cc49 const char* argv0; member
149 std::string gpr_cmdline_usage_string(gpr_cmdline* cl, const char* argv0) { in gpr_cmdline_usage_string() argument
150 const char* name = strrchr(argv0, '/'); in gpr_cmdline_usage_string()
154 name = argv0; in gpr_cmdline_usage_string()
168 fprintf(stderr, "%s", gpr_cmdline_usage_string(cl, cl->argv0).c_str()); in print_usage_and_die()
311 cl->argv0 = argv[0]; in gpr_cmdline_parse()
/external/deqp-deps/SPIRV-Tools/tools/as/
Das.cpp23 void print_usage(char* argv0) { in print_usage() argument
48 argv0, argv0, target_env_list.c_str()); in print_usage()
/external/swiftshader/third_party/SPIRV-Tools/tools/as/
Das.cpp23 void print_usage(char* argv0) { in print_usage() argument
48 argv0, argv0, target_env_list.c_str()); in print_usage()
/external/angle/third_party/vulkan-deps/spirv-tools/src/tools/as/
Das.cpp23 void print_usage(char* argv0) { in print_usage() argument
48 argv0, argv0, target_env_list.c_str()); in print_usage()

1234567891011