[all-commits] [llvm/llvm-project] 0acb63: [libc] move strerror and strsignal to OS msg maps

michaelrj-google via All-commits all-commits at lists.llvm.org
Tue Apr 18 16:42:56 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0acb639fd2350d831f149035e078654a655c209b
      https://github.com/llvm/llvm-project/commit/0acb639fd2350d831f149035e078654a655c209b
  Author: Michael Jones <michaelrj at google.com>
  Date:   2023-04-18 (Tue, 18 Apr 2023)

  Changed paths:
    M libc/src/__support/StringUtil/CMakeLists.txt
    M libc/src/__support/StringUtil/error_to_string.cpp
    M libc/src/__support/StringUtil/error_to_string.h
    M libc/src/__support/StringUtil/message_mapper.h
    M libc/src/__support/StringUtil/signal_to_string.cpp
    A libc/src/__support/StringUtil/tables/CMakeLists.txt
    A libc/src/__support/StringUtil/tables/error_table.h
    A libc/src/__support/StringUtil/tables/linux/CMakeLists.txt
    A libc/src/__support/StringUtil/tables/linux/error_table.h
    A libc/src/__support/StringUtil/tables/linux/signal_table.h
    A libc/src/__support/StringUtil/tables/posix_error_table.h
    A libc/src/__support/StringUtil/tables/posix_signal_table.h
    A libc/src/__support/StringUtil/tables/signal_table.h
    A libc/src/__support/StringUtil/tables/stdc_error_table.h
    A libc/src/__support/StringUtil/tables/stdc_signal_table.h

  Log Message:
  -----------
  [libc] move strerror and strsignal to OS msg maps

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

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D147967




More information about the All-commits mailing list