fstyp(3) fstyp(3)NAME fstyp - determine the file-system type SYNOPSIS #include <sys/fstypent.h>struct fstypent *fstype(name)char *name;DESCRIPTIONfstyp determines the type of the file system associated withthe file name. The file-system types supported onA/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 thefile-system type by executing (through exec(2)) the file-system-dependent versions of the fstyp(1) command. Thesecommands 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 VALUEThe return value is a pointer to a fstypent structure. Ifthe file-system type cannot be determined, a NULL pointer isreturned.FILES/etc/fstab/etc/fstypes/etc/mtab/etc/fs/*/fstypNOTESA/UX currently supports System V file systems (SVFS) andBerkeley Fast File Systems (UFS) as local systems.SEE ALSOApril, 1990 1