From: Sylvain LE GALL <sylvain.le-gall@polytechnique.org>
To: Bernd Kuhls <bernd.kuhls@informatik.uni-oldenburg.de>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] How to find out free diskspace?
Date: Fri, 1 Jul 2005 20:06:27 +0200 [thread overview]
Message-ID: <20050701180627.GA26713@gallu.homelinux.org> (raw)
In-Reply-To: <da3qe7$23i$1@sea.gmane.org>
Hello,
On Fri, Jul 01, 2005 at 06:28:21PM +0200, Bernd Kuhls wrote:
> Hi,
>
> I am looking for some Ocaml code (or C bindings which work on
> Linux/Solaris/Cygwin) to get the amount of free diskspace on a volume.
> The function should receive a string and return an int64 value or
> something similar.
>
> Regards, Bernd
>
Well, i think you can get this information using the C call "statfs"
combined with the reading of /etc/mtab, on linux.
For windows i remember that you can open some special files at the root
of each volume, which should give you information about this...
If you find a solution, could you drop me an email, i would like to
integrate it in one of my library.
Thank you
Regard
Sylvain Le Gall
next prev parent reply other threads:[~2005-07-01 18:06 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 ` Sylvain LE GALL [this message]
2005-07-01 18:19 ` [Caml-list] " Richard Jones
2005-07-03 11:54 ` Damien Doligez
2005-07-03 12:35 ` Richard Jones
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=20050701180627.GA26713@gallu.homelinux.org \
--to=sylvain.le-gall@polytechnique.org \
--cc=bernd.kuhls@informatik.uni-oldenburg.de \
--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