This is an archive of the discontinued LLVM Phabricator instance.

[libc][NFC] Refactor internal errno.
ClosedPublic

Authored by sivachandra on Feb 27 2023, 3:31 PM.

Details

Summary

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.

Diff Detail

Event Timeline

sivachandra created this revision.Feb 27 2023, 3:31 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 27 2023, 3:31 PM
sivachandra requested review of this revision.Feb 27 2023, 3:31 PM
sivachandra edited the summary of this revision. (Show Details)Feb 27 2023, 3:36 PM
lntue accepted this revision.Feb 27 2023, 8:17 PM
This revision is now accepted and ready to land.Feb 27 2023, 8:17 PM
This revision was automatically updated to reflect the committed changes.
libc/src/errno/CMakeLists.txt