386BSD 0.1 development
authorWilliam F. Jolitz <wjolitz@soda.berkeley.edu>
Wed, 1 Jan 1992 20:02:28 +0000 (12:02 -0800)
committerWilliam F. Jolitz <wjolitz@soda.berkeley.edu>
Wed, 1 Jan 1992 20:02:28 +0000 (12:02 -0800)
Work on file usr/othersrc/public/bash-1.12/bash-1.12/trap.h

Co-Authored-By: Lynne Greer Jolitz <ljolitz@cardio.ucsf.edu>
Synthesized-from: 386BSD-0.1

usr/othersrc/public/bash-1.12/bash-1.12/trap.h [new file with mode: 0644]

diff --git a/usr/othersrc/public/bash-1.12/bash-1.12/trap.h b/usr/othersrc/public/bash-1.12/bash-1.12/trap.h
new file mode 100644 (file)
index 0000000..9733a33
--- /dev/null
@@ -0,0 +1,20 @@
+/* trap.h -- data structures used in the trap mechanism. */
+
+#ifndef NSIG
+#include <signal.h>
+#endif
+
+#ifndef NSIG
+#define NSIG 64
+#endif
+
+#define NO_SIG -1
+#define DEFAULT_SIG SIG_DFL
+#define IGNORE_SIG  SIG_IGN
+
+#define signal_object_p(x) (decode_signal (x) != NO_SIG)
+
+extern char *trap_list[NSIG];
+extern char *signal_name ();
+extern int signal_decode ();
+