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=-2.8 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_GMAIL_RCVD, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,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=no 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 EC16F1F463 for ; Fri, 20 Dec 2019 04:02:37 +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:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-type; q=dns; s=default; b=fxgc tUIc+LEIG/1P+4yaVX3HvQVKvi2xY6KvrlNWNQsv6RHn09RaJ6SAgeoFl7Cl7Prt /7sPUr7HSe/RpxtrJoOA5c8RLdtkoRpYiy1yI1Zwhgd+s4kAqBTwaycfg8MqYLZV zQwMBpvIxtMxj+DvhGjugsDfQBELmTMJPejMMWE= 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:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-type; s=default; bh=LWlTqeJROa Cnj3QRe9FVcMEUe9Y=; b=DrhirRS8m0PD3BOIFnSZiHvXYywUiy23FTGvxo8FsT 8M3p/O3Bf4UBQ8t46+Hi4qRuZGp4gq/inn7IF8TSJZ8q4pQy2zPJk8ic0RqcJYx5 tiEAO+3KCPqHZmbfCe4Al3YAVPkE1uQ26U9YHXezv/oo5fdRN4lVsZ5QNUw/fFYy k= Received: (qmail 115729 invoked by alias); 20 Dec 2019 04:02:35 -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 115717 invoked by uid 89); 20 Dec 2019 04:02:35 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mail-lj1-f195.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EpjCL7uIkJzKAHpSWnUofM7EKsARJrcJgY9vddBF34k=; b=efwnx3IawxZHrWptvA8sjxHzHchSv8MZEEi0cYPmisT8dihT3t4tLcXvyjTVUt0YTY UMtpEyZFF5qRQ/XAQWItSbFBwjntETbUoIKuSroPZGjnsUprPopedfc9BsxDVQdwp13S SwxhhKsSdcyZbsmdSz4dn/YcIAbGYAFVMvuxKbjO+7MIUB4ARDtMeqThc0a/Pno40Hhx /4SzaU4U35c+bttEWASznJxsW8XG3AMLQfWgkyAn7rljofPrgR7Jo9GQPZmjwUI8puRo b1wj2KbiQ6C1IDP4l+lM9smYt6JYoKmvccWQfj18FSp3kgpn2SUhvHNHyLbLIM8Zme7l rQ6Q== MIME-Version: 1.0 References: <20191112173654.19842-1-alistair.francis@wdc.com> In-Reply-To: From: Alistair Francis Date: Thu, 19 Dec 2019 20:02:03 -0800 Message-ID: Subject: Re: [PATCH] tst-clone3: Use __NR_futex_time64 if we don't have __NR_futex To: Alistair Francis Cc: GNU C Library Content-Type: text/plain; charset="UTF-8" On Mon, Dec 9, 2019 at 10:54 AM Alistair Francis wrote: > > On Tue, Dec 3, 2019 at 10:56 AM Alistair Francis wrote: > > > > On Tue, Nov 12, 2019 at 9:42 AM Alistair Francis > > wrote: > > > > > > We can't include sysdep.h in the test case (it introduces lots of > > > strange failures) so __NR_futex isn't redifined to __NR_futex_time64 by > > > 64-bit time_t 32-bit archs (y2038 safe). > > > > > > To allow the test to pass let's just do the __NR_futex_time64 syscall if > > > we don't have __NR_futex defined. > > > > Ping! > > Ping^2 Ping^3 > > > > > Alistair > > > > > > > > Signed-off-by: Alistair Francis > > > --- > > > sysdeps/unix/sysv/linux/tst-clone3.c | 4 ++++ > > > 1 file changed, 4 insertions(+) > > > > > > diff --git a/sysdeps/unix/sysv/linux/tst-clone3.c b/sysdeps/unix/sysv/linux/tst-clone3.c > > > index 76f8b08a692..c211445e77f 100644 > > > --- a/sysdeps/unix/sysv/linux/tst-clone3.c > > > +++ b/sysdeps/unix/sysv/linux/tst-clone3.c > > > @@ -56,7 +56,11 @@ f (void *a) > > > static inline int > > > futex_wait (int *futexp, int val) > > > { > > > +#ifdef __NR_futex > > > return syscall (__NR_futex, futexp, FUTEX_WAIT, val); > > > +#else > > > + return syscall (__NR_futex_time64, futexp, FUTEX_WAIT, val); > > > +#endif > > > } > > > > > > static int > > > -- > > > 2.23.0 > > >