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:reply-to:subject:to:references:from:message-id | |
:date:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=JudlnCe4DnXXb3lk | |
qXFGwx2jZgt++M7gLWO/Un2TilI9U0nThpuW9jV9rH41UyixCs+tlLSbr77+tkra | |
9dATJU0qBP0a6VzNsAe9Z4pwRULCsralyqHkoYasAAU9qE5uhFAKskWV7wHv9zJs | |
vJZsljOGFoo+3N4zDV0SQTigLPA= | |
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:reply-to:subject:to:references:from:message-id | |
:date:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=bXcQwBWzSkcwO+EQoDgTvF | |
5YQpc=; b=PpmSogTFHfdqjZzJ+RDimdxtC4o/mCaugqFN+PhHqzRU291TqNpC86 | |
XtDJbQj7X/LrM8/xUJi05sW6JmUKXHY0r1r2xW5o6ehMebbBMk7bma++No/2hIby | |
eJ6UU0dradf4mvIY3vEOD/MrG2GDWsQtkUeh4WHYCFEbNzerBH0hY= | |
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 |
Authentication-Results: | sourceware.org; auth=none |
X-Spam-SWARE-Status: | No, score=-1.6 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=Take, H*R:D*ca, calgary, tee |
X-HELO: | smtp-out-no.shaw.ca |
Reply-To: | Brian DOT Inglis AT SystematicSw DOT ab DOT ca |
Subject: | Re: pthread_cond_timedwait with setclock(CLOCK_MONOTONIC) times out early |
To: | cygwin AT cygwin DOT com |
References: | <CAOWZHxdTpDD6LLVctvjFQWqQMd9cex7pp-s1YYaMAdtGECy3Yw AT mail DOT gmail DOT com> <20181126153545 DOT GM30649 AT calimero DOT vinschen DOT de> <CAOWZHxdmOeQ7o6099PERwq-FbFbdYLLm43JfR5iQm-HtfP90aw AT mail DOT gmail DOT com> <20181126164657 DOT GN30649 AT calimero DOT vinschen DOT de> <20181129101821 DOT GZ30649 AT calimero DOT vinschen DOT de> <CAOWZHxf+en-Nw20jOeeBu-TXBio07ai5ecJk2bvWDPtD0vqKFQ AT mail DOT gmail DOT com> <20181130121429 DOT GF30649 AT calimero DOT vinschen DOT de> <CAOWZHxes9wDz-Jsd4EpJAHaEUiJYais11aDFRzLVafVGzzZwqw AT mail DOT gmail DOT com> <20181130125633 DOT GH30649 AT calimero DOT vinschen DOT de> |
From: | Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca> |
Openpgp: | preference=signencrypt |
Message-ID: | <5b0bcf7f-096d-c259-ce25-9511d4bccf84@SystematicSw.ab.ca> |
Date: | Fri, 30 Nov 2018 21:27:40 -0700 |
User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 |
MIME-Version: | 1.0 |
In-Reply-To: | <20181130125633.GH30649@calimero.vinschen.de> |
X-IsSubscribed: | yes |
On 2018-11-30 05:56, Corinna Vinschen wrote: > On Nov 30 07:43, James E. King III wrote: >> On Fri, Nov 30, 2018 at 7:23 AM Corinna Vinschen wrote: >>> On Nov 29 17:38, James E. King III wrote: >>>> On Thu, Nov 29, 2018 at 5:18 AM Corinna Vinschen wrote: >>>>> I created a patch and uploaded new developer snapshots to >>>>> https://cygwin.com/snapshots/ Please give them a try. >>>> This fixed the issue for me. What's the best way to detect cygwin >>>> with this support? >>> This will show up in version 2.12.0(*) so checking the release field >>> from uname(2) should do the trick. >> Is there a programmatic way to check this without having to parse a >> bunch of char[20] from utsname.h? > How would you do this on Linux? Same: https://stackoverflow.com/questions/46280456/check-kernel-version-at-runtime-in-c - read /proc/version which is generated from utsname fields (or vice versa) using e.g fscanf $ head /proc/version CYGWIN_NT-10.0 version 2.11.2(0.329/5/3) (corinna AT calimero DOT vinschen DOT de) (gcc version 7.3.0 20180125 (Fedora Cygwin 7.3.0-2) (GCC) ) 2018-11-08 14:34 - read (or source) /{etc,usr/lib}/os-release VERSION_ID line (or variable): $ head /{etc,usr/lib}/os-release ==> /etc/os-release <== PRETTY_NAME="Debian GNU/Linux 9 (stretch)" NAME="Debian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" ==> /usr/lib/os-release <== ... [same] Could also be supported under Cygwin: $ cyg-os-release.sh | tee /usr/lib/os-release PRETTY_NAME="Cygwin 64 2.11.2 2018-11-08" NAME=Cygwin ID=cygwin ID_LIKE=msys mingw VARIANT="64" VARIANT_ID="x86_64" VERSION="2.11.2 (0.329/5/3) 2018-11-08 14:34" VERSION_ID="2.11.2" BUILD_ID="0.329/5/3 2018-11-08 14:34" CPE_NAME="cpe:/a:cygwin:cygwin:2.11.2::~~~~x64~Windows%3e%3d6.0" HOME_URL="https://cygwin.com/" SUPPORT_URL="https://cygwin.com/ml/cygwin/" BUG_REPORT_URL="https://cygwin.com/ml/cygwin/" $ (cd /etc; ln -fsv ../usr/lib/os-release .) './os-release' -> '../usr/lib/os-release' -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- 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 |