From patchwork Fri Nov 8 17:03:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 1192068 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-106831-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=wdc.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="AZjzali8"; dkim=pass (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.b="dS7ZYCJI"; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 478mv94ggrz9s4Y for ; Sat, 9 Nov 2019 04:08:37 +1100 (AEDT) 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:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; q=dns; s= default; b=FpLG6L6I3U0l+PIbX6i6bpx6GroR+3AmuvHnDKNY/6SFv+w3th2CQ yGnEtIFCGdgXHvX0/7I0/sgYpglvaMeivwWZ558PETtmxWTWBPwmSMPM43hpugzv 5Of6soMfU2a1CQ2OfPKOJqLXiSS8FZBu+x+EgyCoBfhO8I67HLTRos= 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:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; s=default; bh=vtBYyL/7lpUMr5QnOYSAV9tLdOo=; b=AZjzali8jPF8XYpD4WCCeEz8DtGk wxSbZU8blI6T3o/2vhQnVQJDdZ40TrHA8ajj8L/P70Z2UamVFAhHJOVhKcSS1EGs /ZgoQ4PkMdvRgasQ1uMXslNLm5SOGw7TEDS+ewGk6Mo5i1YfaZPGdtXRD8CgIlDd xjtTNGjG3SvTgkQ= Received: (qmail 75920 invoked by alias); 8 Nov 2019 17:08:26 -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 Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 75846 invoked by uid 89); 8 Nov 2019 17:08:25 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=HX-Languages-Length:808, HContent-Transfer-Encoding:8bit X-HELO: esa6.hgst.iphmx.com DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1573232905; x=1604768905; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Sq3Ufv/CQoaEF+vJIu7L15sHflpWwl1JeeB7zQvDap4=; b=dS7ZYCJIgdbn73mOmdExLE9N2C9H8oBh52z5gLHB8aXO3RKd9D6FaUqu nJuASNgrAHb2DEn2qbC/qco7pOtYZxD2R7EykiW1nuVeCG9HlC+g9yh6m V4DMspBchdkURuHxIneFH0sVqrcU9939kqMzFXdP/PVSYYqpkKPnFnfMd Hg/xrVTzLZFIdbUTdoMzO704fGBj4wWDxcm8WJ8HTkGFl/IOYbU8v3s4n QdP61iEWjk2mF4l+KUb+oxH2Zxjl5OCTS1R+8bfE+tGLKWYf7izdzgy27 WqKN+4ITDQ5uYVDA9V1H98gIhInALRLFPevwemzrMoobWTuK81b6LSPww A==; IronPort-SDR: NYS9JZCprHyvOr/KbmjMUTSmcZ+60qfTg+dLg/nxRHSUO+EXxo2IPbQKXBYPMkr9GNvbQ62Ggw Ud6Ue/zkQJhFnSKryQET5NyYJbY2fhtU/+58J0wTWI6/FnWvTv35NxsW65YsAn6Ll1e5d7ANNB qkmQ6XOOtJVssje5LXGNCG8bnbOWjttl1MnAMW5zcRibDxccwcCQQZRPT6wvRvpOqOcXd0rMQU RsnxHTfRMlEhsbU7ME5k8TSWNz9Io2YgT3oA6qbBEBursabVLxhhQ/ZlP1/jTgfpQdH6y25Xqe jis= IronPort-SDR: o9ZRoLed30RxtkmqZVsMGdFIqAEnnJ24X6CM2Oxn0yRwRtLV67N/PxaaStNPmrgUFKMp68+O1r hkDmKYhm9ompeBDx2ZdqGVCLD+Js/2adDPXuEg8seY/IIJMJPzQmxHH0adkZRUCtPT1PNvxNHu wdSWCaBTJo+rYT/Qmc33qL5TOjm1h+TGIX3qaU1ojiNaulao+AZuCv/HefwTt3fblVZlfY4vjs 6Ko+0KvPrpbmWRI5dY+N1JIBTqaEbb0Y9C5iJWtMqo7qI5RtZDl9Jja1S9i4WFV2WBmwpwMkIk 64fNDVdJPHXtQBSa9j8NFBSi IronPort-SDR: ZivJ5NWNHqV0McCtKv88ZsZHHeexCrTf3S4innPMggW8RRED6wmwTos+mRDOrgb79kMxeGqVrx d6kZldmNfVrVw0rX8YLXAWxPmaOPaq4IGT1uMv8+qP2ZEs+OZVw3mg/WB9/043EmxFlF3f3+jl qsloP3S8Jjr+uGFlnsB7ld/YoniMT+pLfdBRkUzzIs8iBK6Skm+GSkfa3uhyoZENALH2cveaKj qLxhFWYZ9sJI0wj0+kOdwot9k1i4b/oMhgarxRW2DLhsSykm7cQuaKpeypOiVzQYCYcVxhHJev kkY= WDCIronportException: Internal From: Alistair Francis To: libc-alpha@sourceware.org Cc: alistair23@gmail.com, Alistair Francis Subject: [PATCH v6 2/3] time: Define time64 thrd_sleep Date: Fri, 8 Nov 2019 09:03:01 -0800 Message-Id: <20191108170302.29838-2-alistair.francis@wdc.com> In-Reply-To: <20191108170302.29838-1-alistair.francis@wdc.com> References: <20191108170302.29838-1-alistair.francis@wdc.com> MIME-Version: 1.0 Signed-off-by: Alistair Francis --- include/time.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/time.h b/include/time.h index d7800eb30f8..cbacf4fc9d7 100644 --- a/include/time.h +++ b/include/time.h @@ -210,8 +210,12 @@ libc_hidden_proto (__difftime64) extern double __difftime (time_t time1, time_t time0); #if __TIMESIZE == 64 +# define __thrd_sleep_time64 thrd_sleep # define __clock_nanosleep_time64 __clock_nanosleep #else +extern int __thrd_sleep_time64 (const struct __timespec64* time_point, + struct __timespec64* remaining); +libc_hidden_proto (__thrd_sleep_time64) extern int __clock_nanosleep_time64 (clockid_t clock_id, int flags, const struct __timespec64 *req, struct __timespec64 *rem);