Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fstyp(3) — A/UX 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

stat(2)

statfs(2)

fstypent(3)

getmntent(3)

fs(4)

fstab(4)

fstypes(4)

mtab(4)




fstyp(3) fstyp(3)
NAME fstyp - determine the file-system type SYNOPSIS #include <sys/fstypent.h>
struct fstypent *fstype(name)
char *name;
DESCRIPTION
fstyp determines the type of the file system associated with
the file name. The file-system types supported on
A/UX(Reg.) are listed in /etc/fstypes. See fstypes(4).
If the file name is a block or character device and is read-
able by the calling process, fstyp attempts to determine the
file-system type by executing (through exec(2)) the file-
system-dependent versions of the fstyp(1) command. These
commands read the file-sytem superblocks and perform con-
sistency checks on the file-system data. See fs(4). Other-
wise, fstyp uses the information returned by statfs(2).
RETURN VALUE
The return value is a pointer to a fstypent structure. If
the file-system type cannot be determined, a NULL pointer is
returned.
FILES
/etc/fstab
/etc/fstypes
/etc/mtab
/etc/fs/*/fstyp
NOTES
A/UX currently supports System V file systems (SVFS) and
Berkeley Fast File Systems (UFS) as local systems.
SEE ALSO
stat(2), statfs(2), fstypent(3), getmntent(3), fs(4),
fstab(4), fstypes(4), mtab(4).
April, 1990 1

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