equal
deleted
inserted
replaced
17 * information: Portions Copyright [yyyy] [name of copyright owner] |
17 * information: Portions Copyright [yyyy] [name of copyright owner] |
18 * |
18 * |
19 * CDDL HEADER END |
19 * CDDL HEADER END |
20 */ |
20 */ |
21 |
21 |
|
22 /* Copyright 2013 OmniTI Computer Consulting, Inc. All rights reserved. */ |
22 /* |
23 /* |
23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. |
24 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. |
24 * Use is subject to license terms. |
25 * Use is subject to license terms. |
25 */ |
26 */ |
26 |
27 |
102 #endif /* (_POSIX_C_SOURCE <= 2) && !defined(_XPG4_2) */ |
103 #endif /* (_POSIX_C_SOURCE <= 2) && !defined(_XPG4_2) */ |
103 |
104 |
104 #if (_POSIX_C_SOURCE <= 2) || defined(_XPG4_2) |
105 #if (_POSIX_C_SOURCE <= 2) || defined(_XPG4_2) |
105 #ifdef _KERNEL |
106 #ifdef _KERNEL |
106 #define PROT_EXCL 0x20 |
107 #define PROT_EXCL 0x20 |
|
108 #endif /* _KERNEL */ |
|
109 |
107 #define _MAP_LOW32 0x80 /* force mapping in lower 4G of address space */ |
110 #define _MAP_LOW32 0x80 /* force mapping in lower 4G of address space */ |
108 #endif /* _KERNEL */ |
111 #define MAP_32BIT _MAP_LOW32 |
109 |
112 |
110 /* |
113 /* |
111 * For the sake of backward object compatibility, we use the _MAP_NEW flag. |
114 * For the sake of backward object compatibility, we use the _MAP_NEW flag. |
112 * This flag will be automatically or'ed in by the C library for all |
115 * This flag will be automatically or'ed in by the C library for all |
113 * new mmap calls. Previous binaries with old mmap calls will continue |
116 * new mmap calls. Previous binaries with old mmap calls will continue |