Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ustat(2) — A/UX 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stat(2)

statfs(2)

fs(4)




ustat(2) ustat(2)
NAME ustat - get file system statistics SYNOPSIS #include <sys/types.h> #include <ustat.h> int ustat(dev, buf) int 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 in- cludes to following elements: daddr_t f_tfree; /* Total free blocks */ ino_t f_tinode; /* Number of free inodes */ char f_fname[6]; /* Filsys name */ char f_fpack[6]; /* Filsys pack name */ RETURN VALUE Upon successful completion, a value of 0 is returned. Oth- erwise, a value of -1 is returned and errno is set to indi- cate the error. ERRORS ustat will fail if one or more of the following are true: [EINVAL] dev is not the device number of a device con- taining a mounted file system. [EFAULT] buf points outside the process's allocated address space. SEE ALSO stat(2), statfs(2), fs(4). April, 1990 1

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026