diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-01-28 12:53:52 +0000 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-06-02 15:43:28 -0300 |
commit | 1002f1af1ca954f6bb8fbda67fccdb7a4b0055cd (patch) | |
tree | 1b484790fdbedfad90c14cc7abea2277914f4b62 /sysdeps/unix/sysv/linux/bits | |
parent | d19ee3473d68ca0e794f3a8b7677a0983ae1342e (diff) | |
download | glibc-1002f1af1ca954f6bb8fbda67fccdb7a4b0055cd.tar.gz glibc-1002f1af1ca954f6bb8fbda67fccdb7a4b0055cd.tar.xz glibc-1002f1af1ca954f6bb8fbda67fccdb7a4b0055cd.zip |
linux: Add process_mrelease
Added in Linux 5.15 (884a7e5964e06ed93c7771c0d7cf19c09a8946f1), the new syscalls allows a caller to free the memory of a dying target process. Checked on x86_64-linux-gnu. Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/bits')
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/mman_ext.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/mman_ext.h b/sysdeps/unix/sysv/linux/bits/mman_ext.h index 20960e7df5..97234a7adf 100644 --- a/sysdeps/unix/sysv/linux/bits/mman_ext.h +++ b/sysdeps/unix/sysv/linux/bits/mman_ext.h @@ -30,4 +30,6 @@ extern __ssize_t process_madvise (int __pid_fd, const struct iovec* __iov, unsigned __flags) __THROW; +extern int process_mrelease (int pidfd, unsigned int flags) __THROW; + #endif /* __USE_GNU */ |