summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1999-01-26 02:49:52 +0000
committerJulian Elischer <julian@FreeBSD.org>1999-01-26 02:49:52 +0000
commit2907af2a960c35df2b9fbfd01885cf0120193548 (patch)
tree6a3145fdec5e0389ffd13e77c8f76a1058bb3f1d /lib/libc
parent88c5ea4574bb5ab03dc5b57ac5330f319a745991 (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/mmap.219
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/libc/sys/mmap.2 b/lib/libc/sys/mmap.2
index 174a08301e83..a2be590dd751 100644
--- a/lib/libc/sys/mmap.2
+++ b/lib/libc/sys/mmap.2
@@ -130,6 +130,25 @@ system calls.
Modifications are private.
.It Dv MAP_SHARED
Modifications are shared.
+.It Dv MAP_STACK
+This option is only available if your system has been compiled with
+VM_STACK defined when compiling the kernel. This is the default for
+i386 only. Consider adding -DVM_STACK to COPTFLAGS in your /etc/make.conf
+to enable this option for other architechures. MAP_STACK implies
+MAP_ANON, and
+.Fa offset
+of 0.
+.Fa fd
+must be -1 and
+.Fa prot
+must include at least PROT_READ and PROT_WRITE. This option creates
+a memory region that grows to at most
+.Fa len
+bytes in size, starting from the stack top and growing down. The
+stack top is the starting address returned by the call, plus
+.Fa len
+bytes. The bottom of the stack at maximum growth is the starting
+address returned by the call.
.El
.Pp
The