Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jul 2017 16:28:51 -0400
From:      Chris Ross <cross+freebsd@distal.com>
To:        Kurt Jaeger <lists@opsec.eu>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Compile-time check for clock_nanosleep()
Message-ID:  <F19A4BAB-4F6B-4BBB-998E-EAB302E8911B@distal.com>
In-Reply-To: <20170703184610.GH65214@home.opsec.eu>
References:  <BC299EA0-EFE3-4F44-BBED-8D0D18C632D4@distal.com> <20170703184610.GH65214@home.opsec.eu>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <lists@opsec.eu> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F19A4BAB-4F6B-4BBB-998E-EAB302E8911B>