aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-08-27 09:40:16 +0000
committerRoland McGrath <roland@gnu.org>2002-08-27 09:40:16 +0000
commitd15b801cf36d57b852e847b5632d27dfea56def3 (patch)
treed81bd58e4eaeb37e0dec1a80884f95ea15c19552 /manual
parentb88ac073ae7110a56b5e4537576fb2475b9fb220 (diff)
downloadglibc-d15b801cf36d57b852e847b5632d27dfea56def3.zip
glibc-d15b801cf36d57b852e847b5632d27dfea56def3.tar.gz
glibc-d15b801cf36d57b852e847b5632d27dfea56def3.tar.bz2
* manual/sysinfo.texi (Mount Information): Correct file name to macro
assocations for _PATH_MNTTAB, MNTTAB, _PATH_MOUNTED, MOUNTED. Say mtab is in either /var/run or /etc.
Diffstat (limited to 'manual')
-rw-r--r--manual/sysinfo.texi33
1 files changed, 19 insertions, 14 deletions
diff --git a/manual/sysinfo.texi b/manual/sysinfo.texi
index 80e5841..a310240 100644
--- a/manual/sysinfo.texi
+++ b/manual/sysinfo.texi
@@ -349,13 +349,14 @@ provides some functions to retrieve this information portably.
Traditionally Unix systems have a file named @file{/etc/fstab} which
describes all possibly mounted filesystems. The @code{mount} program
-uses this file to mount at startup time of the system all the necessary
-filesystems. The information about all the filesystems actually mounted
-is normally kept in a file named @file{/etc/mtab}. Both files share
-the same syntax and it is crucial that this syntax is followed all the
-time. Therefore it is best to never directly write the files. The
-functions described in this section can do this and they also provide
-the functionality to convert the external textual representation to the
+uses this file to mount at startup time of the system all the
+necessary filesystems. The information about all the filesystems
+actually mounted is normally kept in a file named either
+@file{/var/run/mtab} or @file{/etc/mtab}. Both files share the same
+syntax and it is crucial that this syntax is followed all the time.
+Therefore it is best to never directly write the files. The functions
+described in this section can do this and they also provide the
+functionality to convert the external textual representation to the
internal representation.
Note that the @file{fstab} and @file{mtab} files are maintained on a
@@ -367,15 +368,19 @@ files as described herein.
@vindex _PATH_FSTAB
@vindex _PATH_MNTTAB
-@vindex FSTAB
@vindex _PATH_MOUNTED
+@vindex FSTAB
+@vindex MNTTAB
+@vindex MOUNTED
The filenames given above should never be used directly. The portable
-way to handle these file is to use the macros @code{_PATH_FSTAB},
-defined in @file{fstab.h} and @code{_PATH_MNTTAB}, defined in
-@file{mntent.h}, respectively. There are also two alternate macro names
-@code{FSTAB} and @code{_PATH_MOUNTED} defined but both names are
-deprecated and kept only for backward compatibility. The two former
-names should always be used.
+way to handle these file is to use the macro @code{_PATH_FSTAB},
+defined in @file{fstab.h}, or @code{_PATH_MNTTAB}, defined in
+@file{mntent.h} and @file{paths.h}, for @file{fstab}; and the macro
+@code{_PATH_MOUNTED}, also defined in @file{mntent.h} and
+@file{paths.h}, for @file{mtab}. There are also two alternate macro
+names @code{FSTAB}, @code{MNTTAB}, and @code{MOUNTED} defined but
+these names are deprecated and kept only for backward compatibility.
+The names @code{_PATH_MNTTAB} and @code{_PATH_MOUNTED} should always be used.
@menu
* fstab:: The @file{fstab} file