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: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.1 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 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 dcvr.yhbt.net (Postfix) with ESMTPS id 4BA1820248 for ; Fri, 12 Apr 2019 19:27:06 +0000 (UTC) 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:references:date:in-reply-to :message-id:mime-version:content-type; q=dns; s=default; b=yYzB4 ZEZ7NBY1vKETSClaFD1BEpNgevxcrq0ewywzXJRlJuV4pZOmyccbr+1QHT5XqV3E 6wbg7BB5ptZQbgPvmrV3DStTE+/RcsYA299iUdzk/W1al4dlG/kDHPXyVpWypghq 72S4EI6uYSw/B7weC8LB9IXsPc5ee6zEeB3X6Q= 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:references:date:in-reply-to :message-id:mime-version:content-type; s=default; bh=Ax+wAer7JgJ FbgA2r5I2LWuDV7I=; b=wNMCR82x0RSM+uU7wHjjwUyB4Ro4icyWfR6y44oWgpQ BAGuuxpgtY5LBh1svCM+KR6nmwVfgWFYLkEwnV+rOzBzPHGD0DP1KZToohwvCSEu 83aQ2K7DIj8MoFuRJXLB7lgfaxhygyJrX64agr67vCXBvb80WneOCcgK0zpjv8Gw = Received: (qmail 54077 invoked by alias); 12 Apr 2019 19:27:03 -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 Received: (qmail 54067 invoked by uid 89); 12 Apr 2019 19:27:03 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mx1.redhat.com From: Florian Weimer To: Carlos O'Donell Cc: Paul Eggert , libc-alpha@sourceware.org Subject: Re: [PATCH] Fix multiple minor tzset glitches [BZ #24004] References: <20190211163728.31655-1-eggert@cs.ucla.edu> <87h8d1e8tk.fsf@oldenburg2.str.redhat.com> <9f3882f6-e056-95d1-4506-58fd87cbf6c2@cs.ucla.edu> <875zrmysxa.fsf@oldenburg2.str.redhat.com> <1be6d504-94b4-475d-9b36-43381a4d07f8@redhat.com> <42572980-2c66-8968-7ebe-34b31e860a95@redhat.com> Date: Fri, 12 Apr 2019 21:26:57 +0200 In-Reply-To: (Carlos O'Donell's message of "Fri, 12 Apr 2019 14:57:10 -0400") Message-ID: <871s2781oe.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain * Carlos O'Donell: > On 4/12/19 2:41 PM, Paul Eggert wrote: >> On 4/12/19 10:07 AM, Carlos O'Donell wrote: >>>> One possible compromise would be for localtime to poll, and for >>>> localtime_r to not poll... >>> If users have to make code changes it's better to just add a new >>> api >>> for "Check for update?" and "Do the update!". >> >> If we add that API, will we also change localtime() to stop checking for >> and doing updates in the (undocumented) cases where localtime checks for >> and does them now? And if not, how will programs arrange for localtime >> to be faster? This would seem to be the key question. > Sure! I would be on board with changing localtime() to stop checking > for and doing updates (unless someone has a convincing argument not to > do this). I want to make localtime the canonical interface, using thread-local storage. Thanks, Florian