[Haskell-cafe] Poisx select support
vigalchin at gmail.com
Wed Jan 16 15:36:49 EST 2008
I am looking at the code for ghc-6.8.2 but don't see the mmap support.
Is this newly wriiten by you? I would also like to help round out the Posix
functionality in Haskell. Is there an accurate list of what needs to be done
given the fact that maybe some work is in progress but not "checked in"?
Thank you, Vasili
On 1/16/08, Don Stewart <dons at galois.com> wrote:
> > Hi Don,
> > Sorry ..I wasn't clear enough.I am trying to determine from the
> > Haskell FFI doc what datatype to use in order to model C's "void *",
> > for mmap
> > http://www.opengroup.org/onlinepubs/000095399/functions/mmap.html
> > Regards, Vasili
> In the System.IO.Posix.MMap module, mmap is imported as:
> foreign import ccall unsafe "hs_bytestring_mmap.h hs_bytestring_mmap"
> c_mmap :: CSize -> CInt -> IO (Ptr Word8)
> foreign import ccall unsafe "hs_bytestring_mmap.h munmap"
> c_munmap :: Ptr Word8 -> CSize -> IO CInt
> You can see the full binding to mmap here:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe