mirror of https://github.com/mkerrisk/man-pages
process_madvise.2: Use syscall(SYS_...); for system calls without a wrapper. Fix includes too.
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
e393b243c0
commit
4e8ac36900
|
@ -30,15 +30,22 @@
|
||||||
process_madvise \- give advice about use of memory to a process
|
process_madvise \- give advice about use of memory to a process
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
.nf
|
||||||
.B #include <sys/uio.h>
|
.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>
|
||||||
.PP
|
.PP
|
||||||
.BI "ssize_t process_madvise(int " pidfd ", const struct iovec *" iovec ,
|
.BI "ssize_t syscall(SYS_process_madvise, int " pidfd ,
|
||||||
.BI " size_t " vlen ", int " advice ,
|
.BI " const struct iovec *" iovec ", size_t " vlen \
|
||||||
.BI " unsigned int " flags ");"
|
", int " advice ,
|
||||||
|
.BI " unsigned int " flags ");"
|
||||||
.fi
|
.fi
|
||||||
.PP
|
.PP
|
||||||
.IR Note :
|
.IR Note :
|
||||||
There is no glibc wrapper for this system call; see NOTES.
|
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>
|
.\" FIXME: See <https://sourceware.org/bugzilla/show_bug.cgi?id=27380>
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
The
|
The
|
||||||
|
@ -205,9 +212,6 @@ configuration option.
|
||||||
The
|
The
|
||||||
.BR process_madvise ()
|
.BR process_madvise ()
|
||||||
system call is Linux-specific.
|
system call is Linux-specific.
|
||||||
.SH NOTES
|
|
||||||
Glibc does not provide a wrapper for this system call; call it using
|
|
||||||
.BR syscall (2).
|
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR madvise (2),
|
.BR madvise (2),
|
||||||
.BR pidfd_open (2),
|
.BR pidfd_open (2),
|
||||||
|
|
Loading…
Reference in New Issue