about summary refs log tree commit diff
path: root/misc
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-01-26 16:05:31 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-06-02 15:43:28 -0300
commitd19ee3473d68ca0e794f3a8b7677a0983ae1342e (patch)
tree54f061e127a813931ddbb30c328978eb26a7b3ef /misc
parent7d3e91ba194cc4b5fe1c9017f3bd77533c123b97 (diff)
downloadglibc-d19ee3473d68ca0e794f3a8b7677a0983ae1342e.tar.gz
glibc-d19ee3473d68ca0e794f3a8b7677a0983ae1342e.tar.xz
glibc-d19ee3473d68ca0e794f3a8b7677a0983ae1342e.zip
linux: Add process_madvise
It was added on Linux 5.10 (ecb8ac8b1f146915aa6b96449b66dd48984caacc)
with the same functionality as madvise but using a pidfd of the target
process.

Checked on x86_64-linux-gnu and i686-linux-gnu.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'misc')
-rw-r--r--misc/sys/mman.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/sys/mman.h b/misc/sys/mman.h
index 311d44cfb1..02896a0acc 100644
--- a/misc/sys/mman.h
+++ b/misc/sys/mman.h
@@ -146,6 +146,9 @@ extern int shm_open (const char *__name, int __oflag, mode_t __mode);
 /* Remove shared memory segment.  */
 extern int shm_unlink (const char *__name);
 
+/* System-specific extensions.  */
+#include <bits/mman_ext.h>
+
 __END_DECLS
 
 #endif	/* sys/mman.h */