1: #include "hd.h"
   2: #include "command.h"
   3: 
   4: extern date(), showerror(), showgrep(), file(), home(), grep(),
   5:     wmake(), fmake(), callshell(), longlist(), remove(),
   6:     create(), exec(), display(), options();
   7: 
   8: struct classstruct classtab[] = {
   9:     "date",     date,       0, 1,
  10:     "showerror",    showerror,  0, 1,
  11:     "showgrep", showgrep,   0, 1,
  12:     "file",     file,       -1, 1,
  13:     "home",     home,       0, 1,
  14:     "grep",     grep,       0, 1,
  15:     "wmake",    wmake,      0, 1,
  16:     "fmake",    fmake,      0, 1,
  17:     "exec",     exec,       -2, 1,
  18:     "shell",    callshell,  -1, 1,
  19:     "display",  display,    -1, 1,
  20:     "create",   create,     0, 1,
  21:     "longlist", longlist,   0, 0,
  22:     "remove",   remove,     0, 0,
  23:     "options",  options,    -1, 1,
  24:     "null",     0,      0, 0,
  25:     "",     0,      0, 0
  26: };
  27: 
  28: static char *whoargv[]  = {"/usr/ucb/w", 0};
  29: static char *yankargv[] = {"/usr/local/yank", 0};
  30: static char *rootargv[] = {"/", 0};
  31: static char *helpargv[] = {"/usr/lib/vsh/genhelp", 0};
  32: static char *psargv[] = {"/bin/ps", 0};
  33: static char *bshargv[] = {"/bin/sh", 0};
  34: 
  35: char *cnull = 0;
  36: 
  37: struct cmdstruct cmdtab[] = {
  38:     'C',    create,     &cnull, 1,
  39:     'D',    date,       &cnull, 1,
  40:     'E',    showerror,  &cnull, 1,
  41:     'F',    file,       &cnull, 1,
  42:     'G',    grep,       &cnull, 1,
  43:     'I',    display,    &cnull, 1,
  44:     'L',    longlist,   &cnull, 0,
  45:     'M',    wmake,      &cnull, 1,
  46:     'N',    fmake,      &cnull, 1,
  47:     'O',    options,    &cnull, 1,
  48:     'P',    exec,       psargv, 1,
  49:     'R',    remove,     &cnull, 0,
  50:     'S',    showgrep,   &cnull, 1,
  51:     'W',    exec,       whoargv, 1,
  52:     'Y',    exec,       yankargv, 1,
  53:     '^',    home,       &cnull, 1,
  54:     ':',    home,       &cnull, 1,
  55:     '!',    callshell,  &cnull, 1,
  56:     '%',    callshell,  &cnull, 1,
  57:     '$',    exec,       bshargv, 1,
  58:     '/',    file,       rootargv, 1,
  59:     '?',    display,    helpargv, 1,
  60: 
  61:     'A',0,0,0,'B',0,0,0,
  62:     'H',0,0,0,'J',0,0,0,'K',0,0,0,
  63:     'O',0,0,0,'Q',0,0,0,
  64:     'T',0,0,0,'U',0,0,0,'V',0,0,0,'X',0,0,0,
  65:     'Z',0,0,0,'"',0,0,0,'#',0,0,0,
  66:     '&',0,0,0,'(',0,0,0,')',0,0,0,'\'',0,0,0,
  67:     '*',0,0,0,'=',0,0,0,'{',0,0,0,'}',0,0,0,'[',0,0,0,']',0,0,0,
  68:     '~',0,0,0,',',0,0,0,'.',0,0,0,
  69: 
  70:     CMD_DATE, date,     &cnull, 1,
  71:     CMD_SE, showerror,  &cnull, 1,
  72:     CMD_SG, showgrep,   &cnull, 1,
  73:     0,0,0,0
  74: };
  75: 
  76: struct parmstruct parmtab[] = {
  77:     "editor", "/bin/vi",
  78:     "make", "/bin/make",
  79:     "grep", "/usr/ucb/grep",
  80:     "rmhelp", "/usr/lib/vsh/rmhelp",
  81:     "showhelp", "/usr/lib/vsh/showhelp",
  82:     "makerror", ".makerror",
  83:     "grepout", ".grepout",
  84:     0, 0
  85: };

Defined variables

bshargv defined in line 33; used 1 times
  • in line 57
classtab defined in line 8; used 1 times
cmdtab defined in line 37; used 1 times
cnull defined in line 35; used 19 times
helpargv defined in line 31; used 1 times
  • in line 59
parmtab defined in line 76; used 8 times
psargv defined in line 32; used 1 times
  • in line 48
rootargv defined in line 30; used 1 times
  • in line 58
whoargv defined in line 28; used 1 times
  • in line 51
yankargv defined in line 29; used 1 times
  • in line 52
Last modified: 1983-07-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 838
Valid CSS Valid XHTML 1.0 Strict