Re: C11 visibility in libc++

2019-12-08 Thread Jeremie Courreges-Anglas
On Sat, Dec 07 2019, Jonathan Gray  wrote:
> While we don't have C11's quick_exit() we do have timespec_get() and
> struct timespec/aligned_alloc().

LGTM, ok jca@

For other readers, no shared_libs bump is needed, this only affects
the headers.


> Index: include/__config
> ===
> RCS file: /cvs/src/lib/libcxx/include/__config,v
> retrieving revision 1.6
> diff -u -p -r1.6 __config
> --- include/__config  17 Jun 2019 22:28:51 -  1.6
> +++ include/__config  7 Dec 2019 03:10:51 -
> @@ -341,6 +341,9 @@
>  #  if defined(__FreeBSD__)
>  #define _LIBCPP_HAS_QUICK_EXIT
>  #define _LIBCPP_HAS_C11_FEATURES
> +#  elif defined(__OpenBSD__)
> +#define _LIBCPP_HAS_TIMESPEC_GET
> +#define _LIBCPP_HAS_C11_FEATURES
>  #  elif defined(__Fuchsia__)
>  #define _LIBCPP_HAS_QUICK_EXIT
>  #define _LIBCPP_HAS_TIMESPEC_GET
>

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE



Re: C11 visibility in libc++

2019-12-07 Thread Mark Kettenis
> Date: Sat, 7 Dec 2019 14:24:14 +1100
> From: Jonathan Gray 
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> 
> While we don't have C11's quick_exit() we do have timespec_get() and
> struct timespec/aligned_alloc().

ok kettenis@

> Index: include/__config
> ===
> RCS file: /cvs/src/lib/libcxx/include/__config,v
> retrieving revision 1.6
> diff -u -p -r1.6 __config
> --- include/__config  17 Jun 2019 22:28:51 -  1.6
> +++ include/__config  7 Dec 2019 03:10:51 -
> @@ -341,6 +341,9 @@
>  #  if defined(__FreeBSD__)
>  #define _LIBCPP_HAS_QUICK_EXIT
>  #define _LIBCPP_HAS_C11_FEATURES
> +#  elif defined(__OpenBSD__)
> +#define _LIBCPP_HAS_TIMESPEC_GET
> +#define _LIBCPP_HAS_C11_FEATURES
>  #  elif defined(__Fuchsia__)
>  #define _LIBCPP_HAS_QUICK_EXIT
>  #define _LIBCPP_HAS_TIMESPEC_GET
> 
> 



C11 visibility in libc++

2019-12-06 Thread Jonathan Gray
While we don't have C11's quick_exit() we do have timespec_get() and
struct timespec/aligned_alloc().

Index: include/__config
===
RCS file: /cvs/src/lib/libcxx/include/__config,v
retrieving revision 1.6
diff -u -p -r1.6 __config
--- include/__config17 Jun 2019 22:28:51 -  1.6
+++ include/__config7 Dec 2019 03:10:51 -
@@ -341,6 +341,9 @@
 #  if defined(__FreeBSD__)
 #define _LIBCPP_HAS_QUICK_EXIT
 #define _LIBCPP_HAS_C11_FEATURES
+#  elif defined(__OpenBSD__)
+#define _LIBCPP_HAS_TIMESPEC_GET
+#define _LIBCPP_HAS_C11_FEATURES
 #  elif defined(__Fuchsia__)
 #define _LIBCPP_HAS_QUICK_EXIT
 #define _LIBCPP_HAS_TIMESPEC_GET