[Haskell-cafe] carry "state" around ....
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Sat Jul 19 10:45:56 EDT 2008
On 2008 Jul 19, at 2:40, Galchin, Vasili wrote:
> My viewpoint is that the above "Internal members" must be "carried"
> around in a Haskell program. Am I correct?? If I am correct, then
> the Linux implementation of Posix AIO is not portable to say
> Solaris? In hindsight, if I am correct, it seems that
You are correct --- but Solaris also has its own addenda, and its
standard fields are not at the same offsets as in the Linux aiocb.
The only safe way to do this is to use an opaque aiocb on the Haskell
side and accessors in C via FFI.
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080719/e1514b2d/attachment-0001.htm
More information about the Haskell-Cafe
mailing list