[ILUG] hard disk space in C

David Neary dneary at wanadoo.fr
Mon Oct 14 16:28:02 IST 2002


Carlos Luna wrote:
> Hi folks!
> 
> What's the best way to get the available amount of hard disk space for a
> given partition in C?

I think there's an ioctl call for it... but I can't find it now.

man 2 ioctl_list might help. Either that or trawl the kernel
headers :)

Cheers,
Dave.

-- 
       David Neary,
    Marseille, France
  E-Mail: bolsh at gimp.org



More information about the ILUG mailing list