commands
for (i = 0; commands[i].cc_name != NULL; ++i)
if (strcmp(*argv, commands[i].cc_name) == 0)
if (commands[i].cc_name == NULL)
exit((*commands[i].cc_handler)(commands[i].cc_name, argc, argv));
for (i = 0; commands[i].cc_name != NULL; i++)
(void)fprintf(stderr, "\t%s%s\n", commands[i].cc_name,
commands[i].cc_args);
const struct changer_command commands[] = {
const struct commands *cp, *comp;
static const struct commands com[] = {
commands
| commands command
void commands __P((void));
commands();
const struct command *commands = NULL;
commands = &device_commands[i];
if (commands == NULL) {
commands = &bus_commands[i];
if (commands == NULL)
(*commands->cmd_func)(argc, argv);
for (i = 0; commands[i].cmd_name != NULL; i++)
if (strcmp(cmdname, commands[i].cmd_name) == 0)
if (commands[i].cmd_name == NULL)
(*commands[i].cmd_func)(fd, argc, argv);
for (i = 0; commands[i].cmd_name != NULL; i++)
(void)fprintf(stderr, " %s %s\n", commands[i].cmd_name,
commands[i].arg_names);
static struct command commands[] = {
static struct command commands[] = {
for (i = 0; commands[i].cmd_name != NULL; i++)
if (strcmp(name, commands[i].cmd_name) == 0)
if (commands[i].cmd_name == NULL)
return &commands[i];
for (i = 0; commands[i].cmd_name != NULL; i++)
fprintf(stderr, "\t%s %s\n", commands[i].cmd_name,
commands[i].arg_names);
for (i = 0; commands[i].cmd_name != NULL; i++)
if (strcmp(cmdname, commands[i].cmd_name) == 0)
if (commands[i].cmd_name == NULL)
if (commands[i].ioctl_cmd_name != NULL)
cmdname = commands[i].ioctl_cmd_name;
if (oargc != commands[i].min_args) {
"command: %s specified\n", commands[i].cmd_name);
(*commands[i].cmd_func)(argc, argv, task);
for (i = 0; commands[i].cmd_name != NULL; i++)
(void)fprintf(stderr, "\t%s\t%s\n", commands[i].cmd_name, commands[i].cmd_help);
static struct command commands[] = {
struct command *commands;
commands = bus_commands;
commands = device_commands;
for (i = 0; commands[i].cmd_name != NULL; i++)
if (strcmp(cmdname, commands[i].cmd_name) == 0)
if (commands[i].cmd_name == NULL)
commands == bus_commands ? "bus" : "device", cmdname);
(*commands[i].cmd_func)(argc, argv);
static struct bootmenu_command commands[] = {
for (i = 0; commands[i].c_name != NULL; i++) {
if (strcmp(cmd, commands[i].c_name) == 0) {
commands[i].c_fn(opt);
if (commands[i].c_name == NULL) {
const struct bootblk_command commands[] = {
const struct bootblk_command commands[] = {
const struct bootblk_command commands[] = {
extern const struct bootblk_command commands[];
for (i = 0; commands[i].c_name != NULL; i++) {
if (strcmp(arg, commands[i].c_name) == 0) {
(*commands[i].c_fn)(options);
const struct bootblk_command commands[] = {
extern struct bootblk_command commands[];
for (i = 0, cmdp = commands; (cmdp->c_name != NULL) && (cmdp->c_desc != NULL ); i++, cmdp = commands + i) {
for (i = 0, cmdp = commands; (cmdp->c_name != NULL) && (cmdp->c_desc != NULL ); i++, cmdp = commands + i) {
struct bootblk_command commands[] = {
struct bootblk_command commands[] = {
dbdma_start(dbdma_regmap_t *dmap, dbdma_command_t *commands)
unsigned long addr = vtophys((vaddr_t)commands);
panic("dbdma_start command structure not 16-byte aligned %08x %08x", (uint32_t)commands, (uint32_t)addr);
void dbdma_start(dbdma_regmap_t *channel, dbdma_command_t *commands);
uint8_t commands[HCI_COMMANDS_SIZE]; /* opcode bitmask */
memcpy(unit->hci_cmds, rp.commands, HCI_COMMANDS_SIZE);
const struct boot_command commands[] = {
for (n = 0; commands[n].c_name; n++) {
if (commands[n].c_help)
printf("%s\n", commands[n].c_help);
extern const struct boot_command commands[];
for (i = 0; commands[i].c_name != NULL; i++) {
if (strcmp(arg, commands[i].c_name) == 0) {
(*commands[i].c_fn)(options);
size_t ncmds = sizeof(commands) / sizeof(struct command_def);
struct command_def commands[] = {
if (strcmp(func, commands[i].name) != 0)
commands[i].func(nargs, args);
commands[i].func(nargs, args);
void commands(void);
commands();
commands();
Lst_Append(&endNode->commands, cmdStart);
for (ln = gn->commands.first; ln != NULL; ln = ln->next) {
!Lst_IsEmpty(&gn->commands);
for (ln = job->node->commands.first; ln != NULL; ln = ln->next) {
Lst_Append(&Targ_GetEndNode()->commands, expanded_cmd);
for (ln = job->node->commands.first; ln != NULL; ln = ln->next) {
if (!Lst_IsEmpty(&gn->commands))
if (defaultNode != NULL && !Lst_IsEmpty(&defaultNode->commands) &&
if (Lst_IsEmpty(&gn->commands)) {
if (!Lst_IsEmpty(&dotEnd->commands) ||
for (ln = gn->commands.first; ln != NULL; ln = ln->next) {
Lst_IsEmpty(&pgn->commands)) {
Lst_PrependAll(&pgn->commands, &cgn->commands);
Lst_AppendAll(&pgn->commands, &cgn->commands);
if (!Lst_IsEmpty(gn->commands) || Lst_IsEmpty(gn->children))
StringList commands;
cmdNode = gn->commands.first;
for (ln = gn->commands.first; ln != NULL; ln = ln->next) {
for (ln = gn->commands.first; ln != NULL; ln = ln->next)
if (Lst_IsEmpty(&gn->commands)) {
Lst_Append(&gn->commands, cmd);
if (!Lst_IsEmpty(&gn->commands))
if (sgn->type & OP_OPTIONAL && Lst_IsEmpty(&tgn->commands)) {
if (Lst_IsEmpty(&gn->commands))
Lst_Done(&gn->commands);
Lst_Init(&gn->commands);
if (!Lst_IsEmpty(&gn->commands) || !Lst_IsEmpty(&gn->children)) {
Lst_Init(&gn->commands);
Lst_Done(&gn->commands);
for (ln = gn->commands.first; ln != NULL; ln = ln->next) {
for (cmd = commands ; cmd->command != NULL; cmd++) {
for (cmd = commands ; cmd->command != NULL ; cmd++)
} commands[] = {
commands = parse_conf(conf, repd, reportid, ignore);
for (cmd = commands; cmd; cmd = cmd->next) {
freecommands(commands);
commands = cmds;
static struct command *commands;
for (i = 0; commands[i].cmd_name != NULL; i++)
if (strcmp(cmdname, commands[i].cmd_name) == 0)
if (commands[i].cmd_name == NULL)
pcifd = open(dvname, commands[i].open_flags);
(*commands[i].cmd_func)(argc, argv);
for (i = 0; commands[i].cmd_name != NULL; i++)
fprintf(stderr, "\t%s %s\n", commands[i].cmd_name,
commands[i].arg_names);
static const struct command commands[] = {
} commands[] = {
for (size_t i = 0; i < __arraycount(commands); i++) {
const struct command *cmd = &commands[i];