Commit 63ea1af6 authored by sof's avatar sof
Browse files

[project @ 2001-08-20 14:57:42 by sof]

sigemptyset: may be implemented as a macro on some plats,
so wrap it up in an inline function to get the C types
right. (Thomas Nordin, using OpenBSD, spotted this one).
parent 136e0eee
{-# OPTIONS -fno-implicit-prelude #-}
-- ---------------------------------------------------------------------------
-- $Id: PrelPosix.hsc,v 1.11 2001/08/14 13:40:08 sewardj Exp $
-- $Id: PrelPosix.hsc,v 1.12 2001/08/20 14:57:42 sof Exp $
--
-- POSIX support layer for the standard libraries
--
......@@ -285,8 +285,9 @@ foreign import "fcntl" unsafe
foreign import "fork" unsafe
fork :: IO CPid
foreign import "sigemptyset" unsafe
foreign import "sigemptyset_wrap" unsafe
c_sigemptyset :: Ptr CSigset -> IO ()
#def inline void sigemptyset_wrap(sigset_t *set) { sigemptyset(set); }
foreign import "sigaddset" unsafe
c_sigaddset :: Ptr CSigset -> CInt -> IO ()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment