GETFSENT(3) | Library Functions Manual | GETFSENT(3) |
struct fstab *
getfsent(void);
struct fstab *
getfsspec(const char *spec);
struct fstab *
getfsfile(const char *file);
int
setfsent(void);
void
endfsent(void);
struct fstab { 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 fstab(5).
The setfsent() function opens the file (closing any previously opened file) or rewinds it if it is already open.
The endfsent() function closes the file.
The getfsspec() and getfsfile() functions 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, getfsent() reads the next entry (opening the file if necessary).
All entries in the file with a type field equivalent to FSTAB_XX are ignored.
June 4, 1993 | NetBSD 6.1 |