USTAT(2) — Stardent Computer Inc. (System Calls)
NAME
ustat − get file system statistics
SYNOPSIS
#include <sys/types.h>
#include <ustat.h> int ustat (dev, buf)
dev_t dev;
struct ustat ∗buf;
DESCRIPTION
ustat returns information about a mounted file system. dev is a device number identifying a device containing a mounted file system. buf is a pointer to a ustat structure that includes the following elements:
daddr_tf_tfree;/∗ Total free blocks ∗/
ino_tf_tinode;/∗ Number of free inodes ∗/
charf_fname[6];/∗ Filsys name ∗/
charf_fpack[6];/∗ Filsys pack name ∗/
ustat fails if one or more of the following are true:
[EINVAL] dev is not the device number of a device containing a mounted file system.
[EFAULT] buf points outside the process’s allocated address space.
[EINTR] A signal was caught during a ustat system call.
[ENOLINK] dev is on a remote machine and the link to that machine is no longer active.
[ECOMM] dev is on a remote machine and the link to that machine is no longer active.
SEE ALSO
DIAGNOSTICS
Upon successful completion, a value of 0 is returned. Otherwise, a value of −1 is returned and errno is set to indicate the error.
September 29, 2021