diff --git a/libc/src/errno/CMakeLists.txt b/libc/src/errno/CMakeLists.txt --- a/libc/src/errno/CMakeLists.txt +++ b/libc/src/errno/CMakeLists.txt @@ -1,7 +1,7 @@ add_entrypoint_object( __errno_location SRCS - errno_location.cpp + __errno_location.cpp HDRS - llvmlibc_errno.h + __errno_location.h ) diff --git a/libc/src/errno/llvmlibc_errno.h b/libc/src/errno/__errno_location.h rename from libc/src/errno/llvmlibc_errno.h rename to libc/src/errno/__errno_location.h --- a/libc/src/errno/llvmlibc_errno.h +++ b/libc/src/errno/__errno_location.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_SRC_ERRNO_LLVMLIBC_ERRNO_H -#define LLVM_LIBC_SRC_ERRNO_LLVMLIBC_ERRNO_H +#ifndef LLVM_LIBC_SRC_ERRNO_ERRNO_LOCATION_H +#define LLVM_LIBC_SRC_ERRNO_ERRNO_LOCATION_H // Internal code should use this and not use the errno macro from the // public header. @@ -19,4 +19,4 @@ } // namespace __llvm_libc -#endif // LLVM_LIBC_SRC_ERRNO_LLVMLIBC_ERRNO_H +#endif // LLVM_LIBC_SRC_ERRNO_ERRNO_LOCATION_H diff --git a/libc/src/errno/errno_location.cpp b/libc/src/errno/__errno_location.cpp rename from libc/src/errno/errno_location.cpp rename to libc/src/errno/__errno_location.cpp --- a/libc/src/errno/errno_location.cpp +++ b/libc/src/errno/__errno_location.cpp @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" #include "src/__support/common.h" diff --git a/libc/src/math/math_utils.h b/libc/src/math/math_utils.h --- a/libc/src/math/math_utils.h +++ b/libc/src/math/math_utils.h @@ -12,7 +12,7 @@ #include "include/errno.h" #include "include/math.h" #include "src/__support/common.h" -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" #include "utils/CPP/TypeTraits.h" #include diff --git a/libc/src/signal/linux/sigaction.cpp b/libc/src/signal/linux/sigaction.cpp --- a/libc/src/signal/linux/sigaction.cpp +++ b/libc/src/signal/linux/sigaction.cpp @@ -8,7 +8,7 @@ #define __LLVM_LIBC_INTERNAL_SIGACTION #include "src/signal/sigaction.h" -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" #include "src/signal/linux/signal.h" #include "src/__support/common.h" diff --git a/libc/src/signal/linux/sigaddset.cpp b/libc/src/signal/linux/sigaddset.cpp --- a/libc/src/signal/linux/sigaddset.cpp +++ b/libc/src/signal/linux/sigaddset.cpp @@ -8,7 +8,7 @@ #include "src/signal/sigaddset.h" #include "include/errno.h" // For E* macros. -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" #include "src/signal/linux/signal.h" #include "src/__support/common.h" diff --git a/libc/src/signal/linux/sigdelset.cpp b/libc/src/signal/linux/sigdelset.cpp --- a/libc/src/signal/linux/sigdelset.cpp +++ b/libc/src/signal/linux/sigdelset.cpp @@ -8,7 +8,7 @@ #include "src/signal/sigdelset.h" #include "include/errno.h" -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" #include "src/signal/linux/signal.h" #include "src/__support/common.h" diff --git a/libc/src/signal/linux/sigemptyset.cpp b/libc/src/signal/linux/sigemptyset.cpp --- a/libc/src/signal/linux/sigemptyset.cpp +++ b/libc/src/signal/linux/sigemptyset.cpp @@ -8,7 +8,7 @@ #include "src/signal/sigemptyset.h" #include "include/errno.h" // For E* macros. -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" #include "src/signal/linux/signal.h" #include "src/__support/common.h" diff --git a/libc/src/signal/linux/sigfillset.cpp b/libc/src/signal/linux/sigfillset.cpp --- a/libc/src/signal/linux/sigfillset.cpp +++ b/libc/src/signal/linux/sigfillset.cpp @@ -8,7 +8,7 @@ #include "src/signal/sigfillset.h" #include "include/errno.h" -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" #include "src/signal/linux/signal.h" #include "src/__support/common.h" diff --git a/libc/src/signal/linux/sigprocmask.cpp b/libc/src/signal/linux/sigprocmask.cpp --- a/libc/src/signal/linux/sigprocmask.cpp +++ b/libc/src/signal/linux/sigprocmask.cpp @@ -7,7 +7,7 @@ //===----------------------------------------------------------------------===// #include "src/signal/sigprocmask.h" -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" #include "src/signal/linux/signal.h" #include "src/__support/common.h" diff --git a/libc/src/sys/mman/linux/mmap.cpp b/libc/src/sys/mman/linux/mmap.cpp --- a/libc/src/sys/mman/linux/mmap.cpp +++ b/libc/src/sys/mman/linux/mmap.cpp @@ -11,7 +11,7 @@ #include "config/linux/syscall.h" // For internal syscall function. #include "include/sys/syscall.h" // For syscall numbers. #include "src/__support/common.h" -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" #include // For EXEC_PAGESIZE. diff --git a/libc/src/sys/mman/linux/munmap.cpp b/libc/src/sys/mman/linux/munmap.cpp --- a/libc/src/sys/mman/linux/munmap.cpp +++ b/libc/src/sys/mman/linux/munmap.cpp @@ -11,7 +11,7 @@ #include "config/linux/syscall.h" // For internal syscall function. #include "include/sys/syscall.h" // For syscall numbers. #include "src/__support/common.h" -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" namespace __llvm_libc { diff --git a/libc/src/threads/linux/thrd_create.cpp b/libc/src/threads/linux/thrd_create.cpp --- a/libc/src/threads/linux/thrd_create.cpp +++ b/libc/src/threads/linux/thrd_create.cpp @@ -12,7 +12,7 @@ #include "include/sys/syscall.h" // For syscall numbers. #include "include/threads.h" // For thrd_* type definitions. #include "src/__support/common.h" -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" #include "src/sys/mman/mmap.h" #include "src/sys/mman/munmap.h" #include "src/threads/linux/thread_utils.h" diff --git a/libc/src/unistd/linux/write.cpp b/libc/src/unistd/linux/write.cpp --- a/libc/src/unistd/linux/write.cpp +++ b/libc/src/unistd/linux/write.cpp @@ -11,7 +11,7 @@ #include "config/linux/syscall.h" // For internal syscall function. #include "include/sys/syscall.h" // For syscall numbers. #include "src/__support/common.h" -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" namespace __llvm_libc { diff --git a/libc/test/ErrnoSetterMatcher.h b/libc/test/ErrnoSetterMatcher.h --- a/libc/test/ErrnoSetterMatcher.h +++ b/libc/test/ErrnoSetterMatcher.h @@ -9,7 +9,7 @@ #ifndef LLVM_LIBC_TEST_ERRNOSETTERMATCHER_H #define LLVM_LIBC_TEST_ERRNOSETTERMATCHER_H -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" #include "utils/UnitTest/Test.h" namespace __llvm_libc { diff --git a/libc/test/loader/linux/tls_test.cpp b/libc/test/loader/linux/tls_test.cpp --- a/libc/test/loader/linux/tls_test.cpp +++ b/libc/test/loader/linux/tls_test.cpp @@ -12,7 +12,7 @@ #undef NDEBUG #include "src/assert/assert.h" -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" #include "src/sys/mman/mmap.h" constexpr int threadLocalDataSize = 101; diff --git a/libc/test/src/errno/errno_test.cpp b/libc/test/src/errno/errno_test.cpp --- a/libc/test/src/errno/errno_test.cpp +++ b/libc/test/src/errno/errno_test.cpp @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" #include "utils/UnitTest/Test.h" TEST(ErrnoTest, Basic) { diff --git a/libc/test/src/math/cosf_test.cpp b/libc/test/src/math/cosf_test.cpp --- a/libc/test/src/math/cosf_test.cpp +++ b/libc/test/src/math/cosf_test.cpp @@ -8,7 +8,7 @@ #include "include/errno.h" #include "include/math.h" -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" #include "src/math/cosf.h" #include "test/src/math/sdcomp26094.h" #include "utils/CPP/Array.h" diff --git a/libc/test/src/math/exp2f_test.cpp b/libc/test/src/math/exp2f_test.cpp --- a/libc/test/src/math/exp2f_test.cpp +++ b/libc/test/src/math/exp2f_test.cpp @@ -8,7 +8,7 @@ #include "include/errno.h" #include "include/math.h" -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" #include "src/math/exp2f.h" #include "utils/FPUtil/BitPatterns.h" #include "utils/FPUtil/ClassificationFunctions.h" diff --git a/libc/test/src/math/expf_test.cpp b/libc/test/src/math/expf_test.cpp --- a/libc/test/src/math/expf_test.cpp +++ b/libc/test/src/math/expf_test.cpp @@ -8,7 +8,7 @@ #include "include/errno.h" #include "include/math.h" -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" #include "src/math/expf.h" #include "utils/FPUtil/BitPatterns.h" #include "utils/FPUtil/ClassificationFunctions.h" diff --git a/libc/test/src/math/sincosf_test.cpp b/libc/test/src/math/sincosf_test.cpp --- a/libc/test/src/math/sincosf_test.cpp +++ b/libc/test/src/math/sincosf_test.cpp @@ -8,7 +8,7 @@ #include "include/errno.h" #include "include/math.h" -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" #include "src/math/sincosf.h" #include "test/src/math/sdcomp26094.h" #include "utils/CPP/Array.h" diff --git a/libc/test/src/math/sinf_test.cpp b/libc/test/src/math/sinf_test.cpp --- a/libc/test/src/math/sinf_test.cpp +++ b/libc/test/src/math/sinf_test.cpp @@ -8,7 +8,7 @@ #include "include/errno.h" #include "include/math.h" -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" #include "src/math/sinf.h" #include "test/src/math/sdcomp26094.h" #include "utils/CPP/Array.h" diff --git a/libc/test/src/signal/signal_test.cpp b/libc/test/src/signal/signal_test.cpp --- a/libc/test/src/signal/signal_test.cpp +++ b/libc/test/src/signal/signal_test.cpp @@ -8,7 +8,7 @@ #include "include/errno.h" #include "include/signal.h" -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" #include "src/signal/raise.h" #include "src/signal/signal.h" diff --git a/libc/test/src/signal/sigprocmask_test.cpp b/libc/test/src/signal/sigprocmask_test.cpp --- a/libc/test/src/signal/sigprocmask_test.cpp +++ b/libc/test/src/signal/sigprocmask_test.cpp @@ -8,7 +8,7 @@ #include "include/errno.h" #include "include/signal.h" -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" #include "src/signal/raise.h" #include "src/signal/sigaddset.h" #include "src/signal/sigemptyset.h" diff --git a/libc/test/src/sys/mman/linux/mmap_test.cpp b/libc/test/src/sys/mman/linux/mmap_test.cpp --- a/libc/test/src/sys/mman/linux/mmap_test.cpp +++ b/libc/test/src/sys/mman/linux/mmap_test.cpp @@ -8,7 +8,7 @@ #include "include/errno.h" #include "include/sys/mman.h" -#include "src/errno/llvmlibc_errno.h" +#include "src/errno/__errno_location.h" #include "src/sys/mman/mmap.h" #include "src/sys/mman/munmap.h" #include "test/ErrnoSetterMatcher.h"