summaryrefslogtreecommitdiffstats
path: root/lib/libF77/signal1.h
diff options
context:
space:
mode:
authorjmz <jmz@FreeBSD.org>1997-04-13 01:16:58 +0000
committerjmz <jmz@FreeBSD.org>1997-04-13 01:16:58 +0000
commit438bdd8a9c9d390f13a4b05980c19b18e974d16c (patch)
treee809113557ae09d5ce13e9239ae81534708bd955 /lib/libF77/signal1.h
parent5d93c9d5fb208d10eacf608b44ee02d3cd5b4a16 (diff)
downloadFreeBSD-src-438bdd8a9c9d390f13a4b05980c19b18e974d16c.zip
FreeBSD-src-438bdd8a9c9d390f13a4b05980c19b18e974d16c.tar.gz
Upgrade to the 1997/02/26 version.
Diffstat (limited to 'lib/libF77/signal1.h')
-rw-r--r--lib/libF77/signal1.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/libF77/signal1.h b/lib/libF77/signal1.h
new file mode 100644
index 0000000..8800a18
--- /dev/null
+++ b/lib/libF77/signal1.h
@@ -0,0 +1,25 @@
+/* You may need to adjust the definition of signal1 to supply a */
+/* cast to the correct argument type. This detail is system- and */
+/* compiler-dependent. The #define below assumes signal.h declares */
+/* type SIG_PF for the signal function's second argument. */
+
+#include <signal.h>
+
+#ifndef Sigret_t
+#define Sigret_t void
+#endif
+#ifndef Sigarg_t
+#ifdef KR_headers
+#define Sigarg_t
+#else
+#define Sigarg_t int
+#endif
+#endif /*Sigarg_t*/
+
+#ifdef USE_SIG_PF /* compile with -DUSE_SIG_PF under IRIX */
+#define sig_pf SIG_PF
+#else
+typedef Sigret_t (*sig_pf)(Sigarg_t);
+#endif
+
+#define signal1(a,b) signal(a,(sig_pf)b)
OpenPOWER on IntegriCloud