* Free Space On a Disk
@ 1999-11-24 5:00 GopalKrishna Prasad
1999-11-27 5:00 ` Bob Harris
0 siblings, 1 reply; 2+ messages in thread
From: GopalKrishna Prasad @ 1999-11-24 5:00 UTC (permalink / raw)
Hi ,
I want to extract amount of free space available on a disk (for
example rz0). How can I do this in a C program ?
Thanks in Advance.
--
Regards,
GOPAL.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Free Space On a Disk
1999-11-24 5:00 Free Space On a Disk GopalKrishna Prasad
@ 1999-11-27 5:00 ` Bob Harris
0 siblings, 0 replies; 2+ messages in thread
From: Bob Harris @ 1999-11-27 5:00 UTC (permalink / raw)
To: GopalKrishna Prasad
[[ This message was both posted and mailed: see
the "To," "Cc," and "Newsgroups" headers for details. ]]
In article <383B6AA9.611265B5@swecexc.xko.dec.com>, GopalKrishna Prasad
<prasad@swecexc.xko.dec.com> wrote:
> I want to extract amount of free space available on a disk (for
>example rz0). How can I do this in a C program ?
use the statvfs() or statfs() system calls.
statvfs() is the POSIX standard way to do this, however, it lacks some
host OS specific features. The statvfs structure is defined in the
<sys/statvfs.h> header file.
statfs() is what is used by the df utility, but the values that it
returns may not be available on all UNIX implementations. The statfs
structure is defined in the <sys/mount.h> header file.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-11-27 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-11-24 5:00 Free Space On a Disk GopalKrishna Prasad
1999-11-27 5:00 ` Bob Harris
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox