From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 123115 invoked by alias); 12 Mar 2018 15:29:57 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 123097 invoked by uid 89); 12 Mar 2018 15:29:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=survived, H*r:2002 X-HELO: mailbackend.panix.com X-Gm-Message-State: AElRT7EOO0YUtJ3U5Mbv/3YNpYTcw1cizc57aUgBKFfDQtTTjo55NcSu 4MdApK0rOKQck1+hBT2/nHRsNvMwcmYWjlwn+4A= X-Google-Smtp-Source: AG47ELvP6aIrQchdnmVp1iw/adNsvHcGGCJHSqw9SNWLfmRXKmc6r65Naz0gyoUtbSxNcDuuSf0qYZRqfzSYG/Zs3yg= X-Received: by 10.202.63.85 with SMTP id m82mr5437917oia.64.1520868593523; Mon, 12 Mar 2018 08:29:53 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20180307193205.4751-1-zackw@panix.com> References: <20180307193205.4751-1-zackw@panix.com> From: Zack Weinberg Date: Mon, 12 Mar 2018 15:29:00 -0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/9] Use more flags parameters instead of global bits in stdio To: GNU C Library Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2018-03/txt/msg00285.txt.bz2 On Wed, Mar 7, 2018 at 2:31 PM, Zack Weinberg wrote: > I got stuck on the patch to use C99-compliant scanf in _GNU_SOURCE > mode because the interaction with ldbl-is-dbl was too confusing. The > reason it's too confusing is that C99 compliance in scanf, ldbl-is-dbl > mode in scanf, printf, and strfmon, and fortify mode in printf are > handled with mode bits on the FILE and thread-global flags that must > be set and reset at just the right times. Correct behavior is > invariably to set and then reset around just one call to a lower-level > function, and there's a better way to do that: flags parameters. > > This patch series implements _internal variants of scanf, printf, > strfmon, and syslog that take flag parameters that control C99 > compliance, ldbl-is-dbl mode, and fortification. Ping? These patches have now survived build-many-glibcs testing on all supported platforms except the Hurd (I still can't successfully build an i686-gnu cross compiler) and are waiting for review. Note that an expanded version of the "post-cleanup" has already been committed. zw