[all-commits] [llvm/llvm-project] 86bde5: [libc] implement prctl (#74386)
Schrodinger ZHU Yifan via All-commits
all-commits at lists.llvm.org
Tue Dec 5 12:31:14 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 86bde5adc8f20a619c7ccbfee5d9bf92c5429226
https://github.com/llvm/llvm-project/commit/86bde5adc8f20a619c7ccbfee5d9bf92c5429226
Author: Schrodinger ZHU Yifan <yifanzhu at rochester.edu>
Date: 2023-12-05 (Tue, 05 Dec 2023)
Changed paths:
M libc/config/linux/aarch64/entrypoints.txt
M libc/config/linux/arm/entrypoints.txt
M libc/config/linux/riscv/entrypoints.txt
M libc/config/linux/x86_64/entrypoints.txt
M libc/include/sys/prctl.h.def
M libc/src/sys/CMakeLists.txt
A libc/src/sys/prctl/CMakeLists.txt
A libc/src/sys/prctl/linux/CMakeLists.txt
A libc/src/sys/prctl/linux/prctl.cpp
A libc/src/sys/prctl/prctl.h
M libc/test/src/sys/CMakeLists.txt
A libc/test/src/sys/prctl/CMakeLists.txt
A libc/test/src/sys/prctl/linux/CMakeLists.txt
A libc/test/src/sys/prctl/linux/prctl_test.cpp
Log Message:
-----------
[libc] implement prctl (#74386)
Implement `prctl` as specified in
https://man7.org/linux/man-pages/man2/prctl.2.html.
This patch also includes test cases covering two simple use cases:
1. `PR_GET_NAME/PR_SET_NAME`: where userspace data is passed via arg2.
2. `PR_GET_THP_DISABLE`: where return value is passed via syscal retval.
More information about the All-commits
mailing list