From 37369d1cefec4d1990e59fbec613d2bc66e68eba Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 29 Nov 2003 06:40:52 +0000 Subject: 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. --- manual/sysinfo.texi | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'manual/sysinfo.texi') 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}. -- cgit v1.2.3