diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-11-29 06:40:52 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-11-29 06:40:52 +0000 |
commit | 37369d1cefec4d1990e59fbec613d2bc66e68eba (patch) | |
tree | 86439ecf806f00f3350470f99fb8d700b1cbe2a8 /manual | |
parent | bb3f4825c411e676c51479fea59643af540810b5 (diff) | |
download | glibc-37369d1cefec4d1990e59fbec613d2bc66e68eba.tar.gz glibc-37369d1cefec4d1990e59fbec613d2bc66e68eba.tar.xz glibc-37369d1cefec4d1990e59fbec613d2bc66e68eba.zip |
Update.
* misc/mntent_r.c (decode_name): Fix decoding of tab, add decoding of newline. * manual/sysinfo.texi (mtab): Adjust description accordingly. Reported by Andries.Brouwer@cwi.nl.
Diffstat (limited to 'manual')
-rw-r--r-- | manual/sysinfo.texi | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/manual/sysinfo.texi b/manual/sysinfo.texi index a310240801..0a44830359 100644 --- a/manual/sysinfo.texi +++ b/manual/sysinfo.texi @@ -673,12 +673,13 @@ filled with the information from the next entry from the file currently read. The file format used prescribes the use of spaces or tab characters to -separate the fields. This makes it harder to use name containing one of -these characters (e.g., mount points using spaces). Therefore these -characters are encoded in the files and the @code{getmntent} function -takes care of the decoding while reading the entries back in. -@code{'\040'} is used to encode a space character, @code{'\012'} to -encode a tab character and @code{'\\'} to encode a backslash. +separate the fields. This makes it harder to use name containing one +of these characters (e.g., mount points using spaces). Therefore +these characters are encoded in the files and the @code{getmntent} +function takes care of the decoding while reading the entries back in. +@code{'\040'} is used to encode a space character, @code{'\011'} to +encode a tab character, @code{'\012'} to encode a newline character, +and @code{'\\'} to encode a backslash. If there was an error or the end of the file is reached the return value is @code{NULL}. |