[libcxx-commits] [PATCH] D98541: [SystemZ][z/OS] Define _LIBCPP_ELAST

Muiez Ahmed via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Mar 12 11:16:23 PST 2021

muiez created this revision.
muiez added a reviewer: libc++.
muiez requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added 1 blocking reviewer(s): libc++.

The aim is to define _LIBCPP_ELAST for z/OS libc++ since strerror/strerror_r can't handle out-of-range errno values.

  rG LLVM Github Monorepo



Index: libcxx/src/include/config_elast.h
--- libcxx/src/include/config_elast.h
+++ libcxx/src/include/config_elast.h
@@ -35,6 +35,8 @@
 // No _LIBCPP_ELAST needed on Apple
 #elif defined(__sun__)
+#elif defined(__MVS__)
+#define _LIBCPP_ELAST 1160
 #elif defined(_LIBCPP_MSVCRT_LIKE)
 #define _LIBCPP_ELAST (_sys_nerr - 1)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98541.330311.patch
Type: text/x-patch
Size: 428 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210312/07e57c1a/attachment.bin>

More information about the libcxx-commits mailing list