Home
last modified time | relevance | path

Searched refs:cmdline (Results 1 – 25 of 198) sorted by relevance

12345678

/third_party/gn/src/gn/
Dninja_tools.cc20 base::CommandLine cmdline(ninja_executable); in CreateNinjaToolCommandLine() local
21 cmdline.SetParseSwitches(false); in CreateNinjaToolCommandLine()
22 cmdline.AppendArg("-t"); in CreateNinjaToolCommandLine()
23 cmdline.AppendArg(tool); in CreateNinjaToolCommandLine()
24 return cmdline; in CreateNinjaToolCommandLine()
27 bool RunNinja(const base::CommandLine& cmdline, in RunNinja() argument
34 if (!internal::ExecProcess(cmdline, startup_dir, output, &stderr_output, in RunNinja()
38 FilePathToUTF8(cmdline.GetProgram()) + "\"."); in RunNinja()
57 base::CommandLine cmdline = in InvokeNinjaRestatTool() local
60 cmdline.AppendArgPath(file); in InvokeNinjaRestatTool()
[all …]
Dsetup_unittest.cc24 base::CommandLine cmdline(base::CommandLine::NO_PROGRAM); in TEST_F() local
34 cmdline.AppendSwitchASCII(switches::kRoot, FilePathToUTF8(in_path)); in TEST_F()
43 setup.DoSetup(FilePathToUTF8(build_temp_dir.GetPath()), true, cmdline)); in TEST_F()
50 base::CommandLine cmdline(base::CommandLine::NO_PROGRAM); in TEST_F() local
63 cmdline.AppendSwitchASCII(switches::kRoot, FilePathToUTF8(in_path)); in TEST_F()
73 true, cmdline, &err)); in TEST_F()
78 base::CommandLine cmdline(base::CommandLine::NO_PROGRAM); in TEST_F() local
91 cmdline.AppendSwitchASCII(switches::kRoot, FilePathToUTF8(in_path)); in TEST_F()
101 true, cmdline, &err)); in TEST_F()
109 base::CommandLine cmdline(base::CommandLine::NO_PROGRAM); in RunExtensionCheckTest() local
[all …]
Dgn_main.cc23 std::vector<std::string> GetArgs(const base::CommandLine& cmdline) { in GetArgs() argument
24 base::CommandLine::StringVector in_args = cmdline.GetArgs(); in GetArgs()
43 const base::CommandLine& cmdline = *base::CommandLine::ForCurrentProcess(); in main() local
44 std::vector<std::string> args = GetArgs(cmdline); in main()
47 if (cmdline.HasSwitch("help") || cmdline.HasSwitch("h")) { in main()
50 } else if (cmdline.HasSwitch(switches::kVersion)) { in main()
66 if (!commands::CommandSwitches::Init(cmdline)) in main()
Dcommands.cc368 bool CommandSwitches::Init(const base::CommandLine& cmdline) { in Init() argument
371 return s_global_switches_.InitFrom(cmdline); in Init()
390 bool CommandSwitches::InitFrom(const base::CommandLine& cmdline) { in InitFrom() argument
393 result.has_quiet_ = cmdline.HasSwitch("a"); in InitFrom()
394 result.has_force_ = cmdline.HasSwitch("force"); in InitFrom()
395 result.has_all_ = cmdline.HasSwitch("all"); in InitFrom()
396 result.has_blame_ = cmdline.HasSwitch("blame"); in InitFrom()
397 result.has_tree_ = cmdline.HasSwitch("tree"); in InitFrom()
398 result.has_format_json_ = cmdline.GetSwitchValueASCII("format") == "json"; in InitFrom()
400 cmdline.HasSwitch(switches::kDefaultToolchain); in InitFrom()
[all …]
Dsetup.cc379 const base::CommandLine& cmdline) { in DoSetup() argument
381 if (!DoSetupWithErr(build_dir, force_create, cmdline, &err)) { in DoSetup()
391 const base::CommandLine& cmdline, in DoSetupWithErr() argument
393 scheduler_.set_verbose_logging(cmdline.HasSwitch(switches::kVerbose)); in DoSetupWithErr()
394 if (cmdline.HasSwitch(switches::kTime) || in DoSetupWithErr()
395 cmdline.HasSwitch(switches::kTracelog)) in DoSetupWithErr()
400 if (!FillSourceDir(cmdline, err)) in DoSetupWithErr()
404 if (!FillOtherConfig(cmdline, err)) in DoSetupWithErr()
420 if (!FillArguments(cmdline, err)) in DoSetupWithErr()
423 if (!FillPythonPath(cmdline, err)) in DoSetupWithErr()
[all …]
Dsetup.h57 const base::CommandLine& cmdline);
62 const base::CommandLine& cmdline,
73 bool Run(const base::CommandLine& cmdline);
130 bool RunPostMessageLoop(const base::CommandLine& cmdline);
133 bool FillArguments(const base::CommandLine& cmdline, Err* err);
148 bool FillSourceDir(const base::CommandLine& cmdline, Err* err);
159 bool FillPythonPath(const base::CommandLine& cmdline, Err* err);
164 bool FillOtherConfig(const base::CommandLine& cmdline, Err* err);
Dninja_build_writer.cc62 base::CommandLine cmdline(exe_path.NormalizePathSeparatorsTo('/')); in GetSelfInvocationCommandLine() local
67 cmdline.AppendArg("gen"); in GetSelfInvocationCommandLine()
68 cmdline.AppendArg("."); in GetSelfInvocationCommandLine()
74 cmdline.AppendSwitchPath(std::string("--") + switches::kRoot, in GetSelfInvocationCommandLine()
77 cmdline.AppendSwitch(std::string("-") + switches::kQuiet); in GetSelfInvocationCommandLine()
96 cmdline.AppendSwitchPath(std::string("--") + switches::kDotfile, in GetSelfInvocationCommandLine()
113 cmdline.AppendSwitchASCII(i->first, escaped_value); in GetSelfInvocationCommandLine()
122 if (!cmdline.HasSwitch(switches::kRegeneration)) { in GetSelfInvocationCommandLine()
123 cmdline.AppendSwitch(switches::kRegeneration); in GetSelfInvocationCommandLine()
126 return cmdline; in GetSelfInvocationCommandLine()
[all …]
/third_party/python/Python/
Dpreconfig.c114 _PyPreCmdline_Clear(_PyPreCmdline *cmdline) in _PyPreCmdline_Clear() argument
116 _PyWideStringList_Clear(&cmdline->argv); in _PyPreCmdline_Clear()
117 _PyWideStringList_Clear(&cmdline->xoptions); in _PyPreCmdline_Clear()
122 _PyPreCmdline_SetArgv(_PyPreCmdline *cmdline, const _PyArgv *args) in _PyPreCmdline_SetArgv() argument
124 return _PyArgv_AsWstrList(args, &cmdline->argv); in _PyPreCmdline_SetArgv()
129 precmdline_get_preconfig(_PyPreCmdline *cmdline, const PyPreConfig *config) in precmdline_get_preconfig() argument
133 cmdline->ATTR = config->ATTR; \ in precmdline_get_preconfig()
145 precmdline_set_preconfig(const _PyPreCmdline *cmdline, PyPreConfig *config) in precmdline_set_preconfig() argument
148 config->ATTR = cmdline->ATTR in precmdline_set_preconfig()
159 _PyPreCmdline_SetConfig(const _PyPreCmdline *cmdline, PyConfig *config) in _PyPreCmdline_SetConfig() argument
[all …]
/third_party/mesa3d/src/gallium/auxiliary/os/
Dos_process.c113 os_get_command_line(char *cmdline, size_t size) in os_get_command_line() argument
118 strncpy(cmdline, args, size); in os_get_command_line()
120 cmdline[size - 1] = 0; in os_get_command_line()
126 const int n = read(f, cmdline, size - 1); in os_get_command_line()
131 if (cmdline[i] == 0) { in os_get_command_line()
132 cmdline[i] = ' '; in os_get_command_line()
136 cmdline[n] = 0; in os_get_command_line()
144 cmdline[0] = 0; in os_get_command_line()
/third_party/flutter/skia/third_party/externals/sdl/src/main/windows/
DSDL_windows_main.c45 ParseCommandLine(char *cmdline, char **argv) in ParseCommandLine() argument
52 for (bufp = cmdline; *bufp;) { in ParseCommandLine()
136 char *cmdline; in main_getcmdline() local
142 cmdline = WIN_StringToUTF8(text); in main_getcmdline()
145 cmdline = SDL_strdup(text); in main_getcmdline()
147 if (cmdline == NULL) { in main_getcmdline()
152 argc = ParseCommandLine(cmdline, NULL); in main_getcmdline()
157 ParseCommandLine(cmdline, argv); in main_getcmdline()
162 SDL_free(cmdline); in main_getcmdline()
/third_party/libfuse/test/
Dtest_ctests.py32 cmdline = [ pjoin(basename, 'test', 'test_write_cache'),
35 cmdline.append('-owriteback_cache')
36 subprocess.check_call(cmdline, stdout=output_checker.fd, stderr=output_checker.fd)
48 cmdline = base_cmdline + \
52 cmdline.append('--no-notify')
53 mount_process = subprocess.Popen(cmdline, stdout=output_checker.fd,
78 cmdline = base_cmdline + \
82 cmdline.append('--no-notify')
83 mount_process = subprocess.Popen(cmdline, stdout=output_checker.fd,
Dtest_examples.py45 cmdline = base_cmdline + [ pjoin(basename, 'example', name),
49 cmdline.append('-s')
51 return cmdline
131 cmdline = base_cmdline + \
135 cmdline = base_cmdline + \
139 cmdline.append('-d')
144 cmdline.append('-o')
145 cmdline.append('writeback')
147 mount_process = subprocess.Popen(cmdline, stdout=output_checker.fd,
196 cmdline = base_cmdline + \
[all …]
Dutil.py15 cmdline = base_cmdline + [ pjoin(basename, 'example', 'printcap') ]
16 proc = subprocess.Popen(cmdline, stdout=subprocess.PIPE,
66 cmdline = [ 'umount', mnt_dir ]
71 cmdline = base_cmdline
73 cmdline = []
74 cmdline = cmdline + [ pjoin(basename, 'util', 'fusermount3'),
77 subprocess.check_call(cmdline)
/third_party/toybox/toys/other/
Dswitch_root.c46 char *newroot = *toys.optargs, **cmdline = toys.optargs+1; in switch_root_main() local
73 while (**cmdline == '/') (*cmdline)++; in switch_root_main()
76 if (stat(*cmdline, &st1) || !S_ISREG(st1.st_mode) || !(st1.st_mode&0100)) { in switch_root_main()
112 execv(*cmdline, cmdline); in switch_root_main()
113 perror_msg("Failed to exec '%s'", *cmdline); in switch_root_main()
/third_party/ltp/testcases/kernel/security/integrity/ima/tests/
Dima_kexec.sh23 local cmdline="$1"
26 printf "$cmdline" > file1
83 local cmdline="$2"
87 kexec_cmd="$param=$cmdline"
89 cmdline="$(sed 's/BOOT_IMAGE=[^ ]* //' /proc/cmdline)"
101 if ! measure "$cmdline"; then
/third_party/vk-gl-cts/execserver/tools/
DxsMain.cpp42 void registerOptions (de::cmdline::Parser& parser) in registerOptions()
44 using de::cmdline::Option; in registerOptions()
45 using de::cmdline::NamedValue; in registerOptions()
55 de::cmdline::CommandLine cmdLine; in main()
68 de::cmdline::Parser parser; in main()
/third_party/rust/crates/libc/ci/
Dandroid-install-sdk.sh13 mkdir -p sdk/cmdline-tools
15 unzip -q -d sdk/cmdline-tools commandlinetools-linux-${SDK}_latest.zip
54 yes | ./sdk/cmdline-tools/tools/bin/sdkmanager --licenses --no_https | grep -v = || true
55 yes | ./sdk/cmdline-tools/tools/bin/sdkmanager --no_https \
68 ./sdk/cmdline-tools/tools/bin/avdmanager create avd \
/third_party/node/test/abort/
Dtest-abort-fatal-error.js30 let cmdline = `ulimit -c 0; ${process.execPath}`; variable
31 cmdline += ' --max-old-space-size=4 --max-semi-space-size=1';
32 cmdline += ' -e "a = []; for (i = 0; i < 1e9; i++) { a.push({}) }"';
34 exec(cmdline, function(err, stdout, stderr) {
/third_party/python/Lib/test/
Dtest_getopt.py102 cmdline = ['-a', '1', '-b', '--alpha=2', '--beta', '-a', '3', '-a',
105 opts, args = getopt.getopt(cmdline, 'a:b', ['alpha=', 'beta'])
113 self.assertError(getopt.getopt, cmdline, 'a:b', ['alpha', 'beta'])
117 cmdline = ['-a', 'arg1', '-b', '1', '--alpha', '--beta=2']
120 opts, args = getopt.gnu_getopt(cmdline, 'ab:', ['alpha', 'beta='])
131 opts, args = getopt.gnu_getopt(cmdline, '+ab:', ['alpha', 'beta='])
137 opts, args = getopt.gnu_getopt(cmdline, 'ab:', ['alpha', 'beta='])
/third_party/ltp/testcases/kernel/hotplug/memory_hotplug/
Dcommands.c1204 static int parse_command(char *cmdline) in parse_command() argument
1210 cmdline += strspn(cmdline, whitespace); /* possibly redundant */ in parse_command()
1212 cmd = strtok_r(cmdline, whitespace, &args); in parse_command()
1242 char *cmdline; in process_commands() local
1248 cmdline = fgets(cmdbuf, CMDBUFSZ, stdin); in process_commands()
1249 if (cmdline == NULL) { in process_commands()
1254 if (cmdline[0] == '\n') in process_commands()
1260 cmdlen = strlen(cmdline); in process_commands()
1261 if (cmdline[cmdlen - 1] == '\n') in process_commands()
1262 cmdline[--cmdlen] = '\0'; in process_commands()
[all …]
/third_party/ltp/pan/
Dzoolib.c186 int zoo_mark_cmdline(zoo_t z, pid_t p, char *tag, char *cmdline) in zoo_mark_cmdline() argument
190 snprintf(new_entry, 80, "%d,%s,%s", p, tag, cmdline); in zoo_mark_cmdline()
196 char *cmdline; in zoo_mark_args() local
199 cmdline = cat_args(ac, av); in zoo_mark_args()
200 ret = zoo_mark_cmdline(z, p, tag, cmdline); in zoo_mark_args()
202 free(cmdline); in zoo_mark_args()
400 char cmdline[200]; in zt_add() local
404 snprintf(cmdline, 200, "%s%d %s %s %s", "runtest", n, "one", "two", in zt_add()
407 zoo_mark_cmdline(z, n, tag, cmdline); in zt_add()
/third_party/flutter/skia/tools/malisc/
Dmalisc.py23 cmdline = [compiler] variable
25 cmdline.extend(['-f', '-p'])
26 cmdline.append(os.path.join(folder, filename))
28 output = subprocess.check_output(cmdline)
/third_party/skia/tools/malisc/
Dmalisc.py26 cmdline = [compiler] variable
28 cmdline.extend(['-f', '-p'])
29 cmdline.append(os.path.join(folder, filename))
31 output = subprocess.check_output(cmdline)
/third_party/python/Lib/
Dwebbrowser.py174 cmdline = [self.name] + [arg.replace("%s", url)
178 p = subprocess.Popen(cmdline)
180 p = subprocess.Popen(cmdline, close_fds=True)
191 cmdline = [self.name] + [arg.replace("%s", url)
196 p = subprocess.Popen(cmdline)
198 p = subprocess.Popen(cmdline, close_fds=True,
230 cmdline = [self.name] + raise_opt + args
237 p = subprocess.Popen(cmdline, close_fds=True, stdin=inout,
589 for cmdline in userchoices:
590 if cmdline != '':
[all …]
/third_party/cups-filters/backend/
Dbeh.c218 cmdline[65536]; /* Backend command line */ in call_backend() local
239 snprintf(cmdline, sizeof(cmdline), in call_backend()
257 cmdline); in call_backend()
262 retval = system(cmdline) >> 8; in call_backend()

12345678