summaryrefslogtreecommitdiff
path: root/cpukit/posix/src/shmopen.c (follow)
AgeCommit message (Collapse)Author
2020-03-13libio: Robust file descriptor reference countingSebastian Huber
There was a race conditon in the reference counting of file descriptors during a close() operation. After the call to the close handler, the rtems_libio_free() function cleared the flags to zero. However, at this point in time there may still exist some holders of the file descriptor. With RTEMS_DEBUG enabled this could lead to failed assertions in rtems_libio_iop_drop(). Change the code to use only atomic read-modify-write operations on the rtems_libio_iop::flags.
2019-03-14shmopen.c: Fix logically unreachable code (Coverity ID: 1399706, 1399714)Joel Sherrill
Closes #3694.
2018-12-14score: Static Objects_Information initializationSebastian Huber
Statically allocate the objects information together with the initial set of objects either via <rtems/confdefs.h>. Provide default object informations with zero objects via librtemscpu.a. This greatly simplifies the workspace size estimate. RTEMS applications which do not use the unlimited objects option are easier to debug since all objects reside now in statically allocated objects of the right types. Close #3621.
2017-09-22posix shm: Add oflag to Shm_ControlJoel Sherrill
2017-09-15libio: Add hold/drop iop referenceSebastian Huber
Check iop reference count in close() and return -1 with errno set to EBUSY in case the file descriptor is still in use. Update #3132.
2017-09-15libio: Add rtems_libio_iop_flags_initialize()Sebastian Huber
Update #3132.
2017-09-15libio: Add iop set/clear flagsSebastian Huber
Update #3132.
2017-07-14posix/mmap: Add support for file handler and MAP_ANONKevin Kirspel
Added a mmap file handler to struct _rtems_filesystem_file_handlers_r. Updated each file handler object to support the default mmap handler. Updated mmap() to call the mmap handler for MAP_SHARED. Added a mmap file handler for shm Added support for MAP_ANON in mmap(). Updates #2859
2017-05-05posix/mman: add mmap support for shm objectsGedare Bloom
Update #2859.
2017-05-05posix/shm: replace threadq with mutex (allocator lock)Gedare Bloom
Closes #2957.
2017-05-05posix/mman: update atime on shared memory read callGedare Bloom
Update #2859.
2017-01-25posix: Fix use of uninitialized variableSebastian Huber
Update #2859.
2017-01-13posix: shared memory supportGedare Bloom
Add POSIX shared memory manager (Shm). Includes a hook-based approach for the backing memory storage that defaults to the Workspace, and a test is provided using the heap. A test is also provided for the basic use of mmap'ing a shared memory object. This test currently fails at the mmap stage due to no support for mmap.
2017-01-13posix: add stub implementations for mman functionsGedare Bloom