Home
last modified time | relevance | path

Searched refs:cmdline (Results 1 - 25 of 151) sorted by relevance

1234567

/third_party/gn/src/gn/
H A Dninja_tools.cc21 base::CommandLine cmdline(ninja_executable); in CreateNinjaToolCommandLine()
22 cmdline.SetParseSwitches(false); in CreateNinjaToolCommandLine()
23 cmdline.AppendArg("-t"); in CreateNinjaToolCommandLine()
24 cmdline.AppendArg(tool); in CreateNinjaToolCommandLine()
25 return cmdline; in CreateNinjaToolCommandLine()
28 bool RunNinja(const base::CommandLine& cmdline, in RunNinja() argument
35 if (!internal::ExecProcess(cmdline, startup_dir, output, &stderr_output, in RunNinja()
39 FilePathToUTF8(cmdline.GetProgram()) + "\"."); in RunNinja()
58 base::CommandLine cmdline = in InvokeNinjaRestatTool() local
61 cmdline in InvokeNinjaRestatTool()
70 base::CommandLine cmdline = InvokeNinjaCleanDeadTool() local
79 base::CommandLine cmdline = InvokeNinjaRecompactTool() local
[all...]
H A Dsetup_unittest.cc25 base::CommandLine cmdline(base::CommandLine::NO_PROGRAM); in TEST_F()
35 cmdline.AppendSwitchPath(switches::kRoot, in_path); in TEST_F()
44 setup.DoSetup(FilePathToUTF8(build_temp_dir.GetPath()), true, cmdline)); in TEST_F()
51 base::CommandLine cmdline(base::CommandLine::NO_PROGRAM); in TEST_F()
67 cmdline.AppendSwitchPath(switches::kRoot, in_path); in TEST_F()
77 true, cmdline, &err)); in TEST_F()
82 base::CommandLine cmdline(base::CommandLine::NO_PROGRAM); in TEST_F()
98 cmdline.AppendSwitchPath(switches::kRoot, in_path); in TEST_F()
108 true, cmdline, &err)); in TEST_F()
116 base::CommandLine cmdline(bas in TEST_F()
[all...]
H A 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()
H A Dinvoke_python.cc24 base::CommandLine cmdline(python_path); in InvokePython()
25 cmdline.AppendArg("--"); in InvokePython()
26 cmdline.AppendArgPath(python_script_path); in InvokePython()
27 cmdline.AppendArgPath(output_path); in InvokePython()
29 cmdline.AppendArg(python_script_extra_args); in InvokePython()
38 if (!internal::ExecProcess(cmdline, startup_dir, &output, &stderr_output, in InvokePython()
H A Dsetup.cc430 const base::CommandLine& cmdline) {
432 if (!DoSetupWithErr(build_dir, force_create, cmdline, &err)) {
481 const base::CommandLine& cmdline,
483 scheduler_.set_verbose_logging(cmdline.HasSwitch(switches::kVerbose));
484 if (cmdline.HasSwitch(switches::kTime) ||
485 cmdline.HasSwitch(switches::kTracelog))
490 if (!FillSourceDir(cmdline, err))
494 if (!FillOtherConfig(cmdline, err))
510 if (!FillArguments(cmdline, err))
518 if (!FillPythonPath(cmdline, er
[all...]
H A Dsetup.h52 // cmdline is the gn invocation command, with flags like --root and --dotfile.
53 // If no explicit cmdline is passed, base::CommandLine::ForCurrentProcess()
58 const base::CommandLine& cmdline);
63 const base::CommandLine& cmdline,
70 // cmdline is the gn invocation command, with flags like --root and --dotfile.
71 // If no explicit cmdline is passed, base::CommandLine::ForCurrentProcess()
74 bool Run(const base::CommandLine& cmdline);
137 bool RunPostMessageLoop(const base::CommandLine& cmdline);
140 bool FillArguments(const base::CommandLine& cmdline, Err* err);
157 bool FillSourceDir(const base::CommandLine& cmdline, Er
[all...]
H A Dcommands.cc399 bool CommandSwitches::Init(const base::CommandLine& cmdline) { in Init() argument
402 return s_global_switches_.InitFrom(cmdline); in Init()
421 bool CommandSwitches::InitFrom(const base::CommandLine& cmdline) { in InitFrom() argument
424 result.has_quiet_ = cmdline.HasSwitch("a"); in InitFrom()
425 result.has_force_ = cmdline.HasSwitch("force"); in InitFrom()
426 result.has_all_ = cmdline.HasSwitch("all"); in InitFrom()
427 result.has_blame_ = cmdline.HasSwitch("blame"); in InitFrom()
428 result.has_tree_ = cmdline.HasSwitch("tree"); in InitFrom()
429 result.has_format_json_ = cmdline.GetSwitchValueString("format") == "json"; in InitFrom()
431 cmdline in InitFrom()
[all...]
H A Dninja_build_writer.cc63 base::CommandLine cmdline(exe_path.NormalizePathSeparatorsTo('/')); in GetSelfInvocationCommandLine()
68 cmdline.AppendArg("gen"); in GetSelfInvocationCommandLine()
69 cmdline.AppendArg("."); in GetSelfInvocationCommandLine()
75 cmdline.AppendSwitchPath(std::string("--") + switches::kRoot, in GetSelfInvocationCommandLine()
78 cmdline.AppendSwitch(std::string("-") + switches::kQuiet); in GetSelfInvocationCommandLine()
97 cmdline.AppendSwitchPath(std::string("--") + switches::kDotfile, in GetSelfInvocationCommandLine()
114 cmdline.AppendSwitch(i->first, escaped_value); in GetSelfInvocationCommandLine()
123 if (!cmdline.HasSwitch(switches::kRegeneration)) { in GetSelfInvocationCommandLine()
124 cmdline.AppendSwitch(switches::kRegeneration); in GetSelfInvocationCommandLine()
127 return cmdline; in GetSelfInvocationCommandLine()
133 base::CommandLine cmdline = GetSelfInvocationCommandLine(build_settings); GetSelfInvocationCommand() local
[all...]
/third_party/python/Python/
H A Dpreconfig.c110 _PyPreCmdline_Clear(_PyPreCmdline *cmdline) in _PyPreCmdline_Clear() argument
112 _PyWideStringList_Clear(&cmdline->argv); in _PyPreCmdline_Clear()
113 _PyWideStringList_Clear(&cmdline->xoptions); in _PyPreCmdline_Clear()
118 _PyPreCmdline_SetArgv(_PyPreCmdline *cmdline, const _PyArgv *args) in _PyPreCmdline_SetArgv() argument
120 return _PyArgv_AsWstrList(args, &cmdline->argv); in _PyPreCmdline_SetArgv()
125 precmdline_get_preconfig(_PyPreCmdline *cmdline, const PyPreConfig *config) in precmdline_get_preconfig() argument
129 cmdline->ATTR = config->ATTR; \ in precmdline_get_preconfig()
141 precmdline_set_preconfig(const _PyPreCmdline *cmdline, PyPreConfig *config) in precmdline_set_preconfig() argument
144 config->ATTR = cmdline->ATTR in precmdline_set_preconfig()
155 _PyPreCmdline_SetConfig(const _PyPreCmdline *cmdline, PyConfi argument
177 precmdline_parse_cmdline(_PyPreCmdline *cmdline) precmdline_parse_cmdline() argument
224 _PyPreCmdline_Read(_PyPreCmdline *cmdline, const PyPreConfig *preconfig) _PyPreCmdline_Read() argument
590 preconfig_init_utf8_mode(PyPreConfig *config, const _PyPreCmdline *cmdline) preconfig_init_utf8_mode() argument
733 preconfig_read(PyPreConfig *config, _PyPreCmdline *cmdline) preconfig_read() argument
819 _PyPreCmdline cmdline = _PyPreCmdline_INIT; _PyPreConfig_Read() local
[all...]
/third_party/libfuse/test/
H A Dtest_ctests.py32 cmdline = [ pjoin(basename, 'test', 'test_write_cache'),
35 cmdline.append('-owriteback_cache')
40 cmdline.append('--delay_ms=200')
41 subprocess.check_call(cmdline, stdout=output_checker.fd, stderr=output_checker.fd)
53 cmdline = base_cmdline + \
57 cmdline.append('--no-notify')
58 mount_process = subprocess.Popen(cmdline, stdout=output_checker.fd,
83 cmdline = base_cmdline + \
87 cmdline.append('--no-notify')
88 mount_process = subprocess.Popen(cmdline, stdou
[all...]
H A Dtest_examples.py45 cmdline = base_cmdline + [ pjoin(basename, 'example', name),
49 cmdline.append('-s')
51 return cmdline
133 cmdline = base_cmdline + \
137 cmdline = base_cmdline + \
141 cmdline.append('-d')
146 cmdline.append('-o')
147 cmdline.append('writeback')
149 mount_process = subprocess.Popen(cmdline, stdout=output_checker.fd,
198 cmdline
[all...]
H A Dutil.py15 cmdline = base_cmdline + [ pjoin(basename, 'example', 'printcap') ]
16 proc = subprocess.Popen(cmdline, stdout=subprocess.PIPE,
68 cmdline = [ 'umount', mnt_dir ]
73 cmdline = base_cmdline
75 cmdline = []
76 cmdline = cmdline + [ pjoin(basename, 'util', 'fusermount3'),
79 subprocess.check_call(cmdline)
/third_party/mesa3d/src/gallium/auxiliary/os/
H A Dos_process.c108 * \param cmdline returns the command line string
109 * \param size size of the cmdline buffer
113 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()
124 int f = open("/proc/self/cmdline", O_RDONLY); 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[ in os_get_command_line()
[all...]
/third_party/toybox/toys/other/
H A Dswitch_root.c46 char *newroot = *toys.optargs, **cmdline = toys.optargs+1; in switch_root_main() local
70 // trim any / characters from the init cmdline, as we want to test it with in switch_root_main()
71 // stat(), relative to newroot. *cmdline is also used below, but by that in switch_root_main()
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/
H A Dima_kexec.sh7 # Verify that kexec cmdline is measured correctly.
20 local cmdline="$1"
23 printf "$cmdline" > file1
24 grep "kexec-cmdline" $ASCII_MEASUREMENTS > file2
80 local cmdline="$2"
84 kexec_cmd="$param=$cmdline"
85 if [ "$param" = '--reuse-cmdline' ]; then
86 cmdline="$(sed 's/BOOT_IMAGE=[^ ]* //' /proc/cmdline)"
98 if ! measure "$cmdline"; the
[all...]
/third_party/cJSON/tests/unity/test/tests/
H A Dtest_generate_test_runner.rb37 :cmdline => "", #defaults
56 :cmdline => "", #defaults
162 :cmdline => " --test_prefix=\"paratest\" --use_param_tests=1",
178 :cmdline => "--use_param_tests=1",
232 :cmdline => " --test_prefix=\"custtest|test\" --setup_name=\"custom_setup\" --teardown_name=\"custom_teardown\"",
249 :cmdline => " --test_prefix=\"custtest|test\"",
357 :cmdline => "", #defaults
377 :cmdline => "", #defaults
486 :cmdline => " --test_prefix=\"paratest\" --use_param_tests=1",
502 :cmdline
[all...]
/third_party/unity/test/tests/
H A Dtest_generate_test_runner.rb37 :cmdline => "", #defaults
56 :cmdline => "", #defaults
164 :cmdline => " --test_prefix=\"paratest\" --use_param_tests=1",
182 :cmdline => "--use_param_tests=1",
238 :cmdline => " --test_prefix=\"custtest|test\" --setup_name=\"custom_setup\" --teardown_name=\"custom_teardown\"",
255 :cmdline => " --test_prefix=\"custtest|test\"",
363 :cmdline => "", #defaults
383 :cmdline => "", #defaults
493 :cmdline => " --test_prefix=\"paratest\" --use_param_tests=1",
510 :cmdline
[all...]
/third_party/vk-gl-cts/execserver/tools/
H A 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/python/Lib/test/
H A Dtest_getopt.py98 cmdline = ['-a', '1', '-b', '--alpha=2', '--beta', '-a', '3', '-a',
101 opts, args = getopt.getopt(cmdline, 'a:b', ['alpha=', 'beta'])
109 self.assertError(getopt.getopt, cmdline, 'a:b', ['alpha', 'beta'])
113 cmdline = ['-a', 'arg1', '-b', '1', '--alpha', '--beta=2']
116 opts, args = getopt.gnu_getopt(cmdline, 'ab:', ['alpha', 'beta='])
127 opts, args = getopt.gnu_getopt(cmdline, '+ab:', ['alpha', 'beta='])
133 opts, args = getopt.gnu_getopt(cmdline, 'ab:', ['alpha', 'beta='])
/third_party/skia/tools/malisc/
H A 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/
H A Dwebbrowser.py175 cmdline = [self.name] + [arg.replace("%s", url)
179 p = subprocess.Popen(cmdline)
181 p = subprocess.Popen(cmdline, close_fds=True)
192 cmdline = [self.name] + [arg.replace("%s", url)
197 p = subprocess.Popen(cmdline)
199 p = subprocess.Popen(cmdline, close_fds=True,
231 cmdline = [self.name] + raise_opt + args
238 p = subprocess.Popen(cmdline, close_fds=True, stdin=inout,
591 for cmdline in userchoices:
592 if cmdline !
[all...]
/third_party/ltp/testcases/kernel/hotplug/memory_hotplug/
H A 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[cmdle in process_commands()
[all...]
/third_party/ltp/pan/
H A Dzoolib.c48 * expected line fromat: pid_t,tag,cmdline
70 /* cat_args(): helper function to make cmdline from argc, argv */
186 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, 20 in zt_add()
[all...]
/third_party/vk-gl-cts/external/vulkancts/vkscserver/
H A Dtests.cpp39 void registerOptions (de::cmdline::Parser& parser) in registerOptions()
41 using de::cmdline::Option; in registerOptions()
42 using de::cmdline::NamedValue; in registerOptions()
53 de::cmdline::CommandLine cmdLine; in main()
57 de::cmdline::Parser parser; in main()
/third_party/cups-filters/backend/
H A 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()

Completed in 13 milliseconds

1234567