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 B325A1F45E for ; Fri, 14 Feb 2020 16:42:38 +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=fOwX PyklE4Sj/OnMf2JpVysUjbnbSJmxK+NducRSdemZ0UwOFCATNOFmC/svUV4OOjSn F/fWEjk3HFXpE3D9YQHaP6XKQNj5G5tqH5mREyzm/GmhhO79bxRLmXpYLmryfrJi pX+EOMCm0OArGHfiZf4OGE4W31Sg7OkHAR5nOC8= 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=t1l6buEPuN 4mjFVZIpb0UmrYv40=; b=UpQpxE56NDdjzoQxVE/szcFCWAIBdkJdj1Gp1UoT/x +jWYNiVptCp06ZVZEDh+JqbZChtpkr8hdD45uWNLfrWVjta81U5IggaolZYT3kbp EjH73q7NdhTFPvafwHyPfuOt2cilhcqRqFkgh6iRuoUWYAN+9/rI5dErq6QzBeqs Y= Received: (qmail 81903 invoked by alias); 14 Feb 2020 16:41:29 -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 79334 invoked by uid 89); 14 Feb 2020 16:41:08 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mail-lf1-f68.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=zPkIbg54vdWD9wFxlolySE/wuSu1US58zhkgwp7KsrM=; b=WkCZkTsMMKvRxPcrZyb5OEBukerZfBtdlyf59p8E9BXpLxJ/fVoXQJieivVGJ3dU2t dGlgaj58nv3BIf4pWKeScs/3xl9/uOPC89zKio001k6kDSUuhYnWV2eIfIwXuFXbbgQW ML58wPVVc3A+qTb22ENvcrbzPCWYTaj9ma1xYcQlrAr453OlpS96iaCWQFMOaCC4ayQW OcnAp+8o2zArrV3Mnmhk+F0Emid90r721m/3YpeWprx07xxEKlSno2GnUG1f5SNlbn/Q maQp8xa/tyZNQpY8gBTNcJSfpUg5koxrRsYIFp9VRdxTqkhVizDaX94Cn4c6f6tFwP5v YNBg== MIME-Version: 1.0 References: <20200131170354.25539-1-alistair.francis@wdc.com> In-Reply-To: <20200131170354.25539-1-alistair.francis@wdc.com> From: Alistair Francis Date: Fri, 14 Feb 2020 08:40:33 -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 Fri, Jan 31, 2020 at 9:10 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! > --- > 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 400eb89a5b..613cb4a811 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.25.0 >