mirror of git://sourceware.org/git/glibc.git
* 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.
This commit is contained in:
parent
b88ac073ae
commit
d15b801cf3
|
@ -1,3 +1,9 @@
|
||||||
|
2002-08-27 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2002-08-26 Roland McGrath <roland@redhat.com>
|
2002-08-26 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
* manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
|
* manual/errno.texi (Error Codes): Added ECANCELED (118 for Hurd).
|
||||||
|
|
|
@ -349,13 +349,14 @@ provides some functions to retrieve this information portably.
|
||||||
|
|
||||||
Traditionally Unix systems have a file named @file{/etc/fstab} which
|
Traditionally Unix systems have a file named @file{/etc/fstab} which
|
||||||
describes all possibly mounted filesystems. The @code{mount} program
|
describes all possibly mounted filesystems. The @code{mount} program
|
||||||
uses this file to mount at startup time of the system all the necessary
|
uses this file to mount at startup time of the system all the
|
||||||
filesystems. The information about all the filesystems actually mounted
|
necessary filesystems. The information about all the filesystems
|
||||||
is normally kept in a file named @file{/etc/mtab}. Both files share
|
actually mounted is normally kept in a file named either
|
||||||
the same syntax and it is crucial that this syntax is followed all the
|
@file{/var/run/mtab} or @file{/etc/mtab}. Both files share the same
|
||||||
time. Therefore it is best to never directly write the files. The
|
syntax and it is crucial that this syntax is followed all the time.
|
||||||
functions described in this section can do this and they also provide
|
Therefore it is best to never directly write the files. The functions
|
||||||
the functionality to convert the external textual representation to the
|
described in this section can do this and they also provide the
|
||||||
|
functionality to convert the external textual representation to the
|
||||||
internal representation.
|
internal representation.
|
||||||
|
|
||||||
Note that the @file{fstab} and @file{mtab} files are maintained on a
|
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_FSTAB
|
||||||
@vindex _PATH_MNTTAB
|
@vindex _PATH_MNTTAB
|
||||||
@vindex FSTAB
|
|
||||||
@vindex _PATH_MOUNTED
|
@vindex _PATH_MOUNTED
|
||||||
|
@vindex FSTAB
|
||||||
|
@vindex MNTTAB
|
||||||
|
@vindex MOUNTED
|
||||||
The filenames given above should never be used directly. The portable
|
The filenames given above should never be used directly. The portable
|
||||||
way to handle these file is to use the macros @code{_PATH_FSTAB},
|
way to handle these file is to use the macro @code{_PATH_FSTAB},
|
||||||
defined in @file{fstab.h} and @code{_PATH_MNTTAB}, defined in
|
defined in @file{fstab.h}, or @code{_PATH_MNTTAB}, defined in
|
||||||
@file{mntent.h}, respectively. There are also two alternate macro names
|
@file{mntent.h} and @file{paths.h}, for @file{fstab}; and the macro
|
||||||
@code{FSTAB} and @code{_PATH_MOUNTED} defined but both names are
|
@code{_PATH_MOUNTED}, also defined in @file{mntent.h} and
|
||||||
deprecated and kept only for backward compatibility. The two former
|
@file{paths.h}, for @file{mtab}. There are also two alternate macro
|
||||||
names should always be used.
|
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
|
@menu
|
||||||
* fstab:: The @file{fstab} file
|
* fstab:: The @file{fstab} file
|
||||||
|
|
Loading…
Reference in New Issue