From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6106 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH 2/9] additions to src/time and some implied minor changes here and there Date: Sat, 6 Sep 2014 13:44:29 -0400 Message-ID: <20140906174429.GV23797@brightrain.aerifal.cx> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1410025490 24994 80.91.229.3 (6 Sep 2014 17:44:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Sep 2014 17:44:50 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6119-gllmg-musl=m.gmane.org@lists.openwall.com Sat Sep 06 19:44:43 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1XQK2U-0004iT-Pb for gllmg-musl@plane.gmane.org; Sat, 06 Sep 2014 19:44:42 +0200 Original-Received: (qmail 13364 invoked by uid 550); 6 Sep 2014 17:44:42 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 13356 invoked from network); 6 Sep 2014 17:44:41 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:6106 Archived-At: On Mon, Sep 01, 2014 at 12:46:05AM +0200, Jens Gustedt wrote: > This refactors clock_gettime and adds two functions, thrd_sleep and > timespec_get. I'm committing just timespec_get and the time.h changes as the first commit. These are independent of threads (but needed to use the full C11 threads API). I've put the header and implementation changes together in one commit so that there's not a revision that has one but not the other (in which case it would be a possibly-mildly-broken revision). I also found that struct timespec needs to be exposed even without POSIX (since it's now in C11), so I fixed that too. Rich