|
|
HP-UX Reference > Sstatvfsdev(3C)HP-UX 11i Version 2: December 2007 Update |
|
NAMEstatvfsdev(), fstatvfsdev() — get file system information SYNOPSIS#include <sys/statvfs.h> int statvfsdev(const char *path, struct statvfs *buf); int fstatvfsdev(int fildes, struct statvfs *buf); DESCRIPTIONstatvfsdev() 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 stat(), fstat(), and lstat() 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. RETURN VALUEUpon successful completion, statvfsdev() and fstatvfsdev() return zero. Otherwise, they return -1 and set the global variable errno to indicate the error. ERRORSIf 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:
|
|