$ grepc -n process_madvise /usr/include/ /usr/include/x86_64-linux-gnu/bits/mman_ext.h:25: extern __ssize_t process_madvise (int __pid_fd, const struct iovec *__iov, size_t __count, int __advice, unsigned __flags) __THROW; Reported-by: Florian Weimer <fweimer@xxxxxxxxxx> Cc: Carlos O'Donell <carlos@xxxxxxxxxx> Signed-off-by: Alejandro Colomar <alx@xxxxxxxxxx> --- man2/process_madvise.2 | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/man2/process_madvise.2 b/man2/process_madvise.2 index 53fd57598..ed8739663 100644 --- a/man2/process_madvise.2 +++ b/man2/process_madvise.2 @@ -13,23 +13,12 @@ .SH LIBRARY .RI ( libc ", " \-lc ) .SH SYNOPSIS .nf -.BR "#include <sys/mman.h>" " /* Definition of " MADV_* " constants */" -.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */" -.BR "#include <sys/uio.h>" " /* Definition of " "struct iovec" " type */" -.B #include <unistd.h> +.B #include <sys/mman.h> .P -.BI "ssize_t syscall(SYS_process_madvise, int " pidfd , -.BI " const struct iovec *" iovec ", size_t " vlen \ -", int " advice , -.BI " unsigned int " flags ");" +.BI "ssize_t process_madvise(int " pidfd ", const struct iovec *" iovec , +.BI " size_t " vlen ", int " advice \ +", unsigned int " flags ); .fi -.P -.IR Note : -glibc provides no wrapper for -.BR process_madvise (), -necessitating the use of -.BR syscall (2). -.\" FIXME: See <https://sourceware.org/bugzilla/show_bug.cgi?id=27380> .SH DESCRIPTION The .BR process_madvise () @@ -187,6 +176,7 @@ .SH STANDARDS Linux. .SH HISTORY Linux 5.10. +glibc 2.36. .\" commit ecb8ac8b1f146915aa6b96449b66dd48984caacc .P Support for this system call is optional, -- 2.43.0
Attachment:
signature.asc
Description: PGP signature