[libc] Make libc_errno point to internal errno for non-public builds.
authorSiva Chandra Reddy <sivachandra@google.com>
Mon, 13 Mar 2023 22:05:03 +0000 (22:05 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Tue, 14 Mar 2023 04:21:56 +0000 (04:21 +0000)
commit547e3456660000a16fc5c2a2f819f1a2b5d35b5d
treef7d40e775b2ca5f57267b679b156bd97f01884e4
parent55612b8ec4210ae9c67658cb83393e8b4e8169d4
[libc] Make libc_errno point to internal errno for non-public builds.

The macro llvmlibc_errno has also been removed. This change completes
the switch to using a hermetic errno for unit tests.

Fixes #61037

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D146005
libc/src/errno/CMakeLists.txt
libc/src/errno/libc_errno.cpp
libc/src/errno/libc_errno.h
libc/src/errno/llvmlibc_errno.h [deleted file]
libc/test/CMakeLists.txt
libc/test/ErrnoSetterMatcher.h