summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/shmopen.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* cpukit/posix/src/[p-z]*.c: Change license to BSD-2Joel Sherrill2022-02-281-3/+22
| | | | Updates #3053.
* Canonicalize config.h includeSebastian Huber2020-04-161-1/+1
| | | | | | | | Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
* libio: Robust file descriptor reference countingSebastian Huber2020-03-131-2/+2
| | | | | | | | | | | | 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.
* shmopen.c: Fix logically unreachable code (Coverity ID: 1399706, 1399714)Joel Sherrill2019-03-141-2/+3
| | | | Closes #3694.
* score: Static Objects_Information initializationSebastian Huber2018-12-141-0/+12
| | | | | | | | | | | 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.
* posix shm: Add oflag to Shm_ControlJoel Sherrill2017-09-221-0/+1
|
* libio: Add hold/drop iop referenceSebastian Huber2017-09-151-1/+1
| | | | | | | 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.
* libio: Add rtems_libio_iop_flags_initialize()Sebastian Huber2017-09-151-6/+10
| | | | Update #3132.
* libio: Add iop set/clear flagsSebastian Huber2017-09-151-3/+3
| | | | Update #3132.
* posix/mmap: Add support for file handler and MAP_ANONKevin Kirspel2017-07-141-0/+30
| | | | | | | | | | | 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
* posix/mman: add mmap support for shm objectsGedare Bloom2017-05-051-22/+1
| | | | Update #2859.
* posix/shm: replace threadq with mutex (allocator lock)Gedare Bloom2017-05-051-9/+5
| | | | Closes #2957.
* posix/mman: update atime on shared memory read callGedare Bloom2017-05-051-0/+1
| | | | Update #2859.
* posix: Fix use of uninitialized variableSebastian Huber2017-01-251-0/+2
| | | | Update #2859.
* posix: shared memory supportGedare Bloom2017-01-131-4/+279
| | | | | | | | | 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.
* posix: add stub implementations for mman functionsGedare Bloom2017-01-131-0/+28