aboutsummaryrefslogtreecommitdiffstats
path: root/man2
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-05-10 19:55:31 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-05-11 17:28:45 +1200
commit0eefb56c953cfd23aea4a51da27f10f22c093461 (patch)
treeadc509509346646510726596ae3f1c43f4ab59c9 /man2
parent01ee7ce9b7651beee93d15e478f5121da863c988 (diff)
downloadman-pages-0eefb56c953cfd23aea4a51da27f10f22c093461.tar.gz
mmap2.2: Use syscall(SYS_...); for system calls without a wrapper
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2')
-rw-r--r--man2/mmap2.210
1 files changed, 6 insertions, 4 deletions
diff --git a/man2/mmap2.2 b/man2/mmap2.2
index 6545a8f521..d579a285d8 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 <sys/mman.h>
+.BR "#include <sys/mman.h>" " /* Definition of " MAP_* " and " PROT_* " constants */"
+.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
+.BR "#include <unistd.h>
.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