| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
* posix/src/alarm.c: If 0 seconds do not insert timer.
* rtems/src/regionextend.c: Eliminate warning. Use default else.
|
|
|
|
|
|
|
| |
* posix/include/rtems/posix/threadsup.h, posix/src/cancel.c,
posix/src/canceleval.c: Make psxcancel run again.
_POSIX_Thread_Exit() can be called on running thread or another
thread when it is cancelled.
|
|
|
|
|
|
|
|
| |
* posix/src/mqueuetimedreceive.c, posix/src/mqueuetimedsend.c,
posix/src/mutextimedlock.c, posix/src/prwlocktimedrdlock.c,
posix/src/prwlocktimedwrlock.c, posix/src/semtimedwait.c: Switch from
switch to if's because only one value needed to be tested. This
shrinks the code and makes it easier to do coverage analysis on.
|
|
|
|
|
|
|
| |
* posix/include/rtems/posix/psignal.h: Add extern for ualarm timer.
* posix/src/alarm.c, posix/src/ualarm.c: Change from switch to if since
many enumerated values have no action.
* posix/src/psignal.c: Initialize ualarm and alarm timers.
|
|
|
|
|
|
| |
* libmisc/capture/capture.c, posix/src/pthread.c, rtems/src/tasks.c,
score/include/rtems/score/userext.h: Eliminate use of deprecated
rtems_extension. Re-add prototype for _User_extensions_Add_API_set.
|
|
|
|
|
| |
* posix/include/rtems/posix/threadsup.h: Add no return atrribute to
_POSIX_Thread_Exit().
|
|
|
|
|
|
| |
* libcsupport/src/getpagesize.c, posix/Makefile.am: Eliminate one copy
of getpagesize() and make it return an int.
* posix/src/getpagesize.c: Removed.
|
|
|
|
|
| |
* posix/Makefile.am: Add getpagesize(). Now required by GNU Ada.
* posix/src/getpagesize.c: New file.
|
|
|
|
|
| |
* posix/src/nanosleep.c: Disable EINTR case when POSIX is disabled
because it cannot happen.
|
|
|
|
|
|
| |
* posix/Makefile.am, posix/src/clockgetres.c: Add clockgetres.c to set
of clock and delayt methods built when POSIX threads are disabled.
Ensure it builds when POSIX is disabled.
|
|
|
|
|
|
|
|
| |
* posix/src/pthread.c: Address sporadic server edge cases. Do not
change priority if thread is holding a priority ceiling or
inheritance mutex. Do not change it if it looks like the thread has
manually changed its priority. Style cleanup on file with new
comments added.
|
|
|
|
|
|
|
| |
* libcsupport/Makefile.am, libcsupport/preinstall.am,
posix/Makefile.am, posix/preinstall.am, rtems/Makefile.am,
rtems/preinstall.am, score/Makefile.am, score/preinstall.am: Revert
modifications accidentally committed.
|
|
|
|
|
|
|
|
| |
* libcsupport/Makefile.am, posix/Makefile.am, rtems/Makefile.am,
sapi/Makefile.am, score/Makefile.am,
score/include/rtems/score/heap.h: HEAP_BLOCK_USED_OVERHEAD was under
by one uint32_t. This showed up in the unlimited and heapwalk tests
on ARM targets.
|
| |
|
|
|
|
|
|
|
| |
* posix/src/mqueuecreatesupp.c, posix/src/mqueuenametoid.c,
posix/src/mqueueopen.c, posix/src/semaphorecreatesupp.c: Tinker with
error handling for name too long. Use strnlen to ensure we do not run
off the end of the maximum length string.
|
|
|
|
|
| |
* posix/src/sigaction.c: _POSIX_signals_Clear_process_signals now takes
signal number not mask.
|
|
|
|
| |
* posix/src/psignalclearsignals.c: Add comments.
|
|
|
|
|
|
| |
* posix/src/mqueuecreatesupp.c: Now that the number of POSIX message
queues and message queue descriptors are independently configured,
this code is reachable.
|
|
|
|
|
|
|
| |
* posix/include/rtems/posix/psignal.h, posix/src/mqueuecreatesupp.c,
posix/src/psignalclearprocesssignals.c,
posix/src/psignalclearsignals.c: Minor rework to ease coverage
analysis.
|
|
|
|
|
|
| |
* posix/include/rtems/posix/config.h, posix/src/mqueue.c,
sapi/include/confdefs.h: Add configuration of posix message queue
file descriptors as separate entity.
|
|
|
|
|
| |
* posix/src/psignal.c: Simplify implementation to ease coverage
analysis.
|
|
|
|
|
|
|
| |
* posix/src/psxtransschedparam.c, posix/src/pthread.c: Add error checks
for 0 time on sporadic scheduler replenish period and initial budget.
This avoids having to correct for it in the TSR, so we can eliminate
the check for ticks == 0 there.
|
|
|
|
|
| |
* posix/src/mqueuedeletesupp.c: Mark unreachable section as
RTEMS_DEBUG.
|
|
|
|
|
|
|
|
| |
* posix/src/killinfo.c: Add _Thread_Enable_dispatch() on EAGAIN
error case. Add debug print on loop processing threads waiting
for signal.
* posix/src/psignal.c: When the sigwait() Thread Queue processing loop
was changed to FIFO, I forgot to change the initialization to match.
|
|
|
|
|
| |
* posix/src/killinfo.c: Rework to make easier to analyze for code
coverage and to simplify so it is easier to analyze for correctness.
|
|
|
|
| |
* posix/src/killinfo.c: Clean up. Avoid NULL pointer case.
|
|
|
|
|
|
| |
* posix/include/semaphore.h, posix/include/rtems/posix/semaphore.h:
Move SEM_FAILED from private file to public file since it is defined
by POSIX.
|
|
|
|
|
|
|
|
| |
* posix/include/rtems/posix/key.h, posix/src/keycreate.c,
posix/src/keydelete.c, posix/src/keyrundestructors.c: Restructure a
bit to make it easier to do coverage analysis. Eliminate is_active
member of control structure because it was redundant with very the
key object was open or closed.
|
|
|
|
|
|
|
| |
* posix/include/rtems/posix/cancel.h, posix/src/cancel.c,
posix/src/canceleval.c, posix/src/setcancelstate.c,
posix/src/setcanceltype.c: Fix a minor bug in the previous
modification which resulted in psxcancel failing.
|
|
|
|
|
|
|
|
|
| |
* posix/Makefile.am, posix/include/rtems/posix/cancel.h,
posix/src/cancel.c, posix/src/setcancelstate.c,
posix/src/setcanceltype.c: Add
_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch method to
avoid duplication of code and ease coverage analysis.
* posix/src/canceleval.c: New file.
|
|
|
|
|
| |
* posix/src/mutexattrgettype.c: Restructure a bit to make code coverage
analysis easier.
|
|
|
|
| |
* ChangeLog, posix/src/mutexsetprioceiling.c: Remove warning.
|
|
|
|
|
|
|
| |
* posix/src/mutexsetprioceiling.c: Restructure to eliminate code
paths which are unreachable. Also add more comments.
* score/src/coremutexsurrender.c: Mark some code as RTEMS_DEBUG only
since it cannot be hit unless coremutexseize.c is broken.
|
|
|
|
|
| |
* posix/src/mutexget.c: Restructure to improve ability to do coverage
analysis.
|
|
|
|
|
| |
* posix/src/psxtransschedparam.c: Restructure to avoid untestable code
being generated by switch.
|
| |
|
|
|
|
|
|
|
| |
* posix/Makefile.am, posix/src/mutex.c, posix/src/mutexinit.c: Add
initial support for the pthread mutex type attribute added by UNIX98.
It can be normal, recursive, errorcheck or default.
* posix/src/mutexattrgettype.c, posix/src/mutexattrsettype.c: New files.
|
|
|
|
|
|
|
| |
* itron/src/task.c, posix/src/pthread.c, rtems/src/tasks.c,
sapi/src/exinit.c, score/include/rtems/score/apiext.h,
score/src/apiext.c: No APIs currently implemented use the
predriver_hook so disable it until such time as it is used.
|
|
|
|
|
| |
* posix/src/sigtimedwait.c: Restructure to improve coverage. Improve
comments.
|
|
|
|
|
| |
* posix/src/prwlocktimedrdlock.c: Restructure if slightly to make to
make it easier to analyze for coverage.
|
|
|
|
|
|
|
|
| |
* posix/src/killinfo.c, posix/src/mutexinit.c, posix/src/psignal.c,
posix/src/psignalchecksignal.c, posix/src/pthread.c,
posix/src/pthreadexit.c, posix/src/pthreadinitthreads.c: Remove
includes of <assert.h> where possible. Make other uses conditional on
ifdef RTEMS_DEBUG.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* posix/Makefile.am, posix/include/rtems/posix/priority.h,
posix/include/rtems/posix/pthread.h,
posix/inline/rtems/posix/priority.inl, posix/src/killinfo.c,
posix/src/pthread.c, posix/src/pthreadcreate.c,
posix/src/pthreadsetschedparam.c: Various modifications to improve
binary code coverage analysis. Some of these are to mark code as
debug only. Some are to break conditional expressions into multiple
lines. Some are to move inline methods that are not time critical
into subroutines to make them easier to test. Inlining them multiple
times means that their logic paths are spread across multiple
methods. This explodes the test cases required.
* posix/src/psxpriorityisvalid.c, posix/src/psxtransschedparam.c: New files.
|
|
|
|
| |
* posix/src/killinfo.c: Make easier to map coverage data.
|
|
|
|
|
| |
* posix/src/getitimer.c, posix/src/setitimer.c: Add error checks and
clean up so coverage analysis is possible.
|
|
|
|
| |
* posix/src/sysconf.c: Restructure to improve coverage analysis.
|
|
|
|
|
| |
* posix/include/rtems/posix/psignal.h,
rtems/inline/rtems/rtems/support.inl: Remove warnings.
|
|
|
|
|
|
| |
* posix/src/condtimedwait.c, posix/src/mutextimedlock.c,
posix/src/prwlocktimedrdlock.c, posix/src/prwlocktimedwrlock.c,
posix/src/semopen.c: Silence warnings.
|
|
|
|
|
|
| |
PR 1393/cpukit
* posix/src/mutextranslatereturncode.c: Add entry to table for
CORE_MUTEX_RELEASE_NOT_ORDER.
|
| |
|
| |
|