Skip to content

Revert "[libc] Implement process_mrelease." #117807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion libc/config/linux/aarch64/entrypoints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.sys.mman.munlockall
libc.src.sys.mman.munmap
libc.src.sys.mman.remap_file_pages
libc.src.sys.mman.process_mrelease
libc.src.sys.mman.posix_madvise
libc.src.sys.mman.shm_open
libc.src.sys.mman.shm_unlink
Expand Down
1 change: 0 additions & 1 deletion libc/config/linux/riscv/entrypoints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.sys.mman.munmap
libc.src.sys.mman.remap_file_pages
libc.src.sys.mman.posix_madvise
libc.src.sys.mman.process_mrelease
libc.src.sys.mman.shm_open
libc.src.sys.mman.shm_unlink

Expand Down
1 change: 0 additions & 1 deletion libc/config/linux/x86_64/entrypoints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.sys.mman.munmap
libc.src.sys.mman.remap_file_pages
libc.src.sys.mman.posix_madvise
libc.src.sys.mman.process_mrelease
libc.src.sys.mman.shm_open
libc.src.sys.mman.shm_unlink

Expand Down
7 changes: 0 additions & 7 deletions libc/include/sys/syscall.h.def
Original file line number Diff line number Diff line change
Expand Up @@ -2349,12 +2349,5 @@
#define SYS_writev __NR_writev
#endif

#ifdef __NR_process_mrelease
#define SYS_process_mrelease __NR_process_mrelease
#endif

#ifdef __NR_pidfd_open
#define SYS_pidfd_open __NR_pidfd_open
#endif

#endif // LLVM_LIBC_SYS_SYSCALL_H
7 changes: 0 additions & 7 deletions libc/newhdrgen/yaml/sys/mman.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,3 @@ functions:
return_type: int
arguments:
- type: const char *
- name: process_mrelease
standards:
- Linux
return_type: int
arguments:
- type: int
- type: unsigned int
6 changes: 0 additions & 6 deletions libc/spec/linux.td
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,6 @@ def Linux : StandardSpec<"Linux"> {
ArgSpec<IntType>,
ArgSpec<SizeTType>,
ArgSpec<IntType>,
FunctionSpec<
"process_mrelease",
RetValSpec<IntType>,
[
ArgSpec<IntType>,
ArgSpec<UnsignedIntType>
]
>,
FunctionSpec<
Expand Down
6 changes: 0 additions & 6 deletions libc/src/sys/mman/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,3 @@ add_entrypoint_object(
DEPENDS
.${LIBC_TARGET_OS}.mremap
)

add_entrypoint_object(
process_mrelease
ALIAS
DEPENDS
.${LIBC_TARGET_OS}.process_mrelease)
12 changes: 1 addition & 11 deletions libc/src/sys/mman/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ add_entrypoint_object(
libc.src.__support.OSUtil.osutil
libc.src.errno.errno
)

add_entrypoint_object(
munmap
SRCS
Expand Down Expand Up @@ -213,14 +214,3 @@ add_entrypoint_object(
libc.src.unistd.unlink
.shm_common
)

add_entrypoint_object(
process_mrelease
SRCS
process_mrelease.cpp
HDRS
../process_mrelease.h
DEPENDS
libc.include.sys_syscall
libc.src.__support.OSUtil.osutil
libc.src.errno.errno)
33 changes: 0 additions & 33 deletions libc/src/sys/mman/linux/process_mrelease.cpp

This file was deleted.

21 changes: 0 additions & 21 deletions libc/src/sys/mman/process_mrelease.h

This file was deleted.

18 changes: 0 additions & 18 deletions libc/test/src/sys/mman/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -181,21 +181,3 @@ add_libc_unittest(
libc.hdr.fcntl_macros
libc.test.UnitTest.ErrnoSetterMatcher
)

add_libc_unittest(
process_mrelease_test
SUITE
libc_sys_mman_unittests
SRCS
process_mrelease_test.cpp
DEPENDS
libc.include.sys_mman
libc.include.sys_syscall
libc.src.errno.errno
libc.src.sys.mman.process_mrelease
libc.src.unistd.close
libc.src.signal.kill
libc.include.signal
libc.src.stdlib.exit
libc.src.__support.OSUtil.osutil
libc.src.__support.threads.sleep)
72 changes: 0 additions & 72 deletions libc/test/src/sys/mman/linux/process_mrelease_test.cpp

This file was deleted.