diff options
author | Alejandro Colomar <alx@kernel.org> | 2024-02-25 13:15:13 +0100 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2024-02-25 13:15:42 +0100 |
commit | 28628d82666104195eaf4491eb626e3fcc9bb2c9 (patch) | |
tree | 379f823072e824f4d57c2f0c1f58397cce6010fa | |
parent | 62463dd7d0724ee543412b2cd33c3b9666dd7a62 (diff) | |
download | man-pages-28628d82666104195eaf4491eb626e3fcc9bb2c9.tar.gz |
process_madvise.2: Document the glibc wrapper
$ 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@redhat.com>
Cc: Carlos O'Donell <carlos@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r-- | man2/process_madvise.2 | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/man2/process_madvise.2 b/man2/process_madvise.2 index 53fd575982..ed87396634 100644 --- a/man2/process_madvise.2 +++ b/man2/process_madvise.2 @@ -13,23 +13,12 @@ Standard C 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 @@ errors. Linux. .SH HISTORY Linux 5.10. +glibc 2.36. .\" commit ecb8ac8b1f146915aa6b96449b66dd48984caacc .P Support for this system call is optional, |