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=-3.9 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,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,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 74A721F463 for ; Wed, 18 Dec 2019 14:50:56 +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:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=yMPcYo3Ti+IePwMi yDX7VfqL9hAKcOE0TNwcYpqkBZUo02009Aybiv8fx9VNbJuqm5fVHI97WZTUIziC B4GMnkx83GGbokAVj6BIXgh012XkyC46fpT0hVYwzibVsnoEps1wg1KbgsXfIWCf RMldxihQjnh0nuSgMKMOFWNMFRU= 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:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=wfi0zN5NCG4jIJa14Ljnek O5iKQ=; b=Io+njlWv6taooH0X1CKRVqUe1WKLIsd3HfF7/XssGuhmVHJZA2afcQ c72TUll7MdJ9IXIGluGHvMa78rfa4RO5vkihv2Ekl5y2J5rZvwrZ46qXrsPW+iy4 RY0wKVqNROTMXHRc6FhCHC1nVUlvJGgTaAXSgRZM/G6R7tkkyCh1U= Received: (qmail 114756 invoked by alias); 18 Dec 2019 14:50:54 -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 114748 invoked by uid 89); 18 Dec 2019 14:50:53 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mail-pf1-f195.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:autocrypt:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=K0gQKj1eD0+J7k35I5nwSHLnbJNZ/nFvBrYTr83Gtwg=; b=VyzvbGgxc1rc+v4J3cT7NUFFu8t7iiYj1HCoodxuv0w6KB4GPmIkAo4+92vZBw3R6R cFmAHhw1jQoWpD7P7j7uPb5dz3iCYedzakiokPs5aw1678kY1SCx6nwuiC7H5+cS4FXv ukRKc4C1h/aZdz1CcL9P85LrguD7fmfRvfs4oCkBaT6M8Jwy3MAdjxWxQlkqq2FepXoK HXq1sNVpzPNk93pruDt0/T/oljImj+g3VKRTdbs7jlQOaSz42XzfBcsG7/+sJahBdRqK HCAFnAp1qwjQUElIp5EbKHhS1Phto8eNETVclvelX5llCM99TQI1V+SI4lHGfjg8DTil YoDg== Subject: Re: [PATCH 06/16] linux: Consolidate Linux gettimeofday To: Andreas Schwab Cc: libc-alpha@sourceware.org References: <20191217214728.2886-1-adhemerval.zanella@linaro.org> <20191217214728.2886-6-adhemerval.zanella@linaro.org> From: Adhemerval Zanella Message-ID: <628f4718-e173-0e9f-49c9-807d131da154@linaro.org> Date: Wed, 18 Dec 2019 11:50:45 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 18/12/2019 05:46, Andreas Schwab wrote: > On Dez 17 2019, Adhemerval Zanella wrote: > >> diff --git a/sysdeps/unix/sysv/linux/gettimeofday.c b/sysdeps/unix/sysv/linux/gettimeofday.c >> new file mode 100644 >> index 0000000000..600da6b468 >> --- /dev/null >> +++ b/sysdeps/unix/sysv/linux/gettimeofday.c >> @@ -0,0 +1,57 @@ >> +/* gettimeofday - set time. Linux version. >> + Copyright (C) 2019 Free Software Foundation, Inc. >> + This file is part of the GNU C Library. >> + >> + The GNU C Library is free software; you can redistribute it and/or >> + modify it under the terms of the GNU Lesser General Public License as >> + published by the Free Software Foundation; either version 2.1 of the >> + License, or (at your option) any later version. >> + >> + The GNU C Library is distributed in the hope that it will be useful, >> + but WITHOUT ANY WARRANTY; without even the implied warranty of >> + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU >> + Lesser General Public License for more details. >> + >> + You should have received a copy of the GNU Lesser General Public >> + License along with the GNU C Library; if not, see >> + . */ >> + >> +/* Some architecture might optimize the gettimeofday by setting the plt direct >> + to vDSO symbol by using a IFUNC. */ >> +#ifdef USE_IFUNC_GETTIMEOFDAY >> +# include >> +# include >> +# include > > I think you want to include for memset. > > Andreas. > Ack.