|HP-UX Reference > S
statvfsdev(3C)HP-UX 11i Version 3: February 2007
statvfsdev(), fstatvfsdev() — get file system information
int statvfsdev(const char *path, struct statvfs *buf);
int fstatvfsdev(int fildes, struct statvfs *buf);
statvfsdev() returns information about the file system on the device file specified by path. The file system need not be mounted.
fstatvfsdev() returns similar information for an open file.
The parameters for the statvfsdev() and fstatvfsdev() functions are as follows:
buf is a pointer to a statvfs structure into which information is placed concerning the file system. The contents of the structure pointed to by buf are described in statvfs(2).
fstatvfsdev() returns the same information as above, but about the open device file referred to by file descriptor fildes.
Upon successful completion, statvfsdev() and fstatvfsdev() return zero. Otherwise, they return -1 and set the global variable errno to indicate the error.
If statvfsdev() fails, errno is set to one of the following values:
If fstatvfsdev() fails, errno is set to one of the following values:
When both fstatvfsdev() and statvfsdev() fail, errno is set to one of the following values:
bdf(1M), df(1M), stat(2), statvfs(2), fgetpos64(3S), thread_safety(5).