fstypent(3P) fstypent(3P)NAME fstypent - get file-system-type entry SYNOPSIS #include <stdio.h> #include <sys/fstypent.h> struct fstypent *fstypent(filep) FILE *filep; DESCRIPTION fstypent reads the next line from the file indicated by filep and returns a pointer to a struct fstypent containing this information. The fstypent structure is defined in <sys/fstypent.h>:struct fstypent {int fstype;char **typelist;char *pathlist;};In the above structure, fstype indicates the file-systemtype, and this value is used by fsmount(2).typelist is a null-terminated list of pointers; each onepoints to a character string describing a file-system type.At least one of these types is defined in <mntent.h>.pathlist is a colon-separated list of pathnames. The path-names indicate the directories where file-system-dependentutilities may be found. This entry in /etc/fstypes is notrequired. pathlist is a NULL pointer if the entry is miss-ing.The data in this structure and referenced static data areoverwritten by a subsequent call to fstypent or typefs.RETURN VALUEfstypent returns a pointer of type struct fstypent. Seefstyp(3). A NULL pointer is returned on end-of-file or er-ror.FILES/etc/fstypesSEE ALSOApril, 1990 1