getfsent(3X)getfsent(3X)NAMEgetfsent(), getfsspec(), getfsfile(), getfstype(), setfsent(), endf‐
sent() - get file system descriptor file entry
These routines are included only for compatibility with 4.2 BSD. For
maximum portability and improved functionality, new applications should
use the getmntent(3X) library routines.
and each returns a pointer to an object with the following structure
containing the broken-out fields of a line in the file. The structure
is declared in the header file:
The fields have meanings described in fstab(4). If the block special
file name, the file system directory name, and the type are not all
defined on the associated line in these routines return pointers to
NULL in the and fields. If the pass number or the backup frequency
field are not present on the line, these routines return −1 in the cor‐
responding structure member. is reserved for future use.
Reads the next line of the file, opening the file if necessary.
Opens and rewinds the file.
Closes the file.
Sequentially searches from beginning of file
until a matching special file name is found, or
until EOF is encountered.
Sequentially searches from the beginning of the file
until a matching file system file name is found, or
until EOF is encountered. Sequentially searches
from the beginning of the file until a matching
file system type field is found, or until EOF is
A null pointer is returned on EOF, invalid entry, or error.
Since all information is contained in a static area, it must be copied
to be saved.
and are to be obsoleted at a future date.
was developed by HP and the University of California, Berkeley.
TO BE OBSOLETED getfsent(3X)