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 509D11F463 for ; Wed, 18 Dec 2019 08:46:32 +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=e2JwM ypoh7WYJhgaLMVo8Mdn3jJOq++v5dD+MI2kssRV2REO0jsjn2/hY9AaPh10Nsswn nPDcpP2dbqWQRVXUdHIBQw4m6QjD6sA8hwuHyd5aCQl7tscnO+uQVBBnpiZJBPYT cOJzUY+L2lBF4evqxbpd7PN7AubJVYRbu8AacY= 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=fgpUNufFEzQ icUVjIq363H+j2+Y=; b=OCOR9AGRdyJDi6zOA1bszcAUdu1t+eF7mreT5Vk/But 3iQJaHEJVbJZm7s3byRAK4hv/Otd/qR38CzgJTivCrhrmbQnZ219lP70COUW2IJs H8++uwvVR3/QAwz89nB8lOQjpfX3U5BeLlY6xzAWAf5JaWXnPOrw4xalghkkyyo4 = Received: (qmail 6903 invoked by alias); 18 Dec 2019 08:46:20 -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 6838 invoked by uid 89); 18 Dec 2019 08:46:20 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mx2.suse.de From: Andreas Schwab To: Adhemerval Zanella Cc: libc-alpha@sourceware.org Subject: Re: [PATCH 06/16] linux: Consolidate Linux gettimeofday References: <20191217214728.2886-1-adhemerval.zanella@linaro.org> <20191217214728.2886-6-adhemerval.zanella@linaro.org> X-Yow: I appoint you ambassador to Fantasy Island!!! Date: Wed, 18 Dec 2019 09:46:15 +0100 In-Reply-To: <20191217214728.2886-6-adhemerval.zanella@linaro.org> (Adhemerval Zanella's message of "Tue, 17 Dec 2019 18:47:18 -0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."