Changes between Initial Version and Version 2 of Ticket #2078


Ignore:
Timestamp:
11/22/14 13:50:56 (9 years ago)
Author:
Gedare Bloom
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2078

    • Property Milestone changed from 4.10 to 4.10.3
  • Ticket #2078 – Description

    initial v2  
    11According to the linux manpage (I don't have access to a posix standard ATM):
    2 
    32      On  POSIX  systems  on  which  mlock()  and  munlock()  are  available,
    43       _POSIX_MEMLOCK_RANGE is defined in <unistd.h> and the number  of  bytes
    54       in  a page can be determined from the constant PAGESIZE (if defined) in
    65       <limits.h> or by calling sysconf(_SC_PAGESIZE).
    7 
    86       On POSIX systems on which mlockall() and  munlockall()  are  available,
    97       _POSIX_MEMLOCK  is  defined  in  <unistd.h>  to a value greater than 0.
    108       (See also sysconf(3).)
    11 
    129However, newlib's sys/feature.h defines
    13 
    1410#ifdef __rtems__
    1511...
     
    1915...
    2016#endif
    21 
    2217which is wrong since RTEMS does *not* implement mlock nor mlockall. BTW:
    2318the definition of _POSIX_MEMORY_PROTECTION also seems fishy.