Changes between Initial Version and Version 2 of Ticket #2078
- Timestamp:
- 11/22/14 13:50:56 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2078
-
Property
Milestone
changed from
4.10
to4.10.3
-
Property
Milestone
changed from
-
Ticket #2078 – Description
initial v2 1 1 According to the linux manpage (I don't have access to a posix standard ATM): 2 3 2 On POSIX systems on which mlock() and munlock() are available, 4 3 _POSIX_MEMLOCK_RANGE is defined in <unistd.h> and the number of bytes 5 4 in a page can be determined from the constant PAGESIZE (if defined) in 6 5 <limits.h> or by calling sysconf(_SC_PAGESIZE). 7 8 6 On POSIX systems on which mlockall() and munlockall() are available, 9 7 _POSIX_MEMLOCK is defined in <unistd.h> to a value greater than 0. 10 8 (See also sysconf(3).) 11 12 9 However, newlib's sys/feature.h defines 13 14 10 #ifdef __rtems__ 15 11 ... … … 19 15 ... 20 16 #endif 21 22 17 which is wrong since RTEMS does *not* implement mlock nor mlockall. BTW: 23 18 the definition of _POSIX_MEMORY_PROTECTION also seems fishy.