This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] manual: unmark locale from addmntent and putpwent
- From: Ma Shimiao <mashimiao dot fnst at cn dot fujitsu dot com>
- To: <libc-alpha at sourceware dot org>
- Cc: <aoliva at redhat dot com>, Ma Shimiao <mashimiao dot fnst at cn dot fujitsu dot com>
- Date: Mon, 24 Nov 2014 17:41:26 +0800
- Subject: [PATCH] manual: unmark locale from addmntent and putpwent
- Authentication-results: sourceware.org; auth=none
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