aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar stolz <unknown>2004-09-15 15:55:46 +0000
committerGravatar stolz <unknown>2004-09-15 15:55:46 +0000
commit2805c7cec0cade9935fe4988e4b09b39638e8147 (patch)
treef0293ed2f8b7633a1c8304874caeb9c64f6c8201 /include
parentec13475947fb35c3ec6e7227aeb7794eed431cd9 (diff)
[project @ 2004-09-15 15:55:45 by stolz]
Add System.Posix.Signals.Exts which re-exports S.P.Signals and adds the two signals SIGINFO on (*BSD) and SIGWINCH (most Unices) which are not in POSIX. You should use cpp to test if those are defined before using them. This is encouraged by not providing dummy-definitions on platforms which do not offer that particular flavour.
Diffstat (limited to 'include')
-rw-r--r--include/HsUnix.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/HsUnix.h b/include/HsUnix.h
index fe857ae..49c8a9d 100644
--- a/include/HsUnix.h
+++ b/include/HsUnix.h
@@ -1,5 +1,5 @@
/* -----------------------------------------------------------------------------
- * $Id: HsUnix.h,v 1.15 2004/09/02 15:18:10 ross Exp $
+ * $Id: HsUnix.h,v 1.16 2004/09/15 15:55:46 stolz Exp $
*
* (c) The University of Glasgow 2002
*
@@ -71,6 +71,10 @@
#include <dlfcn.h>
#endif
+#ifdef HAVE_SIGNAL_H
+#include <signal.h>
+#endif
+
extern int execvpe(char *name, char **argv, char **envp);
extern void pPrPr_disableITimers (void);
extern char **environ;
@@ -100,4 +104,11 @@ fall back to O_FSYNC, which should be the same */
#define O_SYNC O_FSYNC
#endif
+#ifdef SIGINFO
+INLINE int __hsunix_SIGINFO() { return SIGINFO; }
+#endif
+#ifdef SIGWINCH
+INLINE int __hsunix_SIGWINCH() { return SIGWINCH; }
+#endif
+
#endif