Finding diskspace status programatically.
Tim Oldham
tjo at fulcrum.bt.co.uk
Mon Sep 11 21:32:22 AEST 1989
In article <10651 at dasys1.UUCP> jpr at dasys1.UUCP (Jean-Pierre Radley) writes:
>In article <146 at beta.nsc.com> somani at parns.nsc.com (Anil Somani) writes:
>>What is the best way to find out current available diskspace
>>from within a program?
>
>Have you tried the ustat() call?
AT&T UNIX System V Programmer's Reference Manual, statfs(2):
"statfs obsoletes ustat and should be used in preference to it in new
programs."
Much better all round.
Tim.
--
Tim Oldham tjo at fulcrum.bt.co.uk or ...!mcvax!ukc!axion!fulcrum!tjo
#include <stdisclaim>
Why have coffee, when caffeine tastes this good?
More information about the Comp.unix.questions
mailing list