Main index | Section 3 | 日本語 | Options |
#include <fstab.h>
struct fstab { char *fs_spec; /* block special device name */ char *fs_file; /* file system path prefix */ char *fs_vfstype; /* File system type, ufs, nfs */ char *fs_mntops; /* Mount options ala -o */ char *fs_type; /* FSTAB_* from fs_mntops */ int fs_freq; /* dump frequency, in days */ int fs_passno; /* pass number on parallel fsck */ };
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 setfstab() function sets the file to be used by subsequent operations. The value set by setfstab() does not persist across calls to endfsent().
The getfstab() function returns the name of the file that will be used.
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.
PATH_FSTAB | |
If the environment variable PATH_FSTAB is set, all operations are performed against the specified file. PATH_FSTAB will not be honored if the process environment or memory address space is considered "tainted". (See issetugid(2) for more information.) | |
/etc/fstab | |
GETFSENT (3) | April 7, 2003 |
Main index | Section 3 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | A computer would deserve to be called intelligent if it could deceive a human into believing that it was human. | ” |
— Alan Turing |