[libc-commits] [PATCH] D144587: [libc][For demonstration only] Refactor how errno is accessed in libc interal code.
Siva Chandra via Phabricator via libc-commits
libc-commits at lists.llvm.org
Wed Feb 22 12:19:40 PST 2023
sivachandra created this revision.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
sivachandra requested review of this revision.
Internal code should read/set errno using the new macro `libc_errno`
introduced by this change. When building for tests, this macro resolves
to an internal libc only errno variable. Which means, libc tests
will not affect the global errno value (the errno of the libc to which
the tests are linked to.)
Not all tests are clean but one should be able to build the libc after
this change.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D144587
Files:
libc/config/linux/x86_64/entrypoints.txt
libc/include/CMakeLists.txt
libc/include/errno.h.def
libc/src/errno/CMakeLists.txt
libc/src/errno/errno.cpp
libc/src/errno/libc_errno.cpp
libc/src/errno/libc_errno.h
libc/src/errno/llvmlibc_errno.h
libc/src/math/generic/exp2f.cpp
libc/src/time/time_utils.h
libc/test/UnitTest/CMakeLists.txt
libc/test/UnitTest/FPMatcher.h
libc/test/src/errno/CMakeLists.txt
libc/test/src/errno/errno_test.cpp
libc/test/src/math/exp2f_test.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144587.499618.patch
Type: text/x-patch
Size: 13122 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230222/f2f2b4dc/attachment.bin>
More information about the libc-commits
mailing list