SYNOPSIS
#include <sys/statvfs.h>
int fstatvfs(int fildes, struct statvfs *buf);
int statvfs(const char *path, struct statvfs *buf);
int fstatvfs64(int fildes, struct statvfs64 *buf);
int statvfs64(const char *path, struct statvfs64 *buf);
DESCRIPTION
The
The
PARAMETERS
- fildes
-
Is the file descriptor for an open file on the file system to be queried.
- path
-
Specifies the path name of a file within the file system.
- buf
-
Is a result parameter that is filled in with the information of the file system.
RETURN VALUES
If successful,
- EACCES
-
Search permission is denied for a component of the path prefix.
- EBADF
-
fildes is not a valid open file descriptor.
- EFAULT
-
buf or path is an invalid pointer.
- EINVAL
-
fildes or path refer to a file that does not reside on a physical file system.
- ENAMETOOLONG
-
The length of the path exceeds PATH_MAX.
- ENODEV
-
path refers to a drive letter that is not mounted.
- ENOENT
-
The named file does not exist.
- ENOTDIR
-
A component of the path prefix is not a directory.
- EOVERFLOW
-
One of the values to be returned cannot be represented correctly in the structure pointed to by buf.
CONFORMANCE
UNIX 98, with exceptions.
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
None.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Miscellaneous:
- lf64, struct statvfs
PTC MKS Toolkit 10.5 Documentation Build 40.