caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Richard Jones <rich@annexia.org>
To: Damien Doligez <damien.doligez@inria.fr>
Cc: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] How to find out free diskspace?
Date: Sun, 3 Jul 2005 13:35:55 +0100	[thread overview]
Message-ID: <20050703123555.GA2942@furbychan.cocan.org> (raw)
In-Reply-To: <5e9289d19ec1f235b8fff3c89e360bae@inria.fr>

On Sun, Jul 03, 2005 at 01:54:15PM +0200, Damien Doligez wrote:
> You should do it this way:
> 
> static value
> copy_statfs (struct statfs *buf)
> {
>   CAMLparam0 ();
>   CAMLlocal1 (bufv, v);
>   bufv = caml_alloc (9, 0);
>   v = copy_int64 (buf->f_type); caml_modify (&Field (bufv, 0), v);

Thanks for this tip.  I'm going to go away and fix OCamlODE now, which
does a lot of this.

Rich.

-- 
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com


  reply	other threads:[~2005-07-03 12:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-01 16:28 Bernd Kuhls
2005-07-01 18:06 ` [Caml-list] " Sylvain LE GALL
2005-07-01 18:19 ` Richard Jones
2005-07-03 11:54   ` Damien Doligez
2005-07-03 12:35     ` Richard Jones [this message]
2005-07-21 15:52   ` Bernd Kuhls
2005-07-21 16:18     ` [Caml-list] " Stephane Glondu
2005-07-22 12:46       ` Bernd Kuhls
2005-07-22 14:10         ` [Caml-list] " Eric Cooper
2005-07-22 17:40       ` Bernd Kuhls

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=20050703123555.GA2942@furbychan.cocan.org \
    --to=rich@annexia.org \
    --cc=caml-list@inria.fr \
    --cc=damien.doligez@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;
as well as URLs for NNTP newsgroup(s).