Xref: utzoo comp.unix.wizards:18088 comp.unix.questions:16278 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!aplcen!ginosko!uunet!mcsun!ukc!axion!fulcrum!tjo From: tjo@fulcrum.bt.co.uk (Tim Oldham) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: Finding diskspace status programatically. Keywords: df disk space blocks free Message-ID: <281@cat.fulcrum.bt.co.uk> Date: 11 Sep 89 11:32:22 GMT References: <146@beta.nsc.com> <10651@dasys1.UUCP> Reply-To: tjo@fulcrum.bt.co.uk (Tim Oldham) Organization: BT IT Systems, Birmingham, England Lines: 20 In article <10651@dasys1.UUCP> jpr@dasys1.UUCP (Jean-Pierre Radley) writes: >In article <146@beta.nsc.com> somani@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@fulcrum.bt.co.uk or ...!mcvax!ukc!axion!fulcrum!tjo #include Why have coffee, when caffeine tastes this good?