[all-commits] [llvm/llvm-project] 42bcb3: [libc] add strerror

michaelrj-google via All-commits all-commits at lists.llvm.org
Tue Sep 20 16:23:56 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 42bcb35c0f2946b66ae397515823a3792f14b067
      https://github.com/llvm/llvm-project/commit/42bcb35c0f2946b66ae397515823a3792f14b067
  Author: Michael Jones <michaelrj at google.com>
  Date:   2022-09-20 (Tue, 20 Sep 2022)

  Changed paths:
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/src/__support/CMakeLists.txt
    A libc/src/__support/error_to_string.cpp
    A libc/src/__support/error_to_string.h
    M libc/src/__support/integer_to_string.h
    M libc/src/string/CMakeLists.txt
    A libc/src/string/strerror.cpp
    A libc/src/string/strerror.h
    M libc/test/ErrnoSetterMatcher.h
    M libc/test/src/string/CMakeLists.txt
    A libc/test/src/string/strerror_test.cpp

  Log Message:
  -----------
  [libc] add strerror

Strerror maps error numbers to strings. Additionally, a utility for
mapping errors to strings was added so that it could be reused for
perror and similar.

Reviewed By: sivachandra

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




More information about the All-commits mailing list