fstyp(3) fstyp(3)NAME fstyp - determines the file-system type SYNOPSIS #include <sys/fstypent.h>struct fstypent *fstyp(name)char *name;DESCRIPTIONfstyp determines the type of the file system associated withthe file name. The file-system types supported on A/UX arelisted in /etc/fstypes (see fstypes(4)).If the file name is a block or character device and isreadable by the calling process, fstyp attempts to determinethe file-system type by executing (through exec(2)) thefile-system-dependent versions of the fstyp(1) command.These commands read the file-sytem superblocks and performconsistency checks on the file-system data. See fs(4).Otherwise, fstyp uses the information returned by statfs(2).STATUS MESSAGES AND VALUESThe return value is a pointer to a fstypent structure. Ifthe file-system type cannot be determined, a null pointer isreturned.FILES/etc/fstabFile containing file system table/etc/fstypesFile containing file system types/etc/mtabFile containing the mount table/etc/fs/*/fstypFile containing a file system typeNOTESA/UX currently supports System V file systems (SVFS) andBerkeley Fast File Systems (UFS) as local systems.SEE ALSOJanuary 1992 1