Annotation of 43BSD/etc/timed/cmdtab.c, revision 1.1

1.1     ! root        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
        !             8: static char sccsid[] = "@(#)cmdtab.c   2.3 (Berkeley) 5/28/86";
        !             9: #endif not lint
        !            10: 
        !            11: #include "timedc.h"
        !            12: 
        !            13: int    clockdiff(), help(), msite(), quit(), testing(), tracing();
        !            14: 
        !            15: char   clockdiffhelp[] =       "measures clock differences between machines";
        !            16: char   helphelp[] =            "gets help on commands";
        !            17: char   msitehelp[] =           "finds location of master";
        !            18: char   quithelp[] =            "exits timedc";
        !            19: char   testinghelp[] =         "causes election timers to expire";
        !            20: char   tracinghelp[] =         "turns tracing on or off";
        !            21: 
        !            22: struct cmd cmdtab[] = {
        !            23:        { "clockdiff",  clockdiffhelp,  clockdiff,      0 },
        !            24:        { "election",   testinghelp,    testing,        1 },
        !            25:        { "help",       helphelp,       help,           0 },
        !            26:        { "msite",      msitehelp,      msite,          0 },
        !            27:        { "quit",       quithelp,       quit,           0 },
        !            28:        { "trace",      tracinghelp,    tracing,        1 },
        !            29:        { "?",          helphelp,       help,           0 },
        !            30: };
        !            31: 
        !            32: 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.