summaryrefslogtreecommitdiffstats
path: root/cpukit/posix (follow)
Commit message (Collapse)AuthorAgeFilesLines
* posix: Avoid fatal error in Shm object createSebastian Huber2019-04-101-1/+5
|
* posix: Avoid workspace for queued signalsSebastian Huber2019-04-102-18/+12
|
* posix: _Configuration_POSIX_Maximum_queued_signalsSebastian Huber2019-04-102-2/+2
| | | | Rename to use proper namespace.
* rtems: Add rtems_scheduler_get_processor_maximum()Sebastian Huber2019-04-091-1/+1
| | | | | | | | | | | Add rtems_scheduler_get_processor_maximum() as a replacement for rtems_get_processor_count(). The rtems_get_processor_count() is a bit orphaned. Adopt it by the Scheduler Manager. The count is also misleading, since the processor set may have gaps and the actual count of online processors may be less than the value returned by rtems_get_processor_count(). Update #3732.
* Remove superfluous run-time checkSebastian Huber2019-04-091-7/+1
| | | | | The _Objects_Information_table[ the_api ] is never NULL for a valid API index.
* pthreadcreate.c: Silence unused variable warning (CID 1399716)Joel Sherrill2019-03-251-0/+1
|
* shmopen.c: Fix logically unreachable code (Coverity ID: 1399706, 1399714)Joel Sherrill2019-03-141-2/+3
| | | | Closes #3694.
* Remove superfluous <rtems/system.h> includesSebastian Huber2019-03-1439-40/+3
|
* posix: is_initialized is of type int not boolSebastian Huber2019-03-133-3/+3
|
* score: Static Objects_Information initializationSebastian Huber2018-12-1413-515/+510
| | | | | | | | | | | 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: Fix shm_unlink()Sebastian Huber2018-12-111-1/+10
| | | | This function is untested.
* score: Remove Objects_Information::maximumSebastian Huber2018-12-071-1/+1
| | | | | | | This information is already present in Objects_Information::maximum_id. Add and use _Objects_Get_maximum_index(). Update #3621.
* score: Optimize object lookupSebastian Huber2018-12-071-1/+1
| | | | | | | | | | | | | | | | Use the maximum ID for the ID to object translation. Using the maximum ID gets rid of an additional load from the object information in _Objects_Get(). In addition, object lookups fail for every ID in case the object information is cleared to zero. This makes it a bit more robust during system startup (see new tests in spconfig02). The local table no longer needs a NULL pointer entry at array index zero. Adjust all the object iteration loops accordingly. Remove Objects_Information::minimum_id since it contains only redundant information. Add _Objects_Get_minimum_id() to get the minimum ID. Update #3621.
* score: Remove Objects_Information::is_stringSebastian Huber2018-12-075-7/+2
| | | | | | Use Objects_Information::name_length to store this information. Update #3621.
* 5 spelling errors for a Google Code-In task.Jacob Shin2018-12-021-1/+1
| | | | Username: deuteriumoxide Email: jacobshin313@gmail.com
* posix: Provide threads by defaultSebastian Huber2018-10-294-15/+37
| | | | Update #2514.
* posix: Provide shared memory objects by defaultSebastian Huber2018-10-291-0/+40
| | | | Update #2514.
* posix: Split posix_api_configuration_tableSebastian Huber2018-10-2913-13/+212
| | | | | | Use separate configuration variables to avoid false dependencies. Update #2514.
* Remove RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMESSebastian Huber2018-10-293-5/+5
| | | | | | | | | Enable support for string objects names unconditionally. Add const qualifier throughout. Split _Objects_Namespace_remove() into _Objects_Namespace_remove_u32() and _Objects_Namespace_remove_string() to avoid an unnecessary dependency on _Workspace_Free(). Update #2514.
* score: Remove bogus thread object name supportSebastian Huber2018-10-291-3/+1
| | | | Update #2514.
* posix: Provide get thread attributes by defaultSebastian Huber2018-10-241-0/+4
| | | | Update #2514.
* posix: Fix unused result warningSebastian Huber2018-10-121-2/+2
|
* build: Merge posix/Makefile.amSebastian Huber2018-10-101-200/+0
|
* build: Remove specialized CPPFLAGSSebastian Huber2018-10-091-1/+0
|
* posix: Remove static assertionSebastian Huber2018-10-091-2/+0
| | | | | | | | Standard C does not allow pointer operands in an integer constant expressions. GCC issues only a -Wpedantic warning in the removed static assertion. However, clang is pedantic by default and issues an error. Rely on the test case instead.
* score: Fix legacy RTEMS_STATIC_ASSERT()Sebastian Huber2018-10-052-2/+3
| | | | | | | | | In standard C pointer operands are not allowed in integer constant expressions. Avoid a static assertion based on an array typedef since this could lead to warnings ("variably modified 'x' at file scope" and "typedef 'x' locally defined but not used"); This implementation requires unique messages.
* Rename files to make them unique within cpukitSebastian Huber2018-10-044-2/+2
| | | | This allows to build librtemscpu.a in one rush in the future.
* posix: Add configure check for mprotect()Sebastian Huber2018-08-101-0/+4
| | | | Update #3491.
* score: RTEMS_PREDICT_TRUE(), RTEMS_PREDICT_FALSE()Sebastian Huber2018-07-253-4/+4
| | | | | | | Add RTEMS_PREDICT_TRUE() and RTEMS_PREDICT_FALSE() for static branch prediction hints. Close #3475.
* posix: Fix rwlock auto initializationSebastian Huber2018-07-161-1/+1
| | | | Add more test cases.
* posix: Check for new <pthread.h> prototypesSebastian Huber2018-07-053-8/+16
| | | | | Update #3342. Update #3343.
* build: Remove EXTRA_DISTSebastian Huber2018-04-041-2/+0
| | | | | A "make dist" is not supported. So, it makes no sense to have pure "make dist" related stuff in the Makefile.am.
* Use _Thread_Dispatch_direct()Sebastian Huber2018-02-082-2/+2
| | | | | | | Use _Thread_Dispatch_direct() for operations that block the executing thread. This ensures that we get a fatal error (INTERNAL_ERROR_BAD_THREAD_DISPATCH_DISABLE_LEVEL) if we try to block in an invalid context, e.g. during system start or an interrupt handler.
* posix: Use one second based CLOCK_MONOTONICSebastian Huber2018-02-021-2/+3
| | | | | | | This simplifies the CLOCK_MONOTONIC based time services. It is potentially important for libbsd. Close #3265.
* score: Introduce new monotonic clockSebastian Huber2018-02-028-14/+14
| | | | | | | | Rename PER_CPU_WATCHDOG_MONOTONIC to PER_CPU_WATCHDOG_TICKS. Add new PER_CPU_WATCHDOG_MONOTONIC which is based on the system uptime (measured by timecounter). Close #3264.
* Remove make preinstallChris Johns2018-01-2532-3982/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A speciality of the RTEMS build system was the make preinstall step. It copied header files from arbitrary locations into the build tree. The header files were included via the -Bsome/build/tree/path GCC command line option. This has at least seven problems: * The make preinstall step itself needs time and disk space. * Errors in header files show up in the build tree copy. This makes it hard for editors to open the right file to fix the error. * There is no clear relationship between source and build tree header files. This makes an audit of the build process difficult. * The visibility of all header files in the build tree makes it difficult to enforce API barriers. For example it is discouraged to use BSP-specifics in the cpukit. * An introduction of a new build system is difficult. * Include paths specified by the -B option are system headers. This may suppress warnings. * The parallel build had sporadic failures on some hosts. This patch removes the make preinstall step. All installed header files are moved to dedicated include directories in the source tree. Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc, etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g. erc32, imx, qoriq, etc. The new cpukit include directories are: * cpukit/include * cpukit/score/cpu/@RTEMS_CPU@/include * cpukit/libnetworking The new BSP include directories are: * bsps/include * bsps/@RTEMS_CPU@/include * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include There are build tree include directories for generated files. The include directory order favours the most general header file, e.g. it is not possible to override general header files via the include path order. The "bootstrap -p" option was removed. The new "bootstrap -H" option should be used to regenerate the "headers.am" files. Update #3254.
* posix: Remove unused global variableSebastian Huber2017-12-151-2/+0
| | | | | Update #2702. Update #2555.
* score: Use self-contained API mutexSebastian Huber2017-12-041-1/+1
| | | | | | | | | | Use a self-contained recursive mutex for API_Mutex_Control. The API mutexes are protected against asynchronous thread cancellation. Add dedicated mutexes for libatomic and TOD. Close #2629. Close #2630.
* INTERNAL_ERROR_POSIX_INIT_THREAD_ENTRY_IS_NULLSebastian Huber2017-11-221-7/+1
| | | | | | Delete superfluous INTERNAL_ERROR_POSIX_INIT_THREAD_ENTRY_IS_NULL. Update #3243.
* score: Simplify global constructionSebastian Huber2017-11-221-22/+4
| | | | Update #3243.
* posix: _POSIX_Threads_Get_sched_param_sporadic()Sebastian Huber2017-11-213-9/+4
| | | | | | Remove api parameter to simplify the calling functions. Update #2514.
* posix: Change created_with_explicit_schedulerSebastian Huber2017-11-093-8/+5
| | | | | | | | Remove POSIX_API_Control::created_with_explicit_scheduler. Add Thread_Control::was_created_with_inherited_scheduler. This fixes also pthread_getattr_np() for Classic tasks. Update #2514.
* posix: Remove POSIX_API_Control::schedpolicySebastian Huber2017-11-098-27/+45
| | | | | | | Use the thread CPU budget algorithm to determine the scheduler policy. This fixes also pthread_getschedparam() for Classic tasks. Update #2514.
* posix: Use far future for very long timeoutsSebastian Huber2017-11-022-22/+8
| | | | Close #3205.
* posix: Fix pthread_create() with user stackSebastian Huber2017-10-281-3/+11
| | | | | | | In case the user provides a stack with address and size, then do not alter the stack size. Close #3211.
* score: Move thread queue timeout handlingSebastian Huber2017-10-2422-559/+280
| | | | | Update #3117. Update #3182.
* score: Rename function threadq support functionSebastian Huber2017-10-246-9/+6
| | | | | | | | | Rename _Thread_queue_Context_set_do_nothing_enqueue_callout() into _Thread_queue_Context_set_enqueue_do_nothing_extra(). More _Thread_queue_Context_set_enqueue_*() functions will follow. Update #3117. Update #3182.
* score: Rename _Watchdog_Ticks_from_*()Sebastian Huber2017-10-241-2/+2
| | | | | | | | | | Rename _Watchdog_Ticks_from_*() to _Watchdog_Realtime_from_*(). This highlights that these routines are used for the CLOCK_REALTIME watchdogs (in contrast to CLOCK_MONOTONIC). Update #3117. Update #3182.
* posix: Do not touch msg priority in case of errorSebastian Huber2017-10-241-4/+4
|
* posix: Fix POSIX disabled buildSebastian Huber2017-10-231-1/+4
| | | | Update #2514.