Lines Matching refs:commands
530 static sa_command_t commands[] = {
544 for (i = 0; commands[i].cmdname != NULL; i++) {
545 if (!(commands[i].flags & (CMD_ALIAS|CMD_NODISPLAY)))
547 sc_get_usage((sc_usage_t)commands[i].cmdidx));
558 for (i = 0; commands[i].cmdname != NULL; i++) {
559 if (strncmp(cmd, commands[i].cmdname, len) == 0)
560 return (&commands[i]);
578 * sufficient to let the commands look it up if needed since
579 * not all commands do proto specific things
581 * Known sub-commands are handled at this level. An unknown
584 * of the common sub-commands is well defined.