summaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2011-04-11 17:46:20 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2011-04-11 17:46:20 +0000
commitbe9ecf9e3b6b8b9e83f27b482e7684f0f6953929 (patch)
tree443b655a0627e829d58042fd1cb92df119bd4c6f /lib/libc/sys
parent452b6b6a684c254935cf8be604bbf2418939fc16 (diff)
document MAP_TRYFIXED. short version: don't use it. prodded by deraadt.
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/mmap.213
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/libc/sys/mmap.2 b/lib/libc/sys/mmap.2
index df76cbc9c9f..99d2bbfd6d4 100644
--- a/lib/libc/sys/mmap.2
+++ b/lib/libc/sys/mmap.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mmap.2,v 1.37 2008/06/30 05:46:46 otto Exp $
+.\" $OpenBSD: mmap.2,v 1.38 2011/04/11 17:46:19 tedu Exp $
.\" $NetBSD: mmap.2,v 1.5 1995/06/24 10:48:59 cgd Exp $
.\"
.\" Copyright (c) 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)mmap.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: June 30 2008 $
+.Dd $Mdocdate: April 11 2011 $
.Dt MMAP 2
.Os
.Sh NAME
@@ -128,6 +128,15 @@ system calls.
Modifications are private.
.It Dv MAP_SHARED
Modifications are shared.
+.It Dv MAP_TRYFIXED
+Attempt to use the hint provided by
+.Fa addr
+even if the kernel would normally prefer a different address, but do not
+fail if the address is not available.
+This option is provided for compatibility with other operating systems
+and its use in
+.Ox
+is discouraged.
.It Dv MAP_COPY
Modifications are private and, unlike
.Dv MAP_PRIVATE ,