Make the new Posix bindings compile on Mac OS X.
Most notable, Mac OS X lacks
*) lchown
*) SIGPOLL
I don't know of a replacement of either, so they are just left out when
they are not detected by configure.
backgroundWrite, sigTTOU,
userDefinedSignal1, sigUSR1,
userDefinedSignal2, sigUSR2,
backgroundWrite, sigTTOU,
userDefinedSignal1, sigUSR1,
userDefinedSignal2, sigUSR2,
profilingTimerExpired, sigPROF,
badSystemCall, sigSYS,
breakpointTrap, sigTRAP,
profilingTimerExpired, sigPROF,
badSystemCall, sigSYS,
breakpointTrap, sigTRAP,
foreign import ccall "__hsposix_SIGTTOU" sigTTOU :: CInt
foreign import ccall "__hsposix_SIGUSR1" sigUSR1 :: CInt
foreign import ccall "__hsposix_SIGUSR2" sigUSR2 :: CInt
foreign import ccall "__hsposix_SIGTTOU" sigTTOU :: CInt
foreign import ccall "__hsposix_SIGUSR1" sigUSR1 :: CInt
foreign import ccall "__hsposix_SIGUSR2" sigUSR2 :: CInt
foreign import ccall "__hsposix_SIGPOLL" sigPOLL :: CInt
foreign import ccall "__hsposix_SIGPOLL" sigPOLL :: CInt
foreign import ccall "__hsposix_SIGPROF" sigPROF :: CInt
foreign import ccall "__hsposix_SIGSYS" sigSYS :: CInt
foreign import ccall "__hsposix_SIGTRAP" sigTRAP :: CInt
foreign import ccall "__hsposix_SIGPROF" sigPROF :: CInt
foreign import ccall "__hsposix_SIGSYS" sigSYS :: CInt
foreign import ccall "__hsposix_SIGTRAP" sigTRAP :: CInt
userDefinedSignal2 :: Signal
userDefinedSignal2 = sigUSR2
userDefinedSignal2 :: Signal
userDefinedSignal2 = sigUSR2
pollableEvent :: Signal
pollableEvent = sigPOLL
pollableEvent :: Signal
pollableEvent = sigPOLL
profilingTimerExpired :: Signal
profilingTimerExpired = sigPROF
profilingTimerExpired :: Signal
profilingTimerExpired = sigPROF
/* -----------------------------------------------------------------------------
/* -----------------------------------------------------------------------------
- * $Id: HsBase.h,v 1.16 2002/10/03 13:04:58 panne Exp $
+ * $Id: HsBase.h,v 1.17 2002/10/08 08:03:02 wolfgang Exp $
*
* (c) The University of Glasgow 2001-2002
*
*
* (c) The University of Glasgow 2001-2002
*
INLINE int __hsposix_SIGTTOU() { return SIGTTOU; }
INLINE int __hsposix_SIGUSR1() { return SIGUSR1; }
INLINE int __hsposix_SIGUSR2() { return SIGUSR2; }
INLINE int __hsposix_SIGTTOU() { return SIGTTOU; }
INLINE int __hsposix_SIGUSR1() { return SIGUSR1; }
INLINE int __hsposix_SIGUSR2() { return SIGUSR2; }
INLINE int __hsposix_SIGPOLL() { return SIGPOLL; }
INLINE int __hsposix_SIGPOLL() { return SIGPOLL; }
INLINE int __hsposix_SIGPROF() { return SIGPROF; }
INLINE int __hsposix_SIGSYS() { return SIGSYS; }
INLINE int __hsposix_SIGTRAP() { return SIGTRAP; }
INLINE int __hsposix_SIGPROF() { return SIGPROF; }
INLINE int __hsposix_SIGSYS() { return SIGSYS; }
INLINE int __hsposix_SIGTRAP() { return SIGTRAP; }