Lines Matching defs:cmds
80 struct cmds {
86 static struct cmds cmds[];
655 for(i=0; cmds[i].name != NULL; i++) {
656 if (cfg.mode == cmds[i].mode && strcmp(argv[0], cmds[i].name) == 0) {
657 if (argc < (cmds[i].args + 1)) {
658 printf("%s needs an argument\n", cmds[i].name);
661 (cmds[i].f)(&cfg, argv);
662 argc -= cmds[i].args;
663 argv += cmds[i].args;
667 if (cmds[i].name == NULL) {
694 static struct cmds cmds[] = {