Annotation of 42BSD/usr.lib/lpr/cmdtab.c, revision 1.1

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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.