Lines Matching defs:cmds
164 static const struct CMD cmds[] = {
1143 for (i = 0; cmds[i].c != NULL; i++) {
1144 if (strcasecmp(cmds[i].c, argv[0]) == 0)
1147 cmdnum = cmds[i].n;
1148 cmd = cmds[i].c;
1609 list = xcalloc((sizeof(cmds) / sizeof(*cmds)) + 1, sizeof(char *));
1613 for (y = 0; cmds[y].c; y++)
1614 list[count++] = xstrdup(cmds[y].c);
1627 for (y = 0; cmds[y].c; y++) {
1628 if (!strncasecmp(cmd, cmds[y].c, cmdlen))
1629 list[count++] = xstrdup(cmds[y].c);
1681 for (i = 0; cmds[i].c; i++) {
1682 if (!strncasecmp(cmd, cmds[i].c, strlen(cmds[i].c)))
1683 return cmds[i].t;