From 2805c7cec0cade9935fe4988e4b09b39638e8147 Mon Sep 17 00:00:00 2001 From: stolz Date: Wed, 15 Sep 2004 15:55:46 +0000 Subject: [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. --- include/HsUnix.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'include') 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 #endif +#ifdef HAVE_SIGNAL_H +#include +#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 -- cgit v1.2.3