Annotation of xinu/h/cmd.h, revision 1.1

1.1     ! root        1: /* cmd.h */
        !             2: 
        !             3: /* Declarations for all commands known by the shell */
        !             4: 
        !             5: struct cmdent  {                       /* entry in command table       */
        !             6:        char    *cmdnam;                /* name of command              */
        !             7:        Bool    cbuiltin;               /* Is this a builtin command?   */
        !             8:        int     (*cproc)();             /* procedure that implements cmd*/
        !             9: };
        !            10: 
        !            11: extern int
        !            12:        x_bpool(),      x_cat(),        x_close(),      x_cp(),
        !            13:        x_creat(),      x_date(),       x_devs(),       x_dg(),
        !            14:        x_echo(),       x_exit(),       x_help(),       x_kill(),
        !            15:        x_mem(),        x_mount(),      x_mv(),         x_net(),
        !            16:        x_ps(),         x_reboot(),     x_rf(),         x_rls(),
        !            17:        x_rm(),         x_routes(),     x_sleep(),      x_snap(),
        !            18:        x_unmou(),      x_uptime(),     x_who();
        !            19: 
        !            20: /* Commands:    name           Builtin?        procedure       */
        !            21: 
        !            22: #define        CMDS    "bpool",        FALSE,          x_bpool,        \
        !            23:                "cat",          FALSE,          x_cat,          \
        !            24:                "close",        FALSE,          x_close,        \
        !            25:                "cp",           FALSE,          x_cp,           \
        !            26:                "create",       FALSE,          x_creat,        \
        !            27:                "date",         FALSE,          x_date,         \
        !            28:                "devs",         FALSE,          x_devs,         \
        !            29:                "dg",           FALSE,          x_dg,           \
        !            30:                "echo",         FALSE,          x_echo,         \
        !            31:                "exit",         TRUE,           x_exit,         \
        !            32:                "help",         FALSE,          x_help,         \
        !            33:                "kill",         TRUE,           x_kill,         \
        !            34:                "logout",       TRUE,           x_exit,         \
        !            35:                "mem",          FALSE,          x_mem,          \
        !            36:                "mount",        FALSE,          x_mount,        \
        !            37:                "mv",           FALSE,          x_mv,           \
        !            38:                "netstat",      FALSE,          x_net,          \
        !            39:                "ps",           FALSE,          x_ps,           \
        !            40:                "reboot",       TRUE,           x_reboot,       \
        !            41:                "rf",           FALSE,          x_rf,           \
        !            42:                "rls",          FALSE,          x_rls,          \
        !            43:                "rm",           FALSE,          x_rm,           \
        !            44:                "routes",       FALSE,          x_routes,       \
        !            45:                "ruptime",      FALSE,          x_uptime,       \
        !            46:                "sleep",        FALSE,          x_sleep,        \
        !            47:                "snap",         FALSE,          x_snap,         \
        !            48:                "time",         FALSE,          x_date,         \
        !            49:                "unmount",      FALSE,          x_unmou,        \
        !            50:                "uptime",       FALSE,          x_uptime,       \
        !            51:                "who",          FALSE,          x_who,          \
        !            52:                "?",            FALSE,          x_help
        !            53: 
        !            54: extern struct  cmdent  cmds[];

unix.superglobalmegacorp.com

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