This is an archive of the discontinued LLVM Phabricator instance.

[VFS] Use generic_category for errors generated from the VFS
ClosedPublic

Authored by bnbarham on Feb 21 2022, 9:26 PM.

Details

Summary

Errors are generally checked in clients by comparing to the portable
error condition in std::errc, which will have the generic_category
(eg. std::errc::no_such_file_or_directory). While in practice these
are usually equivalent for the standard errno's, they are not in *all*
implementations. One such example is CentOS 7.

Diff Detail

Event Timeline

bnbarham created this revision.Feb 21 2022, 9:26 PM
bnbarham requested review of this revision.Feb 21 2022, 9:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 21 2022, 9:26 PM
keith accepted this revision.Feb 22 2022, 10:38 AM
This revision is now accepted and ready to land.Feb 22 2022, 10:38 AM
This revision was landed with ongoing or failed builds.Feb 22 2022, 3:09 PM
This revision was automatically updated to reflect the committed changes.