From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 7535C1F910 for ; Thu, 3 Nov 2022 18:27:07 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=cs.ucla.edu header.i=@cs.ucla.edu header.b="D2TQQRlm"; dkim-atps=neutral Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqevV-0002Ex-Lc; Thu, 03 Nov 2022 14:26:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqevU-0002E0-E7 for bug-gnulib@gnu.org; Thu, 03 Nov 2022 14:26:52 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqevS-0004EH-9M for bug-gnulib@gnu.org; Thu, 03 Nov 2022 14:26:52 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id A1BAE160043; Thu, 3 Nov 2022 11:26:46 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id iSfQMoVfYV8S; Thu, 3 Nov 2022 11:26:45 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id D5975160045; Thu, 3 Nov 2022 11:26:45 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.9.2 zimbra.cs.ucla.edu D5975160045 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=78364E5A-2AF3-11ED-87FA-8298ECA2D365; t=1667500005; bh=/8hEea+oo9QzR9+eyAhLbrsNLOI9dYYmvto8HzsxoQs=; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type: Content-Transfer-Encoding; b=D2TQQRlmaf257DBayhaTEgh7rArl8qSSyrG+lkWVgWS3JP+tbXDQqLJivMErvDdx/ 72u7y4XIXYmi+TDY2zekwyzLlN0IRW1i8I3xD29HN4PhG5vRGh5ocODxvxlAr+n4nh HxMEnY1m24eWl20kgDgn8Hr3HJAS1zxHZxoPAD+4= X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id tg3mpGYzUeo3; Thu, 3 Nov 2022 11:26:45 -0700 (PDT) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id A7559160041; Thu, 3 Nov 2022 11:26:45 -0700 (PDT) Message-ID: <2f9a6dd4-ebba-f452-6f30-635515f8c49f@cs.ucla.edu> Date: Thu, 3 Nov 2022 11:26:45 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: scratch_buffer.h, scratch_buffer_dupfree.c sync Content-Language: en-US To: Florian Weimer , Bruno Haible Cc: bug-gnulib@gnu.org, Karl Berry References: <202211022237.2A2Mb6uK000339@freefriends.org> <3611769.t68216eyJU@nimes> <6854fb79-d7ec-615f-81f1-9a192ef52828@cs.ucla.edu> <1768975.kWiBISl1fq@nimes> <87v8nwfgg3.fsf@oldenburg.str.redhat.com> From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: <87v8nwfgg3.fsf@oldenburg.str.redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=131.179.128.68; envelope-from=eggert@cs.ucla.edu; helo=zimbra.cs.ucla.edu X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "bug-gnulib" Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org On 2022-11-03 04:03, Florian Weimer wrote: > I must say I was surprised to see dynarray and scratch_buffer end up in > gnulib. I never intended them to escape this way from glibc. They escaped from glibc because they're used by code shared with Gnulib (e.g., canonicalize.c). > The > interfaces and their implementation are problematic in some ways, and I > can't recommend them for general use. Thanks for letting us know. What problems do you see with the interfaces, and are there efforts to come up with a better API? The need is there in GNU apps, each of which tends to roll its own code here.