This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: how to detect out of disk space


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]