fstatfs(2)
_________________________________________________________________
fstatfs System Call
Get information about a mounted file system.
_________________________________________________________________
SYNTAX
#include <sys/types.h>
#include <sys/statfs.h>
int fstatfs (fildes, statfs_buffer, len, fstype)
int fildes;
struct statfs * statfs_buffer;
int len;
int fstype;
PARAMETERS
pathname File descriptor for any file within the file
system to be reported on.
statfs_buffer Where information about the file system is
returned. Points to a statfs structure.
len Length of the users buffer.
fstype Type of the file system. (see statfs.).
DESCRIPTION
<Fildes> is a valid, active descriptor referring to an open file
of any type (ordinary, directory, FIFO, block special, character
special, or symbolic link). Terminal symbolic links are resolved
in the system call that returned <filedes>. Fstatfs returns the
same information about the mounted file system that contains the
file that statfs does.
ACCESS CONTROL
None.
RETURN VALUE
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)
fstatfs(2)
0 The file system information was successfully
returned.
-1 An error occurred. Errno is set to indicate the
error.
EXCEPTIONS
Errno may be set to one of the following error codes:
EBADF <Fildes> is not a valid, active file descriptor.
EFAULT Some part of the statfs structure pointed to by
<statfs_buffer> lies outside of the process's
writable address space.
EINVAL <Fildes> refers to a pipe or socket.
SEE ALSO
The related manual sections: chmod(2), chown(2), creat(2),
fchmod(2), fchown(2), link(2), mknod(2), pipe(2), read(2),
statfs(2), time(2), times(2), ustat(2), write(2),
fs(4),
statfs(5).
DG/UX 4.00 Page 2
Licensed material--property of copyright holder(s)