.\" Copyright (c) 1983 The Regents of the University of California.
.\" %sccs.include.redist.man%
.\" @(#)getfsent.3 6.8 (Berkeley) %G%
getfsent, getfsspec, getfsfile, setfsent, endfsent \- get file system descriptor file entry
.B struct fstab *getfsent()
.B struct fstab *getfsspec(spec)
.B struct fstab *getfsfile(file)
each return a pointer to an object with the following structure
containing the broken-out fields of a line in the file system
.ta \w'#define 'u +\w'char\ \ 'u +\w'*fs_vfstype;\ \ 'u
char *fs_spec; /* block special device name */
char *fs_file; /* file system path prefix */
char *fs_vfstype; /* type of file system */
char *fs_mntops; /* comma separated mount options */
char *fs_type; /* rw, ro, sw, or xx */
int fs_freq; /* dump frequency, in days */
int fs_passno; /* pass number on parallel dump */
The fields have meanings described in
opens the file (closing any previously opened file) or rewinds it
search the entire file (opening it if necessary) for a matching special
file name or file system file name.
For programs wishing to read the entire database,
reads the next entry (opening the file if necessary).
All entries in the file with a type field equivalent to
return a null pointer (0) on EOF or error.
returns 0 on failure, 1 on success.
All information is contained in a static area so it must be copied if it is