[RTEMS Project] #2859: Implement POSIX Shared Memory Objects

RTEMS trac trac at rtems.org
Thu Jul 20 05:33:50 UTC 2017


#2859: Implement POSIX Shared Memory Objects
------------------------------+---------------------
 Reporter:  Gedare            |       Owner:  Gedare
     Type:  defect            |      Status:  new
 Priority:  normal            |   Milestone:  4.12.0
Component:  cpukit            |     Version:  4.12
 Severity:  normal            |  Resolution:
 Keywords:  POSIX-Compliance  |
------------------------------+---------------------

Comment (by Sebastian Huber):

 The mmap_mappings_lock attributes don't create a mutex:

 #define RTEMS_MUTEX_ATTRIBS \
   (RTEMS_PRIORITY | RTEMS_SIMPLE_BINARY_SEMAPHORE | \
    RTEMS_NO_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL)

 I suggest to use the libio mutex and keep the specialized lock/unlock
 functions.  Mutex lock/unlock should not return a status code to simplify
 the error handling.

--
Ticket URL: <http://devel.rtems.org/ticket/2859#comment:10>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list