English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2010-10-25 (15:58)
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.

Regards.
-DS