getting 'df' info from inside a program?

Boyd Roberts boyd at necisa.ho.necisa.oz
Fri Jun 29 10:15:21 AEST 1990


In article <3394 at sactoh0.UUCP> jak at sactoh0.UUCP (Jay A. Konigsberg) writes:
>In article <797 at massey.ac.nz> GEustace at massey.ac.nz (Glen Eustace) writes:
>>...  It would be great if
>>the information given in a 'df' were available with some system call.
>>Does anyone know whether there is one and if so how one uses it.
>>
>This looks like a job for the stat() system call. (Sys V)
>

Gak!  Chigaimasu!  You require ustat(2) on Sys V or statfs(2) on NFS varients.  

stat(2) reports information on files, NOT _file-systems_.

Aside from that, do you realise that the blocks that were there when
you looked, may not be there when you actually start writing?  Or
will your target file-system be idle?


Boyd Roberts			boyd at necisa.ho.necisa.oz.au

``When the going gets wierd, the weird turn pro...''



More information about the Comp.sys.pyramid mailing list