statfsdev(3C)statfsdev(3C)NAMEstatfsdev(), fstatfsdev() - get file system statistics
SYNOPSISDESCRIPTION
returns information about the file system contained in the file speci‐
fied by path.
buf is a pointer to a structure into which information is placed con‐
cerning the file system. The contents of the structure pointed to by
buf include the following members:
The fields and are expressed in terms of blocks of size
Fields that are undefined for a particular file system are set to −1 .
returns the same information as above, but about the open file referred
to by file descriptor fildes.
RETURN VALUE
Upon successful completion, and return zero. Otherwise, they return −1
and set the global variable to indicate the error.
ERRORS
fails if one or more of the following conditions are encountered:
Search permission is denied for a component of the path prefix.
The file exists, enforcement mode file/record locking is set,
and there are
outstanding record locks on the file.
path points to an invalid address.
Too many symbolic links are encountered in translating the path
name.
The maximum number of file descriptors allowed are currently
open.
The length of the specified path name exceeds
bytes, or the length of a component of the path
name exceeds bytes while is in effect.
The system file table is full.
The named file does not exist.
A component of the path prefix is not a directory.
The device specified by the named special file does not exist.
Result would overflow one or more fields of the
struct.
fails if one or more of the following is true:
fildes is not a valid open file descriptor.
filedes points to an invalid address.
Both and fail if one or more of the following is true:
Enforcement-mode record locking was set, and there was a block‐
ing write lock.
A resource deadlock would occur as a result of this operation.
A system call was interrupted by a signal.
The file specified by
path or filedes does not contain a file system of
any known type.
The system lock table was full,
so the read could not go to sleep until the
blocking write lock was removed.
Contact your system administrator to make sure the
is running properly on the system.
WARNINGS
and are deprecated and should be used only by legacy 32-bit applica‐
tions. and are the recommended replacements. See fgetpos64(3S).
AUTHOR
and were developed by HP.
FILESSEE ALSObdf(1M), df(1M), stat(2), statfs(2), thread_safety(5).
statfsdev(3C)