Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Asynchronous IO programming in OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: DS <ds.caml@s...>
Subject: Re: [Caml-list] Asynchronous IO programming in OCaml
On 25 Oct 2010, at 13:10, Jérémie Dimino wrote:
> AFAIK libaio is linux-specific

If we are talking about aio_read() and company, these functions are available on at least FreeBSD, Irix, Solaris and Mac OS X too.  I looked into this some years back and while I would say it is standard unix stuff, I do recall finding a few slight differences between platforms.  FreeBSD required loading a kernel module (aio.ko IIRC) to use this, and if it wasn't loaded the program would just die horribly.

It can be wrapped as an OCaml module, but expect to put many #ifdef's in your C code.