Extracting file system information

T

torno

Hi,
I've a C program that I need to include a routine to extract free space
information on a particular mount point. Can someone provide me a sample
routine on how that is done in C? I did a man on statvfs and it looks like
that is the system call I should be using but I'm not clear how to use it.


Any help you can provide is very much appreciated.

thanks.

geraldine
 
J

Jack Klein

Hi,
I've a C program that I need to include a routine to extract free space
information on a particular mount point. Can someone provide me a sample
routine on how that is done in C? I did a man on statvfs and it looks like
that is the system call I should be using but I'm not clear how to use it.


Any help you can provide is very much appreciated.

thanks.

geraldine

The problem is that the system information you are asking about is...
system specific. And nothing defined by the C language, so off-topic
here. If your platform makes this information available to programs,
there must be some system call to get it, and you would need to ask
about that in a group that supports programming on your particular
system.

I can't tell for sure from the headers on your post, but you probably
want a group like or
.
 
R

Rich Gibbs

torno said the following, on 11/02/04 21:21:
Hi,
I've a C program that I need to include a routine to extract free space
information on a particular mount point. Can someone provide me a sample
routine on how that is done in C? I did a man on statvfs and it looks like
that is the system call I should be using but I'm not clear how to use it.


Any help you can provide is very much appreciated.


Geraldine,

The answer to your question is specific to the system you are using, or
at least to POSIX-compliant systems, and is therefore off-topic in this
group, which is focused on the standard C language. (The language
itself contains nothing about "mount points", for example.)

Try the question on a group specific to your platform, or on
comp.unix.programmer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,148
Messages
2,570,838
Members
47,385
Latest member
Joneswilliam01

Latest Threads

Top