[libc-commits] [PATCH] D147967: [libc] move strerror and strsignal to OS msg maps

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Apr 10 13:12:51 PDT 2023


michaelrj created this revision.
michaelrj added reviewers: sivachandra, mcgrathr.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
michaelrj requested review of this revision.

Other OSes may have different mappings from error number to message.
This creates a system to allow new platforms to define their own
mappings.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147967

Files:
  libc/src/__support/StringUtil/CMakeLists.txt
  libc/src/__support/StringUtil/error_to_string.cpp
  libc/src/__support/StringUtil/linux/CMakeLists.txt
  libc/src/__support/StringUtil/linux/strerror_map.h
  libc/src/__support/StringUtil/linux/strsignal_map.h
  libc/src/__support/StringUtil/signal_to_string.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147967.512234.patch
Type: text/x-patch
Size: 19723 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230410/a1757b18/attachment-0001.bin>


More information about the libc-commits mailing list