getfsent(3) Library Functions Manual getfsent(3) getfsent, getfsspec, getfsfile, setfsent, endfsent - fstab C (libc, -lc) #include int setfsent(void); struct fstab *getfsent(void); void endfsent(void); struct fstab *getfsfile(const char *mount_point); struct fstab *getfsspec(const char *special_file); /etc/fstab. struct fstab : struct fstab { char *fs_spec; /* block device name */ char *fs_file; /* mount point */ char *fs_vfstype; /* filesystem type */ char *fs_mntops; /* mount options */ const char *fs_type; /* rw/rq/ro/sw/xx option */ int fs_freq; /* dump frequency, in days */ int fs_passno; /* pass number on parallel dump */ }; fs_type ( *BSD) : <>, <>, <>, <>, <> (-, - , -, , ). setfsent() . getfsent() ( , ). endfsent() , . getfsspec() , fs_spec special_file . getfsfile() , fs_file mount_point . getfsent(), getfsfile() getfsspec() struct fstab, setfsent() 1. , , NULL 0. attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |endfsent(), setfsent() | | MT-Unsafe race:fsent | +----------------------------+----------------------------------------------------------+--------------------------+ |getfsent(), getfsspec(), | | MT-Unsafe race:fsent | |getfsfile() | | locale | +----------------------------+----------------------------------------------------------+--------------------------+ Several operating systems have these functions, for example, *BSD, SunOS, Digital UNIX, AIX (which also has a getfstype()). HP-UX has functions of the same names, that however use a struct checklist instead of a struct fstab, and calls these functions obsolete, superseded by getmntent(3). None. The getfsent() function appeared in 4.0BSD; the other four functions appeared in 4.3BSD. . Linux , , , ( ), getfsfile() getfsspec() , . Linux. getmntent(3), fstab(5) () Azamat Hackimov , Dmitry Bolkhovskikh , Vladislav , Yuri Kozlov ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . getfsent(3)