mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
Add MAP_ANONYMOUS.
Many operating systems also provide MAP_ANONYMOUS. It's not hard to support this ourselves, we'd better add it to make it more likely for applications to work out of the box. Reviewed by: alc (mman.h)
This commit is contained in:
parent
9da005c692
commit
54a1c2b5aa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198973
@ -28,7 +28,7 @@
|
|||||||
.\" @(#)mmap.2 8.4 (Berkeley) 5/11/95
|
.\" @(#)mmap.2 8.4 (Berkeley) 5/11/95
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd July 26, 2009
|
.Dd November 6, 2009
|
||||||
.Dt MMAP 2
|
.Dt MMAP 2
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -108,6 +108,10 @@ The
|
|||||||
argument is ignored.
|
argument is ignored.
|
||||||
.\".It Dv MAP_FILE
|
.\".It Dv MAP_FILE
|
||||||
.\"Mapped from a regular file or character-special device memory.
|
.\"Mapped from a regular file or character-special device memory.
|
||||||
|
.It Dv MAP_ANONYMOUS
|
||||||
|
This flag is identical to
|
||||||
|
.Dv MAP_ANON
|
||||||
|
and is provided for compatibility.
|
||||||
.It Dv MAP_FIXED
|
.It Dv MAP_FIXED
|
||||||
Do not permit the system to select a different address than the one
|
Do not permit the system to select a different address than the one
|
||||||
specified.
|
specified.
|
||||||
|
@ -82,6 +82,9 @@
|
|||||||
*/
|
*/
|
||||||
#define MAP_FILE 0x0000 /* map from file (default) */
|
#define MAP_FILE 0x0000 /* map from file (default) */
|
||||||
#define MAP_ANON 0x1000 /* allocated from memory, swap space */
|
#define MAP_ANON 0x1000 /* allocated from memory, swap space */
|
||||||
|
#ifndef _KERNEL
|
||||||
|
#define MAP_ANONYMOUS MAP_ANON /* For compatibility. */
|
||||||
|
#endif /* !_KERNEL */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Extended flags
|
* Extended flags
|
||||||
|
Loading…
Reference in New Issue
Block a user