From owner-freebsd-stable@freebsd.org Mon Jul 3 20:29:16 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8457E9EF7A8 for ; Mon, 3 Jul 2017 20:29:16 +0000 (UTC) (envelope-from cross+freebsd@distal.com) Received: from hydra.pix.net (hydra.pix.net [IPv6:2001:470:e254::4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.pix.net", Issuer "Pix.Com Technologies LLC CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C311980BF5 for ; Mon, 3 Jul 2017 20:29:15 +0000 (UTC) (envelope-from cross+freebsd@distal.com) Received: from mail.distal.com (mail.distal.com [IPv6:2001:470:e24c:200:0:0:0:ae25]) (authenticated bits=0) by hydra.pix.net (8.16.0.19/8.15.2) with ESMTPSA id v63KT6AL079222 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 3 Jul 2017 16:29:14 -0400 (EDT) (envelope-from cross+freebsd@distal.com) Received: from [10.151.38.52] ([173.38.117.79]) (authenticated bits=0) by mail.distal.com (8.15.2/8.15.2) with ESMTPSA id v63KT4tP010546 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 3 Jul 2017 16:29:05 -0400 (EDT) (envelope-from cross+freebsd@distal.com) From: Chris Ross Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_F9031C32-7A66-4985-AD5E-8A87836810AB"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Compile-time check for clock_nanosleep() Date: Mon, 3 Jul 2017 16:28:51 -0400 In-Reply-To: <20170703184610.GH65214@home.opsec.eu> Cc: freebsd-stable@freebsd.org To: Kurt Jaeger References: <20170703184610.GH65214@home.opsec.eu> X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jul 2017 20:29:16 -0000 --Apple-Mail=_F9031C32-7A66-4985-AD5E-8A87836810AB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jul 3, 2017, at 14:46, Kurt Jaeger wrote: >=20 > Use __FreeBSD_version from sys/param.h: >=20 > = https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/version= s.html Thanks. That looks great. Also, for my specific case of the addition = of clock_nanosleep(), it looks from time.h like I could use = "__POSIX_VISIBLE >=3D 200112=E2=80=9D. Maybe that isn=E2=80=99t safe, = since later looking at time.h on 11.0 and on 11.1, the latter has a = definition for clock_nanosleep() in that block, but the former does not. Yeah, digging around it appears that stable/11/sys/sys/param.h at = r316498 had __FreeBSD_version at 1100512, and it was raised to 1100513 = in revision 318197. And, clock_nanosleep was MFC=E2=80=99d into = 11-stable in-between the two, at revision 317618. So, not a precise = match there, but >=3D 1100513 should be safe. Thanks! - Chris --Apple-Mail=_F9031C32-7A66-4985-AD5E-8A87836810AB Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJZWqkLAAoJEPFBDnXvoNg0CNYQAKm2JVIRz+FKgTG1ZLfnjIBC JODqRrSmJ0HiepN7ImMSebARzqbqaNERGRsROwxu9mpohMl7tQs8apANb+16dIXG 13Rc+DHTMEAZr2AB6EL7S0uaVtaT1obz7vEDccLHguEPSFrj6eydIeEZlMnuJxHV VdJLPKBRYQoZV23hWkTVkZngCHWWGtwXIs6eD2ZMLRn/rA7lMdexeGjMfqFdTsK/ pe2KJNIDfOYB04ahQGRe8aXxThRdoxMm/Fc+tqUpBUUu+fM3tW8u/PmRmHw+/7og yGhD+LsSr9oWKExduog/HOJy/RYNPXYLa9lyjD3SQLoKZ2seGkGgkRZbO5gdxB+y EEdEcokpR0sQ+p2QzisGCyl4JrEXv5wDXsQavUseJqn9yIYFVPRVVuVKp2Sfk4ig JtRqQghPY26n800/k0Tb0+zumvqrRIEnb0TJCRu9YFKtFCV1JpBrsfi3EFcYr1HC 7w2TkDHfiq6KyMTH7b/gvNjJjWOkqnkrGNy0nmFoonmym/adPpYYVD7ZNRbT/7LX RMoUP/d4txswb4/c9UlPKZ8VVqJEOLHG0ugw6pinOHdRQGqhxl+lm5WBEjzCt+kC o3iIGFaH0m4t6yjr9dWLDBW3ItrXx9LXv4WcFGd3bcUbKFCiAaEpRkHftQDvU8t7 LJ4BPHxNx129l5QUTuaW =sGH1 -----END PGP SIGNATURE----- --Apple-Mail=_F9031C32-7A66-4985-AD5E-8A87836810AB--