Lines Matching refs:cmds
77 struct cmds { struct
83 static struct cmds cmds[]; variable
803 for(i=0; cmds[i].name != NULL; i++) { in main()
805 if (cfg.mode == cmds[i].mode && in main()
806 strcmp(argv[0], cmds[i].name) == 0) { in main()
807 if ((cmds[i].args != -1) && in main()
808 (argc < (cmds[i].args + 1))) { in main()
810 cmds[i].name, cmds[i].args, in main()
811 (cmds[i].args==1)?"":","); in main()
815 r = (cmds[i].f)(&cfg, argc, argv); in main()
825 r = cmds[i].args; in main()
832 if (cmds[i].name == NULL) { in main()
859 static struct cmds cmds[] = { variable