This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [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>
- Date: Tue, 3 Mar 2015 15:32:45 +0800
- Subject: Re: [PATCH] manual: unmark locale from addmntent and putpwent
- Authentication-results: sourceware.org; auth=none
- References: <1416822086-13020-1-git-send-email-mashimiao dot fnst at cn dot fujitsu dot com>
Ping
On 11/24/2014 05:41 PM, Ma Shimiao wrote:
> 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
>
--
Ma Shimiao
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)