.\" Copyright (c) 1983 The Regents of the University of California.
.\" Redistribution and use in source and binary forms are permitted
.\" provided that the above copyright notice and this paragraph are
.\" duplicated in all such forms and that any documentation,
.\" advertising materials, and other materials related to such
.\" distribution and use acknowledge that the software was developed
.\" by the University of California, Berkeley. The name of the
.\" University may not be used to endorse or promote products derived
.\" from this software without specific prior written permission.
.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
.\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\" @(#)getfsent.3 6.6 (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
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