Home
last modified time | relevance | path

Searched refs:cmds (Results 1 – 25 of 145) sorted by relevance

123456

/openbsd-src/gnu/llvm/clang/bindings/python/tests/cindex/
H A Dtest_cdb.py48 cmds = cdb.getCompileCommands('/home/john.doe/MyProject/project.cpp')
49 self.assertNotEqual(len(cmds), 0)
55 cmds = cdb.getCompileCommands(str_to_path('/home/john.doe/MyProject/project.cpp'))
56 self.assertNotEqual(len(cmds), 0)
61 cmds = cdb.getAllCompileCommands()
62 self.assertEqual(len(cmds), 3)
79 for i in range(len(cmds)):
80 self.assertEqual(cmds[i].directory, expected[i]['wd'])
81 self.assertEqual(cmds[i].filename, expected[i]['file'])
82 for arg, exp in zip(cmds[i].arguments, expected[i]['line']):
[all …]
/openbsd-src/gnu/usr.bin/perl/t/win32/
H A Dsystem_tests91 for my $cmds (@commands) {
94 my @cmds = defined($cmds) ? (ref($cmds) ? @$cmds : $cmds) : ();
96 note "####### [@cmds]";
98 $cmds[$#cmds],
101 if (system(@cmds,@args) != 0) {
106 system(@cmds,@args);
111 ? qq["$_"] : $_ } @cmds, @args;
123 note "# pipe [".join(";", @cmds, @args). "]";
124 if (open my $io, "-|", @cmds, @args) {
129 print STDERR "Failed pipe open [",join(";", @cmds, @args),"]: $!\n";
/openbsd-src/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/
H A Dsplit_command.t33 my @cmds = $mm->split_command($echo, @test_args);
34 isnt( @cmds, 0 );
36 my @results = _run(@cmds);
42 @cmds = $mm->split_command($even_args, %test_args);
43 isnt( @cmds, 0 );
45 @results = _run(@cmds);
52 my @cmds = @_;
54 s{\$\(ABSPERLRUN\)}{$perl} foreach @cmds;
56 s{-\n}{} foreach @cmds
59 s{\\\n}{} foreach @cmds;
[all …]
/openbsd-src/gnu/usr.bin/perl/lib/
H A Dperl5db.t239 my $cmds = $args->{cmds};
241 if (ref($cmds) ne 'ARRAY') {
242 die "cmds must be an array of commands.";
245 $self->_cmds($cmds);
373 cmds =>
384 cmds =>
420 =item cmds
513 cmds =>
542 cmds
[all...]
/openbsd-src/sys/dev/pci/drm/i915/gt/
H A Dgen7_renderclear.c383 struct batch_chunk cmds, state; in emit_batch() local
387 batch_init(&cmds, vma, start, 0, bv->state_start); in emit_batch()
397 gen7_emit_pipeline_flush(&cmds); in emit_batch()
398 gen7_emit_pipeline_invalidate(&cmds); in emit_batch()
399 batch_add(&cmds, MI_LOAD_REGISTER_IMM(2)); in emit_batch()
400 batch_add(&cmds, i915_mmio_reg_offset(CACHE_MODE_0_GEN7)); in emit_batch()
401 batch_add(&cmds, 0xffff0000 | in emit_batch()
405 batch_add(&cmds, i915_mmio_reg_offset(CACHE_MODE_1)); in emit_batch()
406 batch_add(&cmds, 0xffff0000 | PIXEL_SUBSPAN_COLLECT_OPT_DISABLE); in emit_batch()
407 gen7_emit_pipeline_invalidate(&cmds); in emit_batch()
[all …]
/openbsd-src/usr.bin/vi/ex/
H A Dex_usage.c70 for (cp = cmds; cp->name != NULL && in ex_usage()
86 if (cp != &cmds[C_VISUAL_EX] && in ex_usage()
87 cp != &cmds[C_VISUAL_VI]) in ex_usage()
89 if (cp == &cmds[C_VISUAL_EX]) in ex_usage()
90 cp = &cmds[C_VISUAL_VI]; in ex_usage()
92 cp = &cmds[C_VISUAL_EX]; in ex_usage()
98 for (cp = cmds; cp->name != NULL && !INTERRUPTED(sp); ++cp) in ex_usage()
101 cp == &cmds[C_SCROLL] ? "^D" : cp->name, in ex_usage()
H A Dex.c416 t = cmds[C_DELETE].name; *s == *t; ++s, ++t); in ex_cmd()
422 ecp->rcmd = cmds[C_DELETE]; in ex_cmd()
458 ecp->cmd = &cmds[C_K]; in ex_cmd()
470 ecp->rcmd = cmds[C_SUBSTITUTE]; in ex_cmd()
489 skip_srch: if (ecp->cmd == &cmds[C_VISUAL_EX] && F_ISSET(sp, SC_VI)) in ex_cmd()
490 ecp->cmd = &cmds[C_VISUAL_VI]; in ex_cmd()
501 (ecp->cmd == &cmds[C_PRINT] || in ex_cmd()
502 ecp->cmd == &cmds[C_PRESERVE])) in ex_cmd()
520 if ((ecp->cmd == &cmds[C_SHIFTL] && *p == '<') || in ex_cmd()
521 (ecp->cmd == &cmds[C_SHIFTR] && *p == '>')) { in ex_cmd()
[all …]
/openbsd-src/usr.bin/bgplg/
H A Dbgplg.c47 static struct cmd cmds[] = CMDS; variable
290 for (i = 0; cmds[i].name != NULL; i++) { in main()
291 if (!lg_checkperm(&cmds[i])) in main()
294 if (cmd != NULL && strcmp(cmd, cmds[i].name) == 0) in main()
297 cmds[i].name, cmds[i].name); in main()
300 cmds[i].name, cmds[i].name); in main()
333 for (i = 0; cmds[i].name != NULL; i++) { in main()
334 if (strcmp(cmd, cmds[i].name) == 0) { in main()
335 cmdp = &cmds[i]; in main()
355 ret = cmdp->func(cmds, argv); in main()
H A Dmisc.c60 lg_help(struct cmd *cmds, char **argv) in lg_help() argument
65 for (i = 0; cmds[i].name != NULL; i++) { in lg_help()
66 if (!lg_checkperm(&cmds[i])) in lg_help()
69 printf(" %s", cmds[i].name); in lg_help()
70 if (cmds[i].minargs > 0) in lg_help()
72 else if (cmds[i].maxargs > 0) in lg_help()
H A Dbgplgsh.c46 static struct cmd cmds[] = CMDS; variable
202 while ((name = cmds[lg_complidx].name) != NULL) { in lg_completion()
232 lg_help(cmds, NULL); in main()
247 for (i = 0; cmds[i].name != NULL; i++) { in main()
248 ret = lg_checkcmd(ncmd, argp, &v, &cmds[i]); in main()
250 cmd = &cmds[i]; in main()
260 cmd->func(cmds, argp); in main()
/openbsd-src/gnu/usr.bin/perl/dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/Windows/
H A DGCC.pm
H A DMSVC.pm80 my @cmds; # Stores the series of commands needed to build the module.
82 push @cmds, [ grep {defined && length} (
98 push @cmds, [
102 return @cmds;
/openbsd-src/usr.bin/tmux/
H A Dcmd-parse.y655 struct cmd_parse_commands *cmds; in cmd_parse_free_commands()
657 cmds = xmalloc(sizeof *cmds); in cmd_parse_free_commands()
658 TAILQ_INIT(cmds); in cmd_parse_free_commands()
659 return (cmds);
663 cmd_parse_free_commands(struct cmd_parse_commands *cmds) in cmd_parse_run_parser()
667 TAILQ_FOREACH_SAFE(cmd, cmds, entry, cmd1) { in cmd_parse_run_parser()
668 TAILQ_REMOVE(cmds, cmd, entry); in cmd_parse_run_parser()
671 free(cmds); in cmd_parse_run_parser()
724 cmd_parse_log_commands(struct cmd_parse_commands *cmds, cons in cmd_parse_log_commands()
641 struct cmd_parse_commands *cmds; cmd_parse_new_commands() local
649 cmd_parse_free_commands(struct cmd_parse_commands * cmds) cmd_parse_free_commands() argument
710 cmd_parse_log_commands(struct cmd_parse_commands * cmds,const char * prefix) cmd_parse_log_commands() argument
748 struct cmd_parse_commands *cmds; cmd_parse_expand_alias() local
856 cmd_parse_build_commands(struct cmd_parse_commands * cmds,struct cmd_parse_input * pi,struct cmd_parse_result * pr) cmd_parse_build_commands() argument
922 struct cmd_parse_commands *cmds; cmd_parse_from_file() local
1015 struct cmd_parse_commands *cmds; cmd_parse_from_buffer() local
1047 struct cmd_parse_commands *cmds; cmd_parse_from_arguments() local
[all...]
/openbsd-src/usr.bin/usbhidaction/
H A Dusbhidaction.c195 struct command *cmds = in main() local
197 if (cmds) { in main()
199 commands = cmds; in main()
237 struct command *cmd, *cmds; in parse_conf() local
246 cmds = NULL; in parse_conf()
264 freecommands(cmds); in parse_conf()
276 cmd->next = cmds; in parse_conf()
277 cmds = cmd; in parse_conf()
290 freecommands(cmds); in parse_conf()
362 cmds = cmd->next; in parse_conf()
[all …]
/openbsd-src/sys/dev/pci/drm/apple/
H A Dafk.c347 if (service->cmds[idx].done) { in afk_recv_handle_reply()
355 if (tag != service->cmds[idx].tag) { in afk_recv_handle_reply()
358 ep->endpoint, channel, tag, service->cmds[idx].tag); in afk_recv_handle_reply()
363 service->cmds[idx].done = true; in afk_recv_handle_reply()
364 service->cmds[idx].retcode = le32_to_cpu(cmd->retcode); in afk_recv_handle_reply()
365 if (service->cmds[idx].free_on_ack) { in afk_recv_handle_reply()
367 rxbuf = service->cmds[idx].rxbuf; in afk_recv_handle_reply()
368 txbuf = service->cmds[idx].txbuf; in afk_recv_handle_reply()
369 rxlen = service->cmds[idx].rxlen; in afk_recv_handle_reply()
370 txlen = service->cmds[idx].txlen; in afk_recv_handle_reply()
[all …]
/openbsd-src/usr.sbin/bgplgd/
H A Dbgplgd.c38 } cmds[] = { variable
58 for (i = 0; cmds[i].path != NULL; i++) { in command_from_path()
59 if (strcmp(cmds[i].path, path) == 0) { in command_from_path()
60 ctx->command = &cmds[i]; in command_from_path()
61 ctx->qs_mask = cmds[i].qs_mask; in command_from_path()
/openbsd-src/gnu/usr.bin/binutils/gdb/mi/
H A DChangeLog-1999-200351 * mi-cmds.h (struct mi_cli): Define.
53 * mi-cmds.c (mi_cmds): Update table.
71 * mi-cmds.c (mi_cmds): Add "-target-disconnect".
104 * mi-symbol-cmds.c: Rename "mi-cmd-symbol.c", avoid 8.3 problem.
123 * mi-cmds.h (mi_cmd_symbol_list_lines): Add declaration.
124 * mi-cmds.c (mi_cmds): Add entry for new MI command.
134 * mi-cmds.c (mi_cmds): Added -file-list-exec-source-file command.
135 * mi-cmds.h (mi_cmd_file_list_exec_source_file): Declare.
205 * mi-cmds.h (mi_cmd_interpreter_exec): Declare.
208 * mi-cmds.c: Add `interpreter-exec' command.
[all …]
/openbsd-src/sys/dev/pci/drm/i915/gt/uc/
H A Dintel_guc_ct.c148 u32 *cmds, u32 size_in_bytes, u32 resv_space) in guc_ct_buffer_init() argument
153 ctb->cmds = cmds; in guc_ct_buffer_init()
238 u32 *cmds; in intel_guc_ct_init() local
259 cmds = blob + 2 * CTB_DESC_SIZE; in intel_guc_ct_init()
263 ptrdiff(desc, blob), ptrdiff(cmds, blob), cmds_size, in intel_guc_ct_init()
266 guc_ct_buffer_init(&ct->ctbs.send, desc, cmds, cmds_size, resv_space); in intel_guc_ct_init()
270 cmds = blob + 2 * CTB_DESC_SIZE + CTB_H2G_BUFFER_SIZE; in intel_guc_ct_init()
274 ptrdiff(desc, blob), ptrdiff(cmds, blob), cmds_size, in intel_guc_ct_init()
277 guc_ct_buffer_init(&ct->ctbs.recv, desc, cmds, cmds_size, resv_space); in intel_guc_ct_init()
306 u32 base, desc, cmds, size; in intel_guc_ct_enable() local
[all …]
/openbsd-src/usr.bin/mg/
H A Dsearch.c48 static struct srchcom cmds[NSRCH]; variable
186 cmds[cip].s_code = SRCH_NOPR; in isearch()
407 cmds[cip].s_code = cmd; in is_cpush()
418 cmds[ctp].s_code = SRCH_NOPR; in is_lpush()
419 cmds[ctp].s_doto = curwp->w_doto; in is_lpush()
420 cmds[ctp].s_dotp = curwp->w_dotp; in is_lpush()
421 cmds[ctp].s_dotline = curwp->w_dotline; in is_lpush()
427 if (cmds[cip].s_code != SRCH_NOPR) { in is_pop()
428 curwp->w_doto = cmds[cip].s_doto; in is_pop()
429 curwp->w_dotp = cmds[cip].s_dotp; in is_pop()
[all …]
/openbsd-src/gnu/llvm/lld/MachO/
H A DInputFiles.h327 std::vector<const CommandType *> cmds; in findCommands() local
335 cmds.push_back(cmd); in findCommands()
336 if (cmds.size() == maxCommands) in findCommands()
337 return cmds; in findCommands()
341 return cmds; in findCommands()
349 std::vector<const CommandType *> cmds = in findCommand() local
351 return cmds.size() ? cmds[0] : nullptr; in findCommand()
/openbsd-src/lib/libedit/
H A Dparse.c60 } cmds[] = { variable
122 for (i = 0; cmds[i].name != NULL; i++) in el_wparse()
123 if (wcscmp(cmds[i].name, ptr) == 0) { in el_wparse()
124 i = (*cmds[i].func) (el, argc, argv); in el_wparse()
/openbsd-src/gnu/usr.bin/binutils/gdb/cli/
H A Dcli-script.c1023 copy_command_lines (struct command_line *cmds) in copy_command_lines() argument
1027 if (cmds) in copy_command_lines()
1031 result->next = copy_command_lines (cmds->next); in copy_command_lines()
1032 result->line = xstrdup (cmds->line); in copy_command_lines()
1033 result->control_type = cmds->control_type; in copy_command_lines()
1034 result->body_count = cmds->body_count; in copy_command_lines()
1035 if (cmds->body_count > 0) in copy_command_lines()
1040 xmalloc (sizeof (struct command_line *) * cmds->body_count); in copy_command_lines()
1042 for (i = 0; i < cmds->body_count; i++) in copy_command_lines()
1043 result->body_list[i] = copy_command_lines (cmds->body_list[i]); in copy_command_lines()
[all …]
/openbsd-src/sys/dev/wscons/
H A Dwstpad.c470 wstpad_scroll(struct wstpad *tp, int dx, int dy, int mag, u_int *cmds) in wstpad_scroll() argument
501 *cmds |= 1 << VSCROLL; in wstpad_scroll()
517 *cmds |= 1 << HSCROLL; in wstpad_scroll()
523 wstpad_f2scroll(struct wsmouseinput *input, u_int *cmds) in wstpad_f2scroll() argument
563 magnitude(input, dx, dy), cmds); in wstpad_f2scroll()
570 wstpad_edgescroll(struct wsmouseinput *input, u_int *cmds) in wstpad_edgescroll() argument
589 wstpad_scroll(tp, dx, dy, magnitude(input, dx, dy), cmds); in wstpad_edgescroll()
672 wstpad_softbuttons(struct wsmouseinput *input, u_int *cmds, int hdlr) in wstpad_softbuttons() argument
678 *cmds |= 1 << SOFTBUTTON_UP; in wstpad_softbuttons()
686 *cmds |= 1 << SOFTBUTTON_DOWN; in wstpad_softbuttons()
[all …]
/openbsd-src/gnu/usr.bin/perl/ext/SDBM_File/
H A Ddbu.c36 static cmd cmds[] = { variable
57 #define CTABSIZ (sizeof (cmds)/sizeof (cmd))
199 fprintf(stderr, "%-8s%c", cmds[i].sname, in badk()
212 for (p = cmds; i--; p++) in parse()
/openbsd-src/usr.sbin/user/
H A Dmain.c51 static cmd_t cmds[] = { variable
80 for (cmdp = cmds ; cmdp->c_wc > 0 ; cmdp++) { in main()

123456