On 2008 Jul 28, at 1:54, Galchin, Vasili wrote:
allocaBytes (#const sizeof(struct aiocb)) $ \ p_aiocb -> do
poke p_aiocb aiocb
As I understand it, you can't do this;you must use the same aiocb
throughout (that is, the same chunk of memory, not merely the same
values; there is quite possibly a kernel mapping to it which you can't
change or copy, or a pointer to the original aiocb is kept as internal
state in the aio library so it can update the errno and result on the
fly).
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [EMAIL PROTECTED]
system administrator [openafs,heimdal,too many hats] [EMAIL PROTECTED]
electrical and computer engineering, carnegie mellon university KF8NH
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe