delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:cc:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=XcV370E9SvV5WCMiZPsBFuzKZmg1I/tZxkv8vDhvR0v3a0ybPfE+u | |
zZZp9dxSiEGF0Xmhb/FdDMVwzlgcwFZpUvps4hX9Avnjz9bxLC8qzFK6MSipGvbC | |
+NPHePFYyf0yjVSfODs/YV7LrwNKUtW8JzUCXsmtfLNHRU4kstY2Cg= | |
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:date:from:to:cc:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=8KDnH7x2cb291huvQsZZzSVBZ6s=; b=IHwnU8f8rGvaFfaN6P8D4AOzvm8Y | |
vh8rNMmP1Y4Top4yUCe6zUJQc4vRVsJn/jbaw59zMDnVx0UYFLLOtAMwAZhvN5NL | |
5x+tlw6RUUqj3KsKdWsY91UoLKN/pTidZwiRjmUCnP4XiigP8/l9UkC2Dp35kwqE | |
+vUtH6rcJot/+6A= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-Spam-SWARE-Status: | No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 |
Date: | Thu, 11 Apr 2013 21:52:00 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Cc: | fortran AT gcc DOT gnu DOT org |
Subject: | Re: Cygwin with clock_gettime and CLOCK_MONOTONIC - gives always 0 |
Message-ID: | <20130411195200.GJ18333@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com, fortran AT gcc DOT gnu DOT org |
Mail-Followup-To: | cygwin AT cygwin DOT com, fortran AT gcc DOT gnu DOT org |
References: | <5166A0B3 DOT 70801 AT net-b DOT de> <5166BCA1 DOT 5040204 AT net-b DOT de> <20130411134835 DOT GD18333 AT calimero DOT vinschen DOT de> <51670B6B DOT 3000503 AT net-b DOT de> |
MIME-Version: | 1.0 |
In-Reply-To: | <51670B6B.3000503@net-b.de> |
User-Agent: | Mutt/1.5.21 (2010-09-15) |
On Apr 11 21:13, Tobias Burnus wrote: > Corinna Vinschen wrote: > >Works fine for me with the current Cygwin 1.7.17, and the upcoming > >Cygwin 1.7.18: > > if (!clock_gettime (CLOCK_MONOTONIC, &tp)) > > printf ("tv_sec = %ld, tv_nsec = %ld\n", tp.tv_sec, tp.tv_nsec); > ... > > tv_sec = 0, tv_nsec = 29920 > > Where is actually the source code of the clock_gettime, which Cygwin > uses? I thought that it was newlib. But looking at > http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libc/sys/linux/clock_gettime.c?cvsroot=src > the code should return -1 for "clock_gettime (CLOCK_MONOTONIC" as > CLOCK_MONOTONIC (= 4) is not handled, only CLOCK_REALTIME (= 1, > according to src/newlib/libc/include/time.h). > > However, as both you and Angelo get a zero return value, I must look > at the wrong file. Yes, for Cygwin it's http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/timer.cc?cvsroot=src Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |