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 _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"