1752275 Members
5005 Online
108786 Solutions
New Discussion юеВ

file system information

 
Sathish_3
Occasional Contributor

file system information

Which command tells us exactly the same output as df -k . I can't open pipe in my app, so i should use only a system function.

TIA,
Sathish
3 REPLIES 3
Massimo Bianchi
Honored Contributor

Re: file system information

Hi,
looking at the man page of df, looks like it uses the

statvfs

system call.

Have a look and chec if it is what you need.

HTH,
Massimo
Sanjay Kumar Suri
Honored Contributor

Re: file system information

SEE ALSO
df(1M), fstatfs(2), fstatvfs64(2), quotactl(2), stat(2), statfs(2), statvfs64(2), sysfs(2), ustat(2).

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Franky_1
Respected Contributor

Re: file system information

Hi,

should be "statvfs"

have a look at : man 2 statvfs

Regards

Franky
Don't worry be happy