[libc][NFC] Refactor internal errno.
authorSiva Chandra Reddy <sivachandra@google.com>
Mon, 27 Feb 2023 22:27:35 +0000 (22:27 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Tue, 28 Feb 2023 20:40:42 +0000 (20:40 +0000)
commit110ee16467734c0e782c93cfb44c68321b012908
tree152de9262805e861ec92c4d1fc6b666f14145a9a
parentacc30a169eabae8ae7d46e8dc3b6466abbc53dc4
[libc][NFC] Refactor internal errno.

This is in preparation for the transition to a solution to make libc tests
hermetic with respect to their use of errno. The implementation of strdup
has been switched over to libc_errno as an example of what the code looks
like in the new way.

See #61037 for more information.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D144928
libc/src/errno/CMakeLists.txt
libc/src/errno/dummy_errno.cpp [deleted file]
libc/src/errno/dummy_errno.h [deleted file]
libc/src/errno/errno.cpp [deleted file]
libc/src/errno/libc_errno.cpp [new file with mode: 0644]
libc/src/errno/libc_errno.h [new file with mode: 0644]
libc/src/errno/llvmlibc_errno.h
libc/src/string/CMakeLists.txt
libc/src/string/strdup.cpp