From d19ee3473d68ca0e794f3a8b7677a0983ae1342e Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Wed, 26 Jan 2022 16:05:31 -0300 Subject: 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 --- misc/sys/mman.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'misc/sys') diff --git a/misc/sys/mman.h b/misc/sys/mman.h index 311d44c..02896a0 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 + __END_DECLS #endif /* sys/mman.h */ -- cgit v1.1