date and time created 92/06/22 18:08:37 by bostic
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 23 Jun 1992 09:08:37 +0000 (01:08 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 23 Jun 1992 09:08:37 +0000 (01:08 -0800)
SCCS-vsn: lib/libedit/sig.h 5.1

usr/src/lib/libedit/sig.h [new file with mode: 0644]

diff --git a/usr/src/lib/libedit/sig.h b/usr/src/lib/libedit/sig.h
new file mode 100644 (file)
index 0000000..4df7a51
--- /dev/null
@@ -0,0 +1,44 @@
+/*-
+ * Copyright (c) 1992 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Christos Zoulas of Cornell University.
+ *
+ * %sccs.include.redist.c%
+ *
+ *     @(#)sig.h       5.1 (Berkeley) %G%
+ */
+
+/*
+ * el.sig.h: Signal handling functions
+ */
+#ifndef _h_el_sig
+#define _h_el_sig
+
+#include <signal.h>
+
+#include "editline.h"
+
+/*
+ * Define here all the signals we are going to handle
+ * The _DO macro is used to iterate in the source code
+ */
+#define ALLSIGS        \
+    _DO(SIGINT)                \
+    _DO(SIGTSTP)       \
+    _DO(SIGSTOP)       \
+    _DO(SIGQUIT)       \
+    _DO(SIGHUP)                \
+    _DO(SIGTERM)       \
+    _DO(SIGCONT)       \
+    _DO(SIGWINCH)
+
+typedef sig_t *el_signal_t;
+
+protected void sig_end         __P((EditLine*));
+protected int  sig_init        __P((EditLine*));
+protected void sig_set         __P((EditLine*));
+protected void sig_clr         __P((EditLine*));
+
+#endif /* _h_el_sig */