1*12383Sralph #ifndef lint 2*12383Sralph static char sccsid[] = "@(#)cmdtab.c 4.1 (Berkeley) 05/11/83"; 3*12383Sralph #endif 4*12383Sralph 5*12383Sralph /* 6*12383Sralph * lpc -- command tables 7*12383Sralph */ 8*12383Sralph 9*12383Sralph #include "lpc.h" 10*12383Sralph 11*12383Sralph int abort(), clean(), enable(), disable(), help(); 12*12383Sralph int quit(), restart(), start(), status(), stop(); 13*12383Sralph 14*12383Sralph char aborthelp[] = "terminate a spooling daemon immediately and disable printing"; 15*12383Sralph char cleanhelp[] = "remove cruft files from a queue"; 16*12383Sralph char enablehelp[] = "turn a spooling queue on"; 17*12383Sralph char disablehelp[] = "turn a spooling queue off"; 18*12383Sralph char helphelp[] = "get help on commands"; 19*12383Sralph char quithelp[] = "exit lpc"; 20*12383Sralph char restarthelp[] = "restart a spooling daemon that has died"; 21*12383Sralph char starthelp[] = "enable printing and start a spooling daemon"; 22*12383Sralph char statushelp[] = "show status of daemon"; 23*12383Sralph char stophelp[] = "stop a spooling daemon after current job completes and disable printing"; 24*12383Sralph 25*12383Sralph struct cmd cmdtab[] = { 26*12383Sralph { "abort", aborthelp, abort, 1 }, 27*12383Sralph { "clean", cleanhelp, clean, 1 }, 28*12383Sralph { "enable", enablehelp, enable, 1 }, 29*12383Sralph { "exit", quithelp, quit, 0 }, 30*12383Sralph { "disable", disablehelp, disable, 1 }, 31*12383Sralph { "help", helphelp, help, 0 }, 32*12383Sralph { "quit", quithelp, quit, 0 }, 33*12383Sralph { "restart", restarthelp, restart, 0 }, 34*12383Sralph { "start", starthelp, start, 1 }, 35*12383Sralph { "status", statushelp, status, 0 }, 36*12383Sralph { "stop", stophelp, stop, 1 }, 37*12383Sralph { "?", helphelp, help, 0 }, 38*12383Sralph { 0 }, 39*12383Sralph }; 40*12383Sralph 41*12383Sralph int NCMDS = sizeof (cmdtab) / sizeof (cmdtab[0]); 42