From: Eric Cooper <ecc@cmu.edu>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] opening/reading a rtai fifo
Date: Wed, 24 May 2006 13:20:05 -0400 [thread overview]
Message-ID: <20060524172005.GA2515@localhost> (raw)
In-Reply-To: <1148489253.44748e25b2321@webmailetu.univ-orleans.fr>
On Wed, May 24, 2006 at 06:47:33PM +0200, julien.michel@etu.univ-orleans.fr wrote:
> I currently work on an embedded system, OS Linux 2.4-19 RTAI .
>
> I'd like to open and read out an RTAI FIFO (called /dev/rtf/0)
> I used to do it with a "C" code such like:
> fd = open("/dev/rtf/0",O_RDONLY);
> read(fd,&f,sizeof(...)); etc...
>
> For now, I would like to do that with Ocaml.
> [...]
I suggest using the Unix.openfile and Unix.read functions them same
way your current C code does, rather than the buffered I/O in stdlib.
--
Eric Cooper e c c @ c m u . e d u
next prev parent reply other threads:[~2006-05-24 17:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-24 16:47 julien.michel
2006-05-24 17:14 ` [Caml-list] " Basile STARYNKEVITCH
2006-05-24 17:20 ` Eric Cooper [this message]
2006-05-24 17:32 ` Basile STARYNKEVITCH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060524172005.GA2515@localhost \
--to=ecc@cmu.edu \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox