Date: Wed, 26 Oct 2011 04:38:23 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r226783 - in stable/8: lib/libc/sys sys/sys Message-ID: <201110260438.p9Q4cNaK032385@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: alc Date: Wed Oct 26 04:38:23 2011 New Revision: 226783 URL: http://svn.freebsd.org/changeset/base/226783 Log: MFC r198973 Add MAP_ANONYMOUS. Modified: stable/8/lib/libc/sys/mmap.2 stable/8/sys/sys/mman.h Directory Properties: stable/8/lib/libc/ (props changed) stable/8/lib/libc/stdtime/ (props changed) stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) Modified: stable/8/lib/libc/sys/mmap.2 ============================================================================== --- stable/8/lib/libc/sys/mmap.2 Wed Oct 26 03:48:49 2011 (r226782) +++ stable/8/lib/libc/sys/mmap.2 Wed Oct 26 04:38:23 2011 (r226783) @@ -108,6 +108,10 @@ The argument must be 0. .\".It Dv MAP_FILE .\"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 Do not permit the system to select a different address than the one specified. Modified: stable/8/sys/sys/mman.h ============================================================================== --- stable/8/sys/sys/mman.h Wed Oct 26 03:48:49 2011 (r226782) +++ stable/8/sys/sys/mman.h Wed Oct 26 04:38:23 2011 (r226783) @@ -82,6 +82,9 @@ */ #define MAP_FILE 0x0000 /* map from file (default) */ #define MAP_ANON 0x1000 /* allocated from memory, swap space */ +#ifndef _KERNEL +#define MAP_ANONYMOUS MAP_ANON /* For compatibility. */ +#endif /* !_KERNEL */ /* * Extended flags
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110260438.p9Q4cNaK032385>