This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: how to detect out of disk space
- To: "Sunit Bhatia" <bhatia_sunit at hotmail dot com>
- Subject: Re: how to detect out of disk space
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 16 May 2001 01:19:08 -0300
- Cc: gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <F19twD43oFLaqSOc7wo0000d920@hotmail.com>
On May 16, 2001, "Sunit Bhatia" <bhatia_sunit@hotmail.com> wrote:
> does any body know how to detect how much disk space is left ?
This message is inappropriate for this mailing list, whose topic is
the development *of* GCC (not *with* GCC).
> Is there a c library call, which I can use to find this out ?
It depends on which C library you're using.
> I need to find this out for Solaris and Linux operating system.
Try statvfs and statfs, respectively.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me