[all-commits] [llvm/llvm-project] 90e17d: [libc] Add sys/stat syscall wrappers (#195295)
Jeff Bailey via All-commits
all-commits at lists.llvm.org
Mon May 4 11:48:11 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 90e17d269ee7454453a225faa050eefdfe709c5d
https://github.com/llvm/llvm-project/commit/90e17d269ee7454453a225faa050eefdfe709c5d
Author: Jeff Bailey <jbailey at raspberryginger.com>
Date: 2026-05-04 (Mon, 04 May 2026)
Changed paths:
M libc/hdr/types/CMakeLists.txt
A libc/hdr/types/struct_stat.h
M libc/src/__support/OSUtil/linux/syscall_wrappers/CMakeLists.txt
A libc/src/__support/OSUtil/linux/syscall_wrappers/chmod.h
A libc/src/__support/OSUtil/linux/syscall_wrappers/fchmod.h
A libc/src/__support/OSUtil/linux/syscall_wrappers/fchmodat.h
A libc/src/__support/OSUtil/linux/syscall_wrappers/mkdir.h
A libc/src/__support/OSUtil/linux/syscall_wrappers/mkdirat.h
A libc/src/__support/OSUtil/linux/syscall_wrappers/statx.h
M libc/src/sys/stat/chmod.h
M libc/src/sys/stat/fchmod.h
M libc/src/sys/stat/fchmodat.h
M libc/src/sys/stat/fstat.h
M libc/src/sys/stat/linux/CMakeLists.txt
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/kernel_statx.h
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/stat/lstat.h
M libc/src/sys/stat/mkdir.h
M libc/src/sys/stat/mkdirat.h
M libc/src/sys/stat/stat.h
M libc/test/src/stdio/CMakeLists.txt
M libc/test/src/stdio/remove_test.cpp
M libc/test/src/stdio/rename_test.cpp
M libc/test/src/sys/stat/CMakeLists.txt
M libc/test/src/sys/stat/mkdirat_test.cpp
M libc/test/src/sys/statvfs/linux/CMakeLists.txt
M libc/test/src/sys/statvfs/linux/fstatvfs_test.cpp
M libc/test/src/sys/statvfs/linux/statvfs_test.cpp
M libc/test/src/unistd/CMakeLists.txt
M libc/test/src/unistd/rmdir_test.cpp
Log Message:
-----------
[libc] Add sys/stat syscall wrappers (#195295)
Added ErrorOr-returning syscall wrappers for chmod, fchmod, fchmodat,
mkdir, mkdirat, and statx in
src/__support/OSUtil/linux/syscall_wrappers/. Migrated the sys/stat
Linux entrypoints to use them.
Added hdr/types/struct_stat.h proxy header. Updated stat, lstat, fstat
to use it, and kernel_statx to use the new statx wrapper.
Fixed fchmodat CMakeLists.txt to reference fchmodat.h (was fchmod.h).
Updated test dependencies to use hdr/sys_stat_macros.
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