Lines Matching defs:cmds
78 struct cmds {
84 static struct cmds cmds[];
649 for(i=0; cmds[i].name != NULL; i++) {
650 if (cfg.mode == cmds[i].mode && strcmp(argv[0], cmds[i].name) == 0) {
651 if (argc < (cmds[i].args + 1)) {
652 printf("%s needs an argument\n", cmds[i].name);
655 (cmds[i].f)(&cfg, argv);
656 argc -= cmds[i].args;
657 argv += cmds[i].args;
661 if (cmds[i].name == NULL) {
688 static struct cmds cmds[] = {