From patchwork Tue Mar 3 07:28:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ma Shimiao X-Patchwork-Id: 445563 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id E3AE414007D for ; Tue, 3 Mar 2015 18:28:55 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=sourceware.org header.i=@sourceware.org header.b=MqNCw9wZ; dkim-adsp=none (unprotected policy); dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-type; q=dns; s=default; b=mFc2ZUIp0fLO825e KCqgelAXcEkPLkUuFHCXY2lv4zPcByvzHbymRKVsLviyfseGK8VGySNvNpF8D8Xb oEbuNcJesPHEBEH1FCmGy3E0Fdp/ew9tNHeuElBzJQp2MAH8W3Jhcv+Trlsoc4aR +/RN7cvInd//SEsEkmQ9hDn6V/Y= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-type; s=default; bh=taD/h3okd3qa8prWldMMy8 SDNZ4=; b=MqNCw9wZho4YDFeWGkXHOv40HhlSORayg1DCoya1w/Oz+sfaA+jMtz jq3fp9+OToqahmXcw0nUqFVVy10WFnUEMKZyvyNUP6NTh37amDmQ1ypFdJ2oL325 CRw1GMo+24iXgGmgsY5L9aBrCS8SMUs0udK0rQY4z3gFW/sepeWUk= Received: (qmail 5566 invoked by alias); 3 Mar 2015 07:28:50 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 5554 invoked by uid 89); 3 Mar 2015 07:28:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: heian.cn.fujitsu.com From: Ma Shimiao To: CC: Ma Shimiao Subject: [PATCH] manual/memory.texi: Remove locale from muntrace's markings Date: Tue, 3 Mar 2015 15:28:34 +0800 Message-ID: <1425367714-17334-1-git-send-email-mashimiao.fnst@cn.fujitsu.com> MIME-Version: 1.0 Signed-off-by: Ma Shimiao --- ChangeLog | 5 +++++ manual/memory.texi | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d59e1db..dfac126 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-03-03 Ma Shimiao + + * manual/memory.texi (muntrace): It actually does not have + locale problem. + 2015-03-02 Roland McGrath * sysdeps/pthread/timer_routines.c diff --git a/manual/memory.texi b/manual/memory.texi index 0729e70..a77c2dc 100644 --- a/manual/memory.texi +++ b/manual/memory.texi @@ -1700,9 +1700,13 @@ systems. The prototype can be found in @file{mcheck.h}. @comment mcheck.h @comment GNU @deftypefun void muntrace (void) -@safety{@prelim{}@mtunsafe{@mtasurace{:mtrace} @mtasuconst{:malloc_hooks} @mtslocale{}}@asunsafe{@asucorrupt{} @ascuheap{}}@acunsafe{@acucorrupt{} @acsmem{} @aculock{} @acsfd{}}} +@safety{@prelim{}@mtunsafe{@mtasurace{:mtrace} @mtasuconst{:malloc_hooks}}@asunsafe{@asucorrupt{} @ascuheap{}}@acunsafe{@acucorrupt{} @acsmem{} @aculock{} @acsfd{}}} +@c As we know, only if we passes custom string format or format which +@c contains single quota to fprintf(), locale problem will occur. +@c Though calls function fprintf(), muntrace() will not execute the +@c area which causes locale problem. -@c muntrace @mtasurace:mtrace @mtslocale @asucorrupt @ascuheap @acucorrupt @acsmem @aculock @acsfd +@c muntrace @mtasurace:mtrace @asucorrupt @ascuheap @acucorrupt @acsmem @aculock @acsfd @c fprintf (fputs) dup @mtslocale @asucorrupt @ascuheap @acsmem @aculock @acucorrupt @c fclose dup @ascuheap @asulock @aculock @acsmem @acsfd The @code{muntrace} function can be called after @code{mtrace} was used