This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] manual: unmark locale from addmntent and putpwent


 fprintf will use locale relative macros in the following two status:
 1) the format passed to fprintf has "\'" character
 2) the format passed to fprintf has custom format specifier
when calling fprintf, addmntent and putpwent do not meet any one of
the above conditions.

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
---
 manual/sysinfo.texi | 4 ++--
 manual/users.texi   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/manual/sysinfo.texi b/manual/sysinfo.texi
index e6c44d6..e9cef36 100644
--- a/manual/sysinfo.texi
+++ b/manual/sysinfo.texi
@@ -790,8 +790,8 @@ end of file reached,
 @comment mntent.h
 @comment BSD
 @deftypefun int addmntent (FILE *@var{stream}, const struct mntent *@var{mnt})
-@safety{@prelim{}@mtsafe{@mtsrace{:stream} @mtslocale{}}@asunsafe{@asucorrupt{}}@acunsafe{@acucorrupt{}}}
-@c addmntent @mtasurace:stream @mtslocale @asucorrupt @acucorrupt
+@safety{@prelim{}@mtsafe{@mtsrace{:stream}}@asunsafe{@asucorrupt{}}@acunsafe{@acucorrupt{}}}
+@c addmntent @mtsrace:stream @asucorrupt @acucorrupt
 @c  fseek dup @asucorrupt @acucorrupt [no @aculock]
 @c  encode_name ok
 @c  fprintf dup @mtslocale @asucorrupt @acucorrupt [no @ascuheap @acsmem, no @aculock]
diff --git a/manual/users.texi b/manual/users.texi
index e8f0f3b..6123998 100644
--- a/manual/users.texi
+++ b/manual/users.texi
@@ -2313,8 +2313,8 @@ This function closes the internal stream used by @code{getpwent} or
 @comment pwd.h
 @comment SVID
 @deftypefun int putpwent (const struct passwd *@var{p}, FILE *@var{stream})
-@safety{@prelim{}@mtsafe{@mtslocale{}}@asunsafe{@asucorrupt{}}@acunsafe{@aculock{} @acucorrupt{}}}
-@c putpwent @mtslocale @asucorrupt @aculock @acucorrupt
+@safety{@prelim{}@mtsafe{}@asunsafe{@asucorrupt{}}@acunsafe{@aculock{} @acucorrupt{}}}
+@c putpwent @asucorrupt @aculock @acucorrupt
 @c  fprintf dup @mtslocale @asucorrupt @aculock @acucorrupt [no @ascuheap @acsmem]
 This function writes the user entry @code{*@var{p}} to the stream
 @var{stream}, in the format used for the standard user database
-- 
1.8.3.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]