From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42324 invoked by alias); 1 Dec 2018 09:53:28 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 42316 invoked by uid 89); 1 Dec 2018 09:53:27 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-98.2 required=5.0 tests=BAYES_50,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=2.11.2, UD:debian.org, 20181108, home_url X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.135) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 01 Dec 2018 09:53:26 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M1q8m-1gVDp52o9Y-002HiC for ; Sat, 01 Dec 2018 10:53:23 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 06EAFA803CC; Sat, 1 Dec 2018 10:53:23 +0100 (CET) Date: Sat, 01 Dec 2018 09:53:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: pthread_cond_timedwait with setclock(CLOCK_MONOTONIC) times out early Message-ID: <20181201095322.GN30649@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20181126153545.GM30649@calimero.vinschen.de> <20181126164657.GN30649@calimero.vinschen.de> <20181129101821.GZ30649@calimero.vinschen.de> <20181130121429.GF30649@calimero.vinschen.de> <20181130125633.GH30649@calimero.vinschen.de> <5b0bcf7f-096d-c259-ce25-9511d4bccf84@SystematicSw.ab.ca> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="/Y6L//1es8ezVqBy" Content-Disposition: inline In-Reply-To: <5b0bcf7f-096d-c259-ce25-9511d4bccf84@SystematicSw.ab.ca> User-Agent: Mutt/1.9.2 (2017-12-15) X-SW-Source: 2018-12/txt/msg00007.txt.bz2 --/Y6L//1es8ezVqBy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1954 On Nov 30 21:27, Brian Inglis wrote: > 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? >=20 > Same: > https://stackoverflow.com/questions/46280456/check-kernel-version-at-runt= ime-in-c >=20 > - read /proc/version which is generated from utsname fields (or vice vers= a) > using e.g fscanf >=20 > $ head /proc/version > CYGWIN_NT-10.0 version 2.11.2(0.329/5/3) (corinna@calimero.vinschen.de) (= gcc > version 7.3.0 20180125 (Fedora Cygwin 7.3.0-2) (GCC) ) 2018-11-08 14:34 >=20 > - read (or source) /{etc,usr/lib}/os-release VERSION_ID line (or variable= ): >=20 > $ head /{etc,usr/lib}/os-release > =3D=3D> /etc/os-release <=3D=3D > PRETTY_NAME=3D"Debian GNU/Linux 9 (stretch)" > NAME=3D"Debian GNU/Linux" > VERSION_ID=3D"9" > VERSION=3D"9 (stretch)" > ID=3Ddebian > HOME_URL=3D"https://www.debian.org/" > SUPPORT_URL=3D"https://www.debian.org/support" > BUG_REPORT_URL=3D"https://bugs.debian.org/" >=20 > =3D=3D> /usr/lib/os-release <=3D=3D > ... [same] >=20 > Could also be supported under Cygwin: We don't have OS releases. Every component in Cygwin has its own release cycle and the version number of the Cygwin DLL is *not* a os release number. What sense would this file have for us? Corinna --=20 Corinna Vinschen Cygwin Maintainer --/Y6L//1es8ezVqBy Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlwCWhIACgkQ9TYGna5E T6DlXA/9GZR/CkqtjTOABNimeyGoYw9IGIm9ife7U7w/yXxLLKOCqyLispr/1o5a r2ae9Ynwt5rVu3eEA7WY8s/zGEH1HpwbAjXxvY4DmcrDJ3lDhynbnvXK+BT6eQxw Opo9nmJYF0eNZqD9SASEiPF86drwW+mmguZsl5qtOfTpyhbnBr8JOI1UTSlQb3BW tFq1Uw2NuYKhTNW4yTlqm5JzFT6dzR+JhZxyvXFdzoVGc39IEjARF/AfcgLHNp+S EdVKoN7bXlU15yyVmy4Fys8CRIVg4x/l6R0aCDTj55QnVyaH3MP4/8f79TrzG1Lp /9hODh+7S8t2m7Uv3vy7cSBGgkGbQ8HBroSMW3FUSc7tDo3/0K3fegOqGUI26ESq XjtngQBY9+GUf9CoBBUhwwFmf7KvXOG9+qVHnlqGN1faKVTLsgAm5fj8ZSAI1Zw8 pB9/Yorff+By6AjOjUrXdARSnIWlPaitJ6KdW/ZBI+9KJpV4bThrWC/kEPAjNAop GcE3o7QZW4CDWHWJAS3+DzZ4y3L9QIWBiMcx2g8OE5hjxBF9nmNTaZEgdG1xItuL DhHHWeFVjzFhJ92174EL6/XLS397paObFDIm7QnA1rGyFWDAQB5ndwam5rM+4c97 MQKzsOBe2UyxRmfK8oLz0H5FuKlWoUkpiZEODXG7EBQxnGUk/sA= =lgqA -----END PGP SIGNATURE----- --/Y6L//1es8ezVqBy--