[all-commits] [llvm/llvm-project] 9b2943: [libc] Handle allocation failures in the dirent AP...

Siva Chandra via All-commits all-commits at lists.llvm.org
Thu Dec 15 13:05:57 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b29436a1c546bb16632d19e5a6f1edde3b6b2b2
      https://github.com/llvm/llvm-project/commit/9b29436a1c546bb16632d19e5a6f1edde3b6b2b2
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2022-12-15 (Thu, 15 Dec 2022)

  Changed paths:
    M libc/src/__support/CPP/CMakeLists.txt
    A libc/src/__support/CPP/new.cpp
    M libc/src/__support/CPP/new.h
    M libc/src/__support/File/CMakeLists.txt
    M libc/src/__support/File/dir.cpp
    M libc/src/__support/File/dir.h
    M libc/src/__support/File/linux_dir.cpp
    M libc/src/dirent/CMakeLists.txt
    M libc/src/dirent/closedir.cpp
    M libc/src/dirent/opendir.cpp
    M libc/src/dirent/readdir.cpp

  Log Message:
  -----------
  [libc] Handle allocation failures in the dirent API gracefully.

Along the way, setting of errno has been moved out of the internal code.

Reviewed By: lntue

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




More information about the All-commits mailing list