BSD 4_3_Reno release
[unix-history] / usr / src / bin / sh / msg.c
index 346eb45..fd0b42f 100644 (file)
@@ -1,4 +1,6 @@
-/*     msg.c   4.1     82/05/07        */
+#ifndef lint
+static char sccsid[] = "@(#)msg.c      4.6 5/8/89";
+#endif
 
 #
 /*
 
 #
 /*
@@ -54,7 +56,6 @@ MSG   ps2name         = "PS2";
 /* string constants */
 MSG    nullstr         = "";
 MSG    sptbnl          = " \t\n";
 /* string constants */
 MSG    nullstr         = "";
 MSG    sptbnl          = " \t\n";
-MSG    defpath         = ":/bin:/usr/bin";
 MSG    colon           = ": ";
 MSG    minus           = "-";
 MSG    endoffile       = "end of file";
 MSG    colon           = ": ";
 MSG    minus           = "-";
 MSG    endoffile       = "end of file";
@@ -69,7 +70,7 @@ MSG   profile         = ".profile";
 
 
 /* tables */
 
 
 /* tables */
-SYSTAB reserved {
+SYSTAB reserved {
                {"in",          INSYM},
                {"esac",        ESSYM},
                {"case",        CASYM},
                {"in",          INSYM},
                {"esac",        ESSYM},
                {"case",        CASYM},
@@ -88,7 +89,7 @@ SYSTAB reserved {
                {0,     0},
 };
 
                {0,     0},
 };
 
-STRING sysmsg[] {
+STRING sysmsg[] {
                0,
                "Hangup",
                0,      /* Interrupt */
                0,
                "Hangup",
                0,      /* Interrupt */
@@ -105,12 +106,29 @@ STRING    sysmsg[] {
                0,      /* Broken pipe */
                "Alarm call",
                "Terminated",
                0,      /* Broken pipe */
                "Alarm call",
                "Terminated",
-               "Signal 16",
+               "Urgent condition",
+               "Stopped",
+               "Stopped from terminal",
+               "Continued",
+               "Child terminated",
+               "Stopped on terminal input",
+               "Stopped on terminal output",
+               "Asynchronous I/O",
+               "Exceeded cpu time limit",
+               "Exceeded file size limit",
+               "Virtual time alarm",
+               "Profiling time alarm",
+               "Window changed",
+               "Signal 29",
+               "User defined signal 1",
+               "User defined signal 2",
+               "Signal 32",
 };
 };
+INT            num_sysmsg = (sizeof sysmsg / sizeof sysmsg[0]);
 
 MSG            export = "export";
 MSG            readonly = "readonly";
 
 MSG            export = "export";
 MSG            readonly = "readonly";
-SYSTAB commands {
+SYSTAB commands {
                {"cd",          SYSCD},
                {"read",        SYSREAD},
 /*
                {"cd",          SYSCD},
                {"read",        SYSREAD},
 /*