Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fstypent(3P) — A/UX 2.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getmntent(3)

typefs(3)

fs(4)

fstab(4)

fstypes(4)

ufs(4)




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-system
type, and this value is used by fsmount(2).
typelist is a null-terminated list of pointers; each one
points 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-dependent
utilities may be found. This entry in /etc/fstypes is not
required. pathlist is a NULL pointer if the entry is miss-
ing.
The data in this structure and referenced static data are
overwritten by a subsequent call to fstypent or typefs.
RETURN VALUE
fstypent returns a pointer of type struct fstypent. See
fstyp(3). A NULL pointer is returned on end-of-file or er-
ror.
FILES
/etc/fstypes
SEE ALSO
getmntent(3), typefs(3), fs(4), fstab(4), fstypes(4),
ufs(4).
April, 1990 1

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