[all-commits] [llvm/llvm-project] d87eea: [libc] Move libc_errno.h to libc/src/__support and...

lntue via All-commits all-commits at lists.llvm.org
Wed Jun 11 13:25:49 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d87eea35fac5a34a841c637db8908128409a184e
      https://github.com/llvm/llvm-project/commit/d87eea35fac5a34a841c637db8908128409a184e
  Author: lntue <lntue at google.com>
  Date:   2025-06-11 (Wed, 11 Jun 2025)

  Changed paths:
    M libc/cmake/modules/LLVMLibCCompileOptionRules.cmake
    M libc/config/config.json
    M libc/docs/dev/code_style.rst
    M libc/shared/fp_bits.h
    A libc/shared/libc_common.h
    M libc/shared/rpc_server.h
    M libc/shared/str_to_float.h
    M libc/shared/str_to_integer.h
    M libc/src/__support/CMakeLists.txt
    M libc/src/__support/FPUtil/FEnvImpl.h
    M libc/src/__support/File/dir.cpp
    M libc/src/__support/File/file.cpp
    M libc/src/__support/File/linux/file.cpp
    M libc/src/__support/File/linux/lseekImpl.h
    M libc/src/__support/HashTable/randomness.h
    M libc/src/__support/OSUtil/linux/fcntl.cpp
    M libc/src/__support/OSUtil/linux/vdso.cpp
    M libc/src/__support/StringUtil/tables/linux_extension_errors.h
    A libc/src/__support/libc_errno.h
    M libc/src/__support/threads/linux/thread.cpp
    M libc/src/dirent/closedir.cpp
    M libc/src/dirent/opendir.cpp
    M libc/src/dirent/readdir.cpp
    M libc/src/errno/CMakeLists.txt
    M libc/src/errno/libc_errno.cpp
    R libc/src/errno/libc_errno.h
    M libc/src/fcntl/linux/creat.cpp
    M libc/src/fcntl/linux/open.cpp
    M libc/src/fcntl/linux/openat.cpp
    M libc/src/inttypes/strtoimax.cpp
    M libc/src/inttypes/strtoumax.cpp
    M libc/src/math/generic/exp10m1f.cpp
    M libc/src/math/generic/exp2m1f.cpp
    M libc/src/math/generic/nan.cpp
    M libc/src/math/generic/nanf.cpp
    M libc/src/math/generic/nanf128.cpp
    M libc/src/math/generic/nanf16.cpp
    M libc/src/math/generic/nanl.cpp
    M libc/src/poll/linux/poll.cpp
    M libc/src/pthread/pthread_atfork.cpp
    M libc/src/pthread/pthread_attr_setdetachstate.cpp
    M libc/src/pthread/pthread_attr_setguardsize.cpp
    M libc/src/pthread/pthread_attr_setstack.cpp
    M libc/src/pthread/pthread_attr_setstacksize.cpp
    M libc/src/pthread/pthread_condattr_setclock.cpp
    M libc/src/pthread/pthread_condattr_setpshared.cpp
    M libc/src/pthread/pthread_create.cpp
    M libc/src/pthread/pthread_key_create.cpp
    M libc/src/pthread/pthread_key_delete.cpp
    M libc/src/pthread/pthread_mutexattr_setpshared.cpp
    M libc/src/pthread/pthread_mutexattr_setrobust.cpp
    M libc/src/pthread/pthread_mutexattr_settype.cpp
    M libc/src/pthread/pthread_rwlock_timedrdlock.cpp
    M libc/src/pthread/pthread_rwlock_trywrlock.cpp
    M libc/src/pthread/pthread_rwlock_unlock.cpp
    M libc/src/pthread/pthread_rwlockattr_setkind_np.cpp
    M libc/src/pthread/pthread_rwlockattr_setpshared.cpp
    M libc/src/pthread/pthread_setspecific.cpp
    M libc/src/sched/linux/sched_get_priority_max.cpp
    M libc/src/sched/linux/sched_get_priority_min.cpp
    M libc/src/sched/linux/sched_getaffinity.cpp
    M libc/src/sched/linux/sched_getparam.cpp
    M libc/src/sched/linux/sched_getscheduler.cpp
    M libc/src/sched/linux/sched_rr_get_interval.cpp
    M libc/src/sched/linux/sched_setaffinity.cpp
    M libc/src/sched/linux/sched_setparam.cpp
    M libc/src/sched/linux/sched_setscheduler.cpp
    M libc/src/sched/linux/sched_yield.cpp
    M libc/src/search/hcreate.cpp
    M libc/src/search/hcreate_r.cpp
    M libc/src/search/hdestroy_r.cpp
    M libc/src/search/hsearch.cpp
    M libc/src/search/hsearch_r.cpp
    M libc/src/signal/linux/kill.cpp
    M libc/src/signal/linux/sigaction.cpp
    M libc/src/signal/linux/sigaddset.cpp
    M libc/src/signal/linux/sigaltstack.cpp
    M libc/src/signal/linux/sigdelset.cpp
    M libc/src/signal/linux/sigemptyset.cpp
    M libc/src/signal/linux/sigfillset.cpp
    M libc/src/signal/linux/sigprocmask.cpp
    M libc/src/spawn/posix_spawn_file_actions_addclose.cpp
    M libc/src/spawn/posix_spawn_file_actions_adddup2.cpp
    M libc/src/spawn/posix_spawn_file_actions_addopen.cpp
    M libc/src/spawn/posix_spawn_file_actions_destroy.cpp
    M libc/src/stdio/fopencookie.cpp
    M libc/src/stdio/generic/fclose.cpp
    M libc/src/stdio/generic/fflush.cpp
    M libc/src/stdio/generic/fgetc.cpp
    M libc/src/stdio/generic/fgetc_unlocked.cpp
    M libc/src/stdio/generic/fgets.cpp
    M libc/src/stdio/generic/fopen.cpp
    M libc/src/stdio/generic/fputc.cpp
    M libc/src/stdio/generic/fputs.cpp
    M libc/src/stdio/generic/fread.cpp
    M libc/src/stdio/generic/fread_unlocked.cpp
    M libc/src/stdio/generic/fseek.cpp
    M libc/src/stdio/generic/fseeko.cpp
    M libc/src/stdio/generic/ftell.cpp
    M libc/src/stdio/generic/ftello.cpp
    M libc/src/stdio/generic/fwrite.cpp
    M libc/src/stdio/generic/fwrite_unlocked.cpp
    M libc/src/stdio/generic/getc.cpp
    M libc/src/stdio/generic/getc_unlocked.cpp
    M libc/src/stdio/generic/getchar.cpp
    M libc/src/stdio/generic/getchar_unlocked.cpp
    M libc/src/stdio/generic/putc.cpp
    M libc/src/stdio/generic/putchar.cpp
    M libc/src/stdio/generic/puts.cpp
    M libc/src/stdio/gpu/fprintf.cpp
    M libc/src/stdio/gpu/printf.cpp
    M libc/src/stdio/linux/fdopen.cpp
    M libc/src/stdio/linux/remove.cpp
    M libc/src/stdio/linux/rename.cpp
    M libc/src/stdio/printf_core/parser.h
    M libc/src/stdio/setbuf.cpp
    M libc/src/stdio/setvbuf.cpp
    M libc/src/stdlib/atof.cpp
    M libc/src/stdlib/atoi.cpp
    M libc/src/stdlib/atol.cpp
    M libc/src/stdlib/atoll.cpp
    M libc/src/stdlib/strtod.cpp
    M libc/src/stdlib/strtod_l.cpp
    M libc/src/stdlib/strtof.cpp
    M libc/src/stdlib/strtof_l.cpp
    M libc/src/stdlib/strtol.cpp
    M libc/src/stdlib/strtol_l.cpp
    M libc/src/stdlib/strtold.cpp
    M libc/src/stdlib/strtold_l.cpp
    M libc/src/stdlib/strtoll.cpp
    M libc/src/stdlib/strtoll_l.cpp
    M libc/src/stdlib/strtoul.cpp
    M libc/src/stdlib/strtoul_l.cpp
    M libc/src/stdlib/strtoull.cpp
    M libc/src/stdlib/strtoull_l.cpp
    M libc/src/string/strdup.cpp
    M libc/src/sys/auxv/linux/getauxval.cpp
    M libc/src/sys/epoll/linux/epoll_create.cpp
    M libc/src/sys/epoll/linux/epoll_create1.cpp
    M libc/src/sys/epoll/linux/epoll_ctl.cpp
    M libc/src/sys/epoll/linux/epoll_pwait.cpp
    M libc/src/sys/epoll/linux/epoll_pwait2.cpp
    M libc/src/sys/epoll/linux/epoll_wait.cpp
    M libc/src/sys/mman/linux/madvise.cpp
    M libc/src/sys/mman/linux/mincore.cpp
    M libc/src/sys/mman/linux/mlock.cpp
    M libc/src/sys/mman/linux/mlock2.cpp
    M libc/src/sys/mman/linux/mlockall.cpp
    M libc/src/sys/mman/linux/mmap.cpp
    M libc/src/sys/mman/linux/mprotect.cpp
    M libc/src/sys/mman/linux/mremap.cpp
    M libc/src/sys/mman/linux/msync.cpp
    M libc/src/sys/mman/linux/munlock.cpp
    M libc/src/sys/mman/linux/munlockall.cpp
    M libc/src/sys/mman/linux/munmap.cpp
    M libc/src/sys/mman/linux/remap_file_pages.cpp
    M libc/src/sys/mman/linux/shm_common.h
    M libc/src/sys/prctl/linux/prctl.cpp
    M libc/src/sys/random/linux/getrandom.cpp
    M libc/src/sys/resource/linux/getrlimit.cpp
    M libc/src/sys/resource/linux/setrlimit.cpp
    M libc/src/sys/select/linux/select.cpp
    M libc/src/sys/sendfile/linux/sendfile.cpp
    M libc/src/sys/socket/linux/bind.cpp
    M libc/src/sys/socket/linux/recv.cpp
    M libc/src/sys/socket/linux/recvfrom.cpp
    M libc/src/sys/socket/linux/recvmsg.cpp
    M libc/src/sys/socket/linux/send.cpp
    M libc/src/sys/socket/linux/sendmsg.cpp
    M libc/src/sys/socket/linux/sendto.cpp
    M libc/src/sys/socket/linux/socket.cpp
    M libc/src/sys/socket/linux/socketpair.cpp
    M libc/src/sys/stat/linux/chmod.cpp
    M libc/src/sys/stat/linux/fchmod.cpp
    M libc/src/sys/stat/linux/fchmodat.cpp
    M libc/src/sys/stat/linux/fstat.cpp
    M libc/src/sys/stat/linux/lstat.cpp
    M libc/src/sys/stat/linux/mkdir.cpp
    M libc/src/sys/stat/linux/mkdirat.cpp
    M libc/src/sys/stat/linux/stat.cpp
    M libc/src/sys/statvfs/linux/statfs_utils.h
    M libc/src/sys/time/linux/getitimer.cpp
    M libc/src/sys/time/linux/setitimer.cpp
    M libc/src/sys/time/linux/utimes.cpp
    M libc/src/sys/uio/linux/readv.cpp
    M libc/src/sys/uio/linux/writev.cpp
    M libc/src/sys/utsname/linux/uname.cpp
    M libc/src/sys/wait/wait4Impl.h
    M libc/src/termios/linux/cfsetispeed.cpp
    M libc/src/termios/linux/cfsetospeed.cpp
    M libc/src/termios/linux/tcdrain.cpp
    M libc/src/termios/linux/tcflow.cpp
    M libc/src/termios/linux/tcflush.cpp
    M libc/src/termios/linux/tcgetattr.cpp
    M libc/src/termios/linux/tcgetsid.cpp
    M libc/src/termios/linux/tcsendbreak.cpp
    M libc/src/termios/linux/tcsetattr.cpp
    M libc/src/threads/thrd_create.cpp
    M libc/src/time/linux/clock.cpp
    M libc/src/time/linux/clock_gettime.cpp
    M libc/src/time/linux/gettimeofday.cpp
    M libc/src/time/linux/nanosleep.cpp
    M libc/src/time/linux/timespec_get.cpp
    M libc/src/time/time.cpp
    M libc/src/time/time_utils.h
    M libc/src/time/windows/clock_getres.cpp
    M libc/src/unistd/linux/access.cpp
    M libc/src/unistd/linux/chdir.cpp
    M libc/src/unistd/linux/close.cpp
    M libc/src/unistd/linux/dup.cpp
    M libc/src/unistd/linux/dup2.cpp
    M libc/src/unistd/linux/dup3.cpp
    M libc/src/unistd/linux/execv.cpp
    M libc/src/unistd/linux/execve.cpp
    M libc/src/unistd/linux/fchdir.cpp
    M libc/src/unistd/linux/fork.cpp
    M libc/src/unistd/linux/fsync.cpp
    M libc/src/unistd/linux/ftruncate.cpp
    M libc/src/unistd/linux/getcwd.cpp
    M libc/src/unistd/linux/getentropy.cpp
    M libc/src/unistd/linux/getsid.cpp
    M libc/src/unistd/linux/isatty.cpp
    M libc/src/unistd/linux/link.cpp
    M libc/src/unistd/linux/linkat.cpp
    M libc/src/unistd/linux/lseek.cpp
    M libc/src/unistd/linux/pathconf.cpp
    M libc/src/unistd/linux/pathconf_utils.cpp
    M libc/src/unistd/linux/pipe.cpp
    M libc/src/unistd/linux/pipe2.cpp
    M libc/src/unistd/linux/pread.cpp
    M libc/src/unistd/linux/pwrite.cpp
    M libc/src/unistd/linux/read.cpp
    M libc/src/unistd/linux/readlink.cpp
    M libc/src/unistd/linux/readlinkat.cpp
    M libc/src/unistd/linux/rmdir.cpp
    M libc/src/unistd/linux/symlink.cpp
    M libc/src/unistd/linux/symlinkat.cpp
    M libc/src/unistd/linux/syscall.cpp
    M libc/src/unistd/linux/sysconf.cpp
    M libc/src/unistd/linux/truncate.cpp
    M libc/src/unistd/linux/unlink.cpp
    M libc/src/unistd/linux/unlinkat.cpp
    M libc/src/unistd/linux/write.cpp
    M libc/src/unistd/windows/getentropy.cpp
    M libc/test/IntegrationTest/test.h
    M libc/test/UnitTest/ErrnoCheckingTest.h
    M libc/test/UnitTest/ErrnoSetterMatcher.h
    M libc/test/UnitTest/FPMatcher.h
    M libc/test/UnitTest/Test.h
    M libc/test/integration/src/pthread/pthread_create_test.cpp
    M libc/test/integration/src/pthread/pthread_join_test.cpp
    M libc/test/integration/src/pthread/pthread_name_test.cpp
    M libc/test/integration/src/unistd/getcwd_test.cpp
    M libc/test/integration/startup/linux/tls_test.cpp
    M libc/test/src/__support/str_to_fp_test.h
    M libc/test/src/__support/str_to_integer_test.cpp
    M libc/test/src/dirent/dirent_test.cpp
    M libc/test/src/errno/errno_test.cpp
    M libc/test/src/fcntl/creat_test.cpp
    M libc/test/src/fcntl/fcntl_test.cpp
    M libc/test/src/fcntl/openat_test.cpp
    M libc/test/src/math/RoundToIntegerTest.h
    M libc/test/src/math/acosf_test.cpp
    M libc/test/src/math/acoshf16_test.cpp
    M libc/test/src/math/acoshf_test.cpp
    M libc/test/src/math/asin_test.cpp
    M libc/test/src/math/asinf_test.cpp
    M libc/test/src/math/asinhf_test.cpp
    M libc/test/src/math/atan2f_test.cpp
    M libc/test/src/math/atan_test.cpp
    M libc/test/src/math/atanf_test.cpp
    M libc/test/src/math/atanhf_test.cpp
    M libc/test/src/math/cosf_test.cpp
    M libc/test/src/math/coshf_test.cpp
    M libc/test/src/math/cospif_test.cpp
    M libc/test/src/math/exp10_test.cpp
    M libc/test/src/math/exp10f_test.cpp
    M libc/test/src/math/exp10m1f_test.cpp
    M libc/test/src/math/exp2_test.cpp
    M libc/test/src/math/exp2f_test.cpp
    M libc/test/src/math/exp2m1f_test.cpp
    M libc/test/src/math/exp_test.cpp
    M libc/test/src/math/expf_test.cpp
    M libc/test/src/math/expm1_test.cpp
    M libc/test/src/math/expm1f_test.cpp
    M libc/test/src/math/log10_test.cpp
    M libc/test/src/math/log1p_test.cpp
    M libc/test/src/math/log1pf_test.cpp
    M libc/test/src/math/log2_test.cpp
    M libc/test/src/math/log2f_test.cpp
    M libc/test/src/math/log_test.cpp
    M libc/test/src/math/powf_test.cpp
    M libc/test/src/math/sin_test.cpp
    M libc/test/src/math/sincosf_test.cpp
    M libc/test/src/math/sinf_test.cpp
    M libc/test/src/math/sinhf_test.cpp
    M libc/test/src/math/sinpif_test.cpp
    M libc/test/src/math/smoke/FModTest.h
    M libc/test/src/math/smoke/RoundToIntegerTest.h
    M libc/test/src/math/smoke/acos_test.cpp
    M libc/test/src/math/smoke/acosf16_test.cpp
    M libc/test/src/math/smoke/acosf_test.cpp
    M libc/test/src/math/smoke/acoshf16_test.cpp
    M libc/test/src/math/smoke/acoshf_test.cpp
    M libc/test/src/math/smoke/acospif16_test.cpp
    M libc/test/src/math/smoke/asinf16_test.cpp
    M libc/test/src/math/smoke/asinf_test.cpp
    M libc/test/src/math/smoke/asinhf16_test.cpp
    M libc/test/src/math/smoke/asinhf_test.cpp
    M libc/test/src/math/smoke/atan2f_test.cpp
    M libc/test/src/math/smoke/atanf16_test.cpp
    M libc/test/src/math/smoke/atanf_test.cpp
    M libc/test/src/math/smoke/atanhf16_test.cpp
    M libc/test/src/math/smoke/atanhf_test.cpp
    M libc/test/src/math/smoke/cosf16_test.cpp
    M libc/test/src/math/smoke/cosf_test.cpp
    M libc/test/src/math/smoke/coshf16_test.cpp
    M libc/test/src/math/smoke/coshf_test.cpp
    M libc/test/src/math/smoke/cospif16_test.cpp
    M libc/test/src/math/smoke/cospif_test.cpp
    M libc/test/src/math/smoke/exp10_test.cpp
    M libc/test/src/math/smoke/exp10f16_test.cpp
    M libc/test/src/math/smoke/exp10f_test.cpp
    M libc/test/src/math/smoke/exp10m1f16_test.cpp
    M libc/test/src/math/smoke/exp10m1f_test.cpp
    M libc/test/src/math/smoke/exp2_test.cpp
    M libc/test/src/math/smoke/exp2f16_test.cpp
    M libc/test/src/math/smoke/exp2f_test.cpp
    M libc/test/src/math/smoke/exp2m1f16_test.cpp
    M libc/test/src/math/smoke/exp2m1f_test.cpp
    M libc/test/src/math/smoke/exp_test.cpp
    M libc/test/src/math/smoke/expf16_test.cpp
    M libc/test/src/math/smoke/expf_test.cpp
    M libc/test/src/math/smoke/expm1_test.cpp
    M libc/test/src/math/smoke/expm1f16_test.cpp
    M libc/test/src/math/smoke/expm1f_test.cpp
    M libc/test/src/math/smoke/log10_test.cpp
    M libc/test/src/math/smoke/log10f16_test.cpp
    M libc/test/src/math/smoke/log1p_test.cpp
    M libc/test/src/math/smoke/log1pf_test.cpp
    M libc/test/src/math/smoke/log2_test.cpp
    M libc/test/src/math/smoke/log2f16_test.cpp
    M libc/test/src/math/smoke/log2f_test.cpp
    M libc/test/src/math/smoke/log_test.cpp
    M libc/test/src/math/smoke/logf16_test.cpp
    M libc/test/src/math/smoke/sincosf_test.cpp
    M libc/test/src/math/smoke/sinf16_test.cpp
    M libc/test/src/math/smoke/sinf_test.cpp
    M libc/test/src/math/smoke/sinhf16_test.cpp
    M libc/test/src/math/smoke/sinhf_test.cpp
    M libc/test/src/math/smoke/sinpif16_test.cpp
    M libc/test/src/math/smoke/sinpif_test.cpp
    M libc/test/src/math/smoke/tanf16_test.cpp
    M libc/test/src/math/smoke/tanf_test.cpp
    M libc/test/src/math/smoke/tanhf16_test.cpp
    M libc/test/src/math/smoke/tanhf_test.cpp
    M libc/test/src/math/smoke/tanpif16_test.cpp
    M libc/test/src/math/tanf_test.cpp
    M libc/test/src/math/tanhf_test.cpp
    M libc/test/src/poll/poll_test.cpp
    M libc/test/src/sched/affinity_test.cpp
    M libc/test/src/sched/cpu_count_test.cpp
    M libc/test/src/sched/get_priority_test.cpp
    M libc/test/src/sched/param_and_scheduler_test.cpp
    M libc/test/src/sched/sched_rr_get_interval_test.cpp
    M libc/test/src/sched/yield_test.cpp
    M libc/test/src/signal/sigaltstack_test.cpp
    M libc/test/src/signal/signal_test.cpp
    M libc/test/src/signal/sigprocmask_test.cpp
    M libc/test/src/spawn/posix_spawn_file_actions_test.cpp
    M libc/test/src/stdio/fdopen_test.cpp
    M libc/test/src/stdio/fgetc_test.cpp
    M libc/test/src/stdio/fgetc_unlocked_test.cpp
    M libc/test/src/stdio/fgets_test.cpp
    M libc/test/src/stdio/fileop_test.cpp
    M libc/test/src/stdio/fopencookie_test.cpp
    M libc/test/src/stdio/remove_test.cpp
    M libc/test/src/stdio/rename_test.cpp
    M libc/test/src/stdio/setvbuf_test.cpp
    M libc/test/src/stdio/sprintf_test.cpp
    M libc/test/src/stdio/unlocked_fileop_test.cpp
    M libc/test/src/stdlib/StrtolTest.h
    M libc/test/src/stdlib/strtoint32_test.cpp
    M libc/test/src/stdlib/strtoint64_test.cpp
    M libc/test/src/stdlib/strtold_test.cpp
    M libc/test/src/sys/mman/linux/mlock_test.cpp
    M libc/test/src/sys/statvfs/linux/fstatvfs_test.cpp
    M libc/test/src/sys/statvfs/linux/statvfs_test.cpp
    M libc/test/src/sys/time/setitimer_test.cpp
    M libc/test/src/termios/termios_test.cpp
    M libc/test/src/time/asctime_r_test.cpp
    M libc/test/src/time/asctime_test.cpp
    M libc/test/src/time/ctime_r_test.cpp
    M libc/test/src/time/ctime_test.cpp
    M libc/test/src/time/gmtime_test.cpp
    M libc/test/src/time/nanosleep_test.cpp
    M utils/bazel/llvm-project-overlay/libc/BUILD.bazel

  Log Message:
  -----------
  [libc] Move libc_errno.h to libc/src/__support and make LIBC_ERRNO_MODE_SYSTEM to be header-only. (#143187)

This is the first step in preparation for:
https://discourse.llvm.org/t/rfc-make-clang-builtin-math-functions-constexpr-with-llvm-libc-to-support-c-23-constexpr-math-functions/86450



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list