Skip to contentSkip to conversation

process_madvise.2: Add note about missing glibc wrapper

PATCH In review Alejandro Colomar 2 participants 2 messages Feb 11, 2021 – Feb 13, 2021 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 process_madvise.2: Add note about missing glibc wrapper

Glibc bug: <https://sourceware.org/bugzilla/show_bug.cgi?id=27380>

---
 man2/process_madvise.2 | 6 ++++++
 1 file changed, 6 insertions(+)
man2/process_madvise.2 +7 -0
index d33c32f63..9dc90ced1 100644
@@ -36,6 +36,10 @@ process_madvise \- give advice about use of memory to a process
 .BI "                        unsigned long " vlen ", int " advice ,
 .BI "                        unsigned int " flags ");"
 .fi
+.PP
+.IR Note :
+There is no glibc wrapper for this system call; see NOTES.
+.\" FIXME: See <https://sourceware.org/bugzilla/show_bug.cgi?id=27380>
 .SH DESCRIPTION
 The
 .BR process_madvise()
@@ -218,6 +222,9 @@ Support for this system call is optional,
 depending on the setting of the
 .B CONFIG_ADVISE_SYSCALLS
 configuration option.
+.SH NOTES
+Glibc does not provide a wrapper for this system call; call it using
+.BR syscall (2).
 .SH SEE ALSO
 .BR madvise (2),
 .BR pidfd_open (2),
Signature · 1 line
2.30.0
#1 lore raw

Hi Alex,

Quoted 2 lines · Alejandro Colomar

Glibc bug: <https://sourceware.org/bugzilla/show_bug.cgi?id=27380>

Thanks. Patch applied.

Cheers,

Michael

Quoted 30 lines
---
 man2/process_madvise.2 | 6 ++++++
 1 file changed, 6 insertions(+)
man2/process_madvise.2 +7 -0
index d33c32f63..9dc90ced1 100644
@@ -36,6 +36,10 @@ process_madvise \- give advice about use of memory to a process
 .BI "                        unsigned long " vlen ", int " advice ,
 .BI "                        unsigned int " flags ");"
 .fi
+.PP
+.IR Note :
+There is no glibc wrapper for this system call; see NOTES.
+.\" FIXME: See <https://sourceware.org/bugzilla/show_bug.cgi?id=27380>
 .SH DESCRIPTION
 The
 .BR process_madvise()
@@ -218,6 +222,9 @@ Support for this system call is optional,
 depending on the setting of the
 .B CONFIG_ADVISE_SYSCALLS
 configuration option.
+.SH NOTES
+Glibc does not provide a wrapper for this system call; call it using
+.BR syscall (2).
 .SH SEE ALSO
 .BR madvise (2),
 .BR pidfd_open (2),
Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/