[all-commits] [llvm/llvm-project] 1801c3: [libc] add syscall function
michaelrj-google via All-commits
all-commits at lists.llvm.org
Fri Sep 30 15:46:44 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1801c356f61f0caef367138e889ad60b116b5760
https://github.com/llvm/llvm-project/commit/1801c356f61f0caef367138e889ad60b116b5760
Author: Michael Jones <michaelrj at google.com>
Date: 2022-09-30 (Fri, 30 Sep 2022)
Changed paths:
M libc/config/linux/x86_64/entrypoints.txt
M libc/include/llvm-libc-macros/linux/unistd-macros.h
M libc/loader/linux/aarch64/start.cpp
M libc/loader/linux/x86_64/start.cpp
M libc/spec/posix.td
M libc/src/__support/File/linux_dir.cpp
M libc/src/__support/File/linux_file.cpp
M libc/src/__support/OSUtil/linux/aarch64/syscall.h
M libc/src/__support/OSUtil/linux/arm/syscall.h
M libc/src/__support/OSUtil/linux/io.h
M libc/src/__support/OSUtil/linux/quick_exit.h
M libc/src/__support/OSUtil/linux/syscall.h
M libc/src/__support/OSUtil/linux/x86_64/syscall.h
M libc/src/__support/threads/linux/callonce.cpp
M libc/src/__support/threads/linux/mutex.h
M libc/src/__support/threads/linux/thread.cpp
M libc/src/fcntl/linux/creat.cpp
M libc/src/fcntl/linux/open.cpp
M libc/src/fcntl/linux/openat.cpp
M libc/src/sched/linux/sched_getaffinity.cpp
M libc/src/sched/linux/sched_setaffinity.cpp
M libc/src/signal/linux/__restore.cpp
M libc/src/signal/linux/raise.cpp
M libc/src/signal/linux/sigaction.cpp
M libc/src/signal/linux/signal_utils.h
M libc/src/signal/linux/sigprocmask.cpp
M libc/src/stdio/linux/remove.cpp
M libc/src/stdlib/linux/_Exit.cpp
M libc/src/sys/mman/linux/madvise.cpp
M libc/src/sys/mman/linux/mmap.cpp
M libc/src/sys/mman/linux/mprotect.cpp
M libc/src/sys/mman/linux/munmap.cpp
M libc/src/sys/mman/linux/posix_madvise.cpp
M libc/src/sys/resource/linux/getrlimit.cpp
M libc/src/sys/resource/linux/setrlimit.cpp
M libc/src/sys/sendfile/linux/sendfile.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/kernel_statx.h
M libc/src/sys/stat/linux/mkdir.cpp
M libc/src/sys/stat/linux/mkdirat.cpp
M libc/src/sys/utsname/linux/uname.cpp
M libc/src/threads/linux/CndVar.h
M libc/src/threads/linux/call_once.cpp
M libc/src/time/clock_gettime.cpp
M libc/src/time/nanosleep.cpp
M libc/src/unistd/CMakeLists.txt
M libc/src/unistd/linux/CMakeLists.txt
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/fchdir.cpp
M libc/src/unistd/linux/fsync.cpp
M libc/src/unistd/linux/ftruncate.cpp
M libc/src/unistd/linux/geteuid.cpp
M libc/src/unistd/linux/getpid.cpp
M libc/src/unistd/linux/getppid.cpp
M libc/src/unistd/linux/getuid.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/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
A libc/src/unistd/linux/syscall.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
A libc/src/unistd/syscall.h
M libc/test/src/__support/OSUtil/linux/x86_64/syscall_test.cpp
M libc/test/src/sched/affinity_test.cpp
M libc/test/src/unistd/CMakeLists.txt
A libc/test/src/unistd/syscall_test.cpp
Log Message:
-----------
[libc] add syscall function
Add the syscall wrapper function and tests. It's implemented using a
macro to guarantee the minimum number of arguments.
Reviewed By: sivachandra, lntue
Differential Revision: https://reviews.llvm.org/D134919
More information about the All-commits
mailing list