summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr/lpc/cmdtab.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/lpr/lpc/cmdtab.c')
-rw-r--r--usr.sbin/lpr/lpc/cmdtab.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/usr.sbin/lpr/lpc/cmdtab.c b/usr.sbin/lpr/lpc/cmdtab.c
index b27c312..acae213 100644
--- a/usr.sbin/lpr/lpc/cmdtab.c
+++ b/usr.sbin/lpr/lpc/cmdtab.c
@@ -65,22 +65,29 @@ char uphelp[] = "enable everything and restart spooling daemon";
#define PR 1 /* a privileged command */
struct cmd cmdtab[] = {
- { "abort", aborthelp, PR, 0, doabort },
+ { "abort", aborthelp, PR, 0, abort_q },
{ "clean", cleanhelp, PR, init_clean, clean_q },
- { "enable", enablehelp, PR, 0, enable },
+ { "enable", enablehelp, PR, 0, enable_q },
{ "exit", quithelp, 0, quit, 0 },
- { "disable", disablehelp, PR, 0, disable },
+ { "disable", disablehelp, PR, 0, disable_q },
{ "down", downhelp, PR, down, 0 },
{ "help", helphelp, 0, help, 0 },
{ "quit", quithelp, 0, quit, 0 },
- { "restart", restarthelp, 0, 0, restart },
- { "start", starthelp, PR, 0, startcmd },
+ { "restart", restarthelp, 0, 0, restart_q },
+ { "start", starthelp, PR, 0, start_q },
{ "status", statushelp, 0, 0, status },
- { "stop", stophelp, PR, 0, stop },
+ { "stop", stophelp, PR, 0, stop_q },
{ "tclean", tcleanhelp, 0, init_tclean, clean_q },
{ "topq", topqhelp, PR, topq, 0 },
- { "up", uphelp, PR, 0, up },
+ { "up", uphelp, PR, 0, up_q },
{ "?", helphelp, 0, help, 0 },
+ { "xabort", aborthelp, PR, 0, doabort },
+ { "xenable", enablehelp, PR, 0, enable },
+ { "xdisable", disablehelp, PR, 0, disable },
+ { "xrestart", restarthelp, 0, 0, restart },
+ { "xstart", starthelp, PR, 0, startcmd },
+ { "xstop", stophelp, PR, 0, stop },
+ { "xup", uphelp, PR, 0, up },
{ 0, 0, 0, 0, 0},
};
OpenPOWER on IntegriCloud