BSD 4_3_Tahoe release
[unix-history] / usr / src / bin / csh / sh.init.c
index 4f99165..3d4ae9c 100644 (file)
@@ -1,4 +1,12 @@
-static char *sccsid = "@(#)sh.init.c 4.3 6/11/83";
+/*
+ * Copyright (c) 1980 Regents of the University of California.
+ * All rights reserved.  The Berkeley Software License Agreement
+ * specifies the terms and conditions for redistribution.
+ */
+
+#ifndef lint
+static char *sccsid = "@(#)sh.init.c   5.3 (Berkeley) 9/16/87";
+#endif
 
 #include "sh.local.h"
 
 
 #include "sh.local.h"
 
@@ -76,9 +84,7 @@ struct        biltins {
 } bfunc[] = {
        "@",            dolet,          0,      INF,
        "alias",        doalias,        0,      INF,
 } bfunc[] = {
        "@",            dolet,          0,      INF,
        "alias",        doalias,        0,      INF,
-#ifdef debug
        "alloc",        showall,        0,      1,
        "alloc",        showall,        0,      1,
-#endif
        "bg",           dobg,           0,      INF,
        "break",        dobreak,        0,      0,
        "breaksw",      doswbrk,        0,      0,
        "bg",           dobg,           0,      INF,
        "break",        dobreak,        0,      0,
        "breaksw",      doswbrk,        0,      0,
@@ -131,7 +137,7 @@ struct      biltins {
        "rehash",       dohash,         0,      0,
        "repeat",       dorepeat,       2,      INF,
        "set",          doset,          0,      INF,
        "rehash",       dohash,         0,      0,
        "repeat",       dorepeat,       2,      INF,
        "set",          doset,          0,      INF,
-       "setenv",       dosetenv,       2,      2,
+       "setenv",       dosetenv,       0,      2,
        "shift",        shift,          0,      1,
        "source",       dosource,       1,      2,
        "stop",         dostop,         1,      INF,
        "shift",        shift,          0,      1,
        "source",       dosource,       1,      2,
        "stop",         dostop,         1,      INF,
@@ -146,8 +152,8 @@ struct      biltins {
        "unsetenv",     dounsetenv,     1,      INF,
        "wait",         dowait,         0,      0,
        "while",        dowhile,        1,      INF,
        "unsetenv",     dounsetenv,     1,      INF,
        "wait",         dowait,         0,      0,
        "while",        dowhile,        1,      INF,
-       0,              0,              0,      0,
 };
 };
+int nbfunc = sizeof bfunc / sizeof *bfunc;
 
 #define        ZBREAK          0
 #define        ZBRKSW          1
 
 #define        ZBREAK          0
 #define        ZBRKSW          1
@@ -190,8 +196,8 @@ struct srch {
        "set",          ZSET,
        "switch",       ZSWITCH,
        "while",        ZWHILE,
        "set",          ZSET,
        "switch",       ZSWITCH,
        "while",        ZWHILE,
-       0,              0,
 };
 };
+int nsrchn = sizeof srchn / sizeof *srchn;
 
 struct mesg {
        char    *iname;
 
 struct mesg {
        char    *iname;
@@ -213,21 +219,21 @@ struct    mesg {
        "PIPE", "Broken pipe",
        "ALRM", "Alarm clock",
        "TERM", "Terminated",
        "PIPE", "Broken pipe",
        "ALRM", "Alarm clock",
        "TERM", "Terminated",
-       0,      "Signal 16",
-       "STOP", "Stopped (signal)",
-       "TSTP", "Stopped",
+       "URG",  "Urgent I/O condition",
+       "STOP", "Suspended (signal)",
+       "TSTP", "Suspended",
        "CONT", "Continued",
        "CHLD", "Child exited",
        "CONT", "Continued",
        "CHLD", "Child exited",
-       "TTIN", "Stopped (tty input)",
-       "TTOU", "Stopped (tty output)",
-       "TINT", "Tty input interrupt",
+       "TTIN", "Suspended (tty input)",
+       "TTOU", "Suspended (tty output)",
+       "IO",   "I/O possible",
        "XCPU", "Cputime limit exceeded",
        "XFSZ", "Filesize limit exceeded",
        "XCPU", "Cputime limit exceeded",
        "XFSZ", "Filesize limit exceeded",
-       0,      "Signal 26",
-       0,      "Signal 27",
-       0,      "Signal 28",
+       "VTALRM","Virtual timer expired",
+       "PROF", "Profiling timer expired",
+       "WINCH","Window size changed",
        0,      "Signal 29",
        0,      "Signal 29",
-       0,      "Signal 30",
-       0,      "Signal 31",
+       "USR1", "User defined signal 1",
+       "USR2", "User defined signal 2",
        0,      "Signal 32"
 };
        0,      "Signal 32"
 };