From 0eefb56c953cfd23aea4a51da27f10f22c093461 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Mon, 10 May 2021 19:55:31 +0200 Subject: [PATCH] mmap2.2: Use syscall(SYS_...); for system calls without a wrapper Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- man2/mmap2.2 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/man2/mmap2.2 b/man2/mmap2.2 index 6545a8f52..d579a285d 100644 --- a/man2/mmap2.2 +++ b/man2/mmap2.2 @@ -31,11 +31,13 @@ mmap2 \- map files or devices into memory .SH SYNOPSIS .nf -.B #include +.BR "#include " " /* Definition of " MAP_* " and " PROT_* " constants */" +.BR "#include " " /* Definition of " SYS_* " constants */" +.BR "#include .PP -.BI "void *mmap2(unsigned long " addr ", unsigned long " length , -.BI " unsigned long " prot ", unsigned long " flags , -.BI " unsigned long " fd ", unsigned long " pgoffset ); +.BI "void *syscall(SYS_mmap2, unsigned long " addr ", unsigned long " length , +.BI " unsigned long " prot ", unsigned long " flags , +.BI " unsigned long " fd ", unsigned long " pgoffset ); .fi .SH DESCRIPTION This is probably not the system call that you are interested in; instead, see