Browse thread
How to find out free diskspace?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Richard Jones <rich@a...> |
| Subject: | Re: [Caml-list] How to find out free diskspace? |
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