Lines Matching defs:cmds
1029 FindCommand(struct cmdtab const *cmds, const char *str, int *pmatch)
1038 while (cmds->func) {
1039 if (cmds->name && strncasecmp(str, cmds->name, len) == 0) {
1040 if (cmds->name[len] == '\0') {
1042 return cmds;
1045 found = cmds;
1046 } else if (cmds->alias && strncasecmp(str, cmds->alias, len) == 0) {
1047 if (cmds->alias[len] == '\0') {
1049 return cmds;
1052 found = cmds;
1054 cmds++;
1080 FindExec(struct bundle *bundle, struct cmdtab const *cmds, int argc, int argn,
1089 cmd = FindCommand(cmds, argv[argn], &nmatch);
1107 arg.cmdtab = cmds;