diff options
| author | christos <christos@NetBSD.org> | 2003-06-23 21:32:33 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2003-06-23 21:32:33 +0000 |
| commit | 40e148ef6bed80b7d1b19ea601148eb0cf487eed (patch) | |
| tree | fcb052b5a5671e745db2445f3e023b6fc4467801 /lib/libc/sys | |
| parent | c9a5d7edc1dc9363a87ebaa610bbdf358c0beadd (diff) | |
PR/21948: Todd Vierling: Implement MAP_TRYFIXED for linux emulation.
Diffstat (limited to 'lib/libc/sys')
| -rw-r--r-- | lib/libc/sys/mmap.2 | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/libc/sys/mmap.2 b/lib/libc/sys/mmap.2 index 7afb907465e..cc623698eda 100644 --- a/lib/libc/sys/mmap.2 +++ b/lib/libc/sys/mmap.2 @@ -1,4 +1,4 @@ -.\" $NetBSD: mmap.2,v 1.31 2003/04/16 13:34:54 wiz Exp $ +.\" $NetBSD: mmap.2,v 1.32 2003/06/23 21:32:37 christos Exp $ .\" .\" Copyright (c) 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -159,6 +159,17 @@ handling may be necessary. Permit regions to be inherited across .Xr execve 2 system calls. +.It Dv MAP_TRYFIXED +Attempt to use the address +.Fa addr +even if it falls within the normally protected process data or +text segment memory regions. If the requested region of memory +is actually present in the memory map, a different address will +be selected as if MAP_TRYFIXED had not been specified. If +.Fa addr +is +.Fa NULL , +this flag is ignored and the system will select a mapping address. .It Dv MAP_PRIVATE Modifications made by this process are private, however modifications made by other processes using |
