source: trunk/athena/bin/lpr/cmdtab.c @ 12267

Revision 12267, 2.1 KB checked in by rbasch, 26 years ago (diff)
Portability mods for IRIX 6.5.
  • Property svn:executable set to *
Line 
1/*
2 * Copyright (c) 1983 Regents of the University of California.
3 * All rights reserved.  The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 */
6
7#ifndef lint
8static char sccsid[] = "@(#)cmdtab.c    5.1 (Berkeley) 6/6/85";
9#endif not lint
10
11/*
12 * lpc -- command tables
13 */
14
15#include "lpc.h"
16
17int     cmd_abort(), clean(), enable(), disable(), down(), flushq_(), help();
18int     quit(), restart(), start(), status(), stop(), topq(), up(), lookat();
19
20char    aborthelp[] =   "terminate a spooling daemon immediately and disable printing";
21char    cleanhelp[] =   "remove cruft files that do not form a complete job";
22char    enablehelp[] =  "turn a spooling queue on";
23char    disablehelp[] = "turn a spooling queue off";
24char    downhelp[] =    "do a 'stop' followed by 'disable' and put a message in status";
25char    helphelp[] =    "get help on commands";
26char    quithelp[] =    "exit lpc";
27char    restarthelp[] = "kill (if possible) and restart a spooling daemon";
28char    starthelp[] =   "enable printing and start a spooling daemon";
29char    statushelp[] =  "show status of daemon and queue";
30char    stophelp[] =    "stop a spooling daemon after current job completes and disable printing";
31char    topqhelp[] =    "put job at top of printer queue";
32char    uphelp[] =      "enable everything and restart spooling daemon";
33char    flushhelp[] =   "remove all data, control, and temporary files";
34char    lookathelp[]=   "examine printer queue using /usr/ucb/lpq";
35struct cmd cmdtab[] = {
36        { "abort",      aborthelp,      cmd_abort,      1 },
37        { "clean",      cleanhelp,      clean,          1 },
38        { "enable",     enablehelp,     enable,         1 },
39        { "exit",       quithelp,       quit,           0 },
40        { "disable",    disablehelp,    disable,        1 },
41        { "down",       downhelp,       down,           1 },
42        { "flush",      flushhelp,      flushq_,         1 },
43        { "help",       helphelp,       help,           0 },
44        { "lookat",     lookathelp,     lookat,         0 },
45        { "quit",       quithelp,       quit,           0 },
46        { "restart",    restarthelp,    restart,        0 },
47        { "start",      starthelp,      start,          1 },
48        { "status",     statushelp,     status,         0 },
49        { "stop",       stophelp,       stop,           1 },
50        { "topq",       topqhelp,       topq,           1 },
51        { "up",         uphelp,         up,             1 },
52        { "?",          helphelp,       help,           0 },
53        { 0 },
54};
55
56int     NCMDS = sizeof (cmdtab) / sizeof (cmdtab[0]);
Note: See TracBrowser for help on using the repository browser.