summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* posix: Implement self-contained POSIX mutexSebastian Huber2017-10-058-226/+189
| | | | | | | | POSIX mutexes are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3112.
* posix: Implement self-contained POSIX condvarSebastian Huber2017-10-057-174/+92
| | | | | | | | POSIX condition variables are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3113.
* posix: Implement self-contained POSIX rwlocksSebastian Huber2017-10-0510-156/+75
| | | | | | | | POSIX rwlocks are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3115.
* posix: Implement self-contained POSIX barriersSebastian Huber2017-10-054-170/+96
| | | | | | | | POSIX barriers are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3114.
* posix: Implement self-contained POSIX semaphoresSebastian Huber2017-10-0514-393/+224
| | | | | | | | | | | | | | For semaphore object pointer and object validation see POSIX_SEMAPHORE_VALIDATE_OBJECT(). Destruction or close of a busy semaphore returns an error status. The object is not flushed. POSIX semaphores are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3116.
* posix: Optimize pthread_once_tSebastian Huber2017-10-051-4/+1
| | | | | | Reduce size of pthread_once_t and make it zero-initialized. Update #3142.
* posix: Fix aio_cancel()Sebastian Huber2017-10-041-1/+1
| | | | Update #3164.
* posix: Remove superfluous includesSebastian Huber2017-09-278-57/+18
|
* posix: Remove superfluous includesSebastian Huber2017-09-272-14/+8
|
* posix shm: Add oflag to Shm_ControlJoel Sherrill2017-09-221-0/+1
|
* posix: Allow PTHREAD_PROCESS_SHARED for rwlocksSebastian Huber2017-09-221-23/+7
| | | | Close #3153.
* posix: Allow PTHREAD_PROCESS_SHARED for condvarSebastian Huber2017-09-151-2/+5
| | | | Close #3137.
* posix: Allow PTHREAD_PROCESS_SHARED for barriersSebastian Huber2017-09-151-6/+3
| | | | Close #3126.
* posix: Allow PTHREAD_PROCESS_SHARED for mutexesSebastian Huber2017-09-151-7/+3
| | | | Close #3125.
* 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.
* libio: Remove special-case reference countSebastian Huber2017-09-142-34/+19
| | | | | | The top-level IO library structures should contain no special-case data. Update #2859.
* posix: Ignore pshared for semaphoresSebastian Huber2017-09-123-9/+0
| | | | | | Since we have only one process, sharing between processes is trivial. Close #3124.
* posix: Use mutex object itself for condvarSebastian Huber2017-09-121-4/+4
| | | | | | | | | | We should only use the address used to initialize the mutex object according to POSIX, "2.9.9 Synchronization Object Copies and Alternative Mappings". http://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_09_09 Update #3113.
* Include missing <limits.h>Sebastian Huber2017-08-252-0/+3
| | | | Update #2132.
* Include missing <string.h>Sebastian Huber2017-08-253-0/+3
| | | | Update #2133.
* posix: fix warnings with mmap from heap/wkspaceGedare Bloom2017-07-242-2/+2
| | | | | | Avoid void pointer arithmetic. Updates #2859.
* posix: replace mmap mappings lock with libio lockGedare Bloom2017-07-242-84/+4
| | | | | | Use the libio mutex lock instead of the mmap mappings lock. Updates #2859.
* posix: Use unprotected chain operationsSebastian Huber2017-07-202-2/+2
| | | | | | Operarations are already protected by mmap_mappings_lock. Updates #2859.
* Fixed issue with searching mapped addressesKevin Kirspel2017-07-201-3/+4
| | | | | | | | | | The loop that checks if the current address is already mapped uses the same local variable for the chanin node as the newly allocated chain node so the allocated chain node gets over written. Added a new local variable for the loop that checks the address Updates #2859.
* posix/mmap: Add support for file handler and MAP_ANONKevin Kirspel2017-07-143-113/+188
| | | | | | | | | | | 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
* Fix CPU_COPY() usageSebastian Huber2017-06-074-4/+4
| | | | | | | | The original CPU_COPY() support of Newlib <sys/cpuset.h> had the parameters in the wrong order. This is fixed in Newlib since 2017-05-22. Update #3023.
* posix: clarify expression with parenthesesGedare Bloom2017-05-161-1/+1
| | | | Close #3010.
* posix/mman: add mmap support for shm objectsGedare Bloom2017-05-056-90/+236
| | | | Update #2859.
* posix: Add mmap/unmap support for mapping files.Chris Johns2017-05-052-36/+270
| | | | | | | This version of mmap comes from early work done on the RTL code base circa 2012. 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/src/mutexinit.c: Reorder to make priority a scoped variableJoel Sherrill2017-04-271-28/+24
|
* posix/src/mutexinit.c: Reorder to make priority a scoped variableJoel Sherrill2017-04-261-22/+19
|
* posix/src/mutexinit.c: Fix used before initialized warningJoel Sherrill2017-04-251-0/+3
|
* posix: Fix pthread_detach() internal lock acquireSebastian Huber2017-03-281-1/+1
|
* score: Add _Thread_queue_Object_nameSebastian Huber2017-01-311-2/+1
| | | | | | | | | | | | | Add the special thread queue name _Thread_queue_Object_name to mark thread queues embedded in an object with identifier. Using the special thread state STATES_THREAD_QUEUE_WITH_IDENTIFIER is not reliable for this purpose since the thread wait information and thread state are protected by different SMP locks in separate critical sections. Remove STATES_THREAD_QUEUE_WITH_IDENTIFIER. Add and use _Thread_queue_Object_initialize(). Update #2858.
* posix: Fix use of uninitialized variableSebastian Huber2017-01-251-0/+2
| | | | Update #2859.
* posix: shared memory supportGedare Bloom2017-01-135-6/+523
| | | | | | | | | 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: fix typo in mmap argumentsGedare Bloom2017-01-131-2/+2
|
* posix: add stub implementations for mman functionsGedare Bloom2017-01-138-0/+214
|
* posix: move sys/mman.h to newlib and test it in psxhdrsGedare Bloom2017-01-131-1/+1
|
* configure: Remove SIZEOF_PTHREAD_SPINLOCK_TSebastian Huber2017-01-134-45/+2
|
* posix: Add pthread_getname_np(), ...Sebastian Huber2017-01-132-0/+82
| | | | | | Add pthread_getname_np() and pthread_setname_np(). Update #2858.
* score: Replace STATES_DELAYINGSebastian Huber2017-01-121-1/+1
| | | | | | | | Replace STATES_DELAYING with STATES_WAITING_FOR_TIME. There is no need for separate timeout thread states. The Thread_Control::Timer::header and Watchdog_Control::cpu members can be used to figure out the kind of timeout.
* Remove obsolete __RTEMS_HAVE_SYS_CPUSET_H__Joel Sherrill2017-01-113-26/+20
|
* Add support for posix_devctl()Joel Sherrill2017-01-111-0/+2
|
* posix: Fix alarm() in SMP configurationsSebastian Huber2017-01-111-2/+0
| | | | | Avoid to change the CPU of the watchdog right in the middle of the critical section. This would corrupt the watchdog lock states.
* score: Add STATES_THREAD_QUEUE_WITH_IDENTIFIERSebastian Huber2017-01-111-1/+2
| | | | | Add thread state bit to identify thread queues that are embedded in an object with identifier.