summaryrefslogtreecommitdiffstats
path: root/cpukit/posix (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-10-112009-10-11 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-1/+2
* posix/src/alarm.c: If 0 seconds do not insert timer. * rtems/src/regionextend.c: Eliminate warning. Use default else.
2009-10-102009-10-10 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill3-9/+7
* 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.
2009-10-102009-10-10 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill6-72/+47
* 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.
2009-10-042009-10-04 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill4-38/+37
* 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.
2009-09-262009-09-26 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-2/+2
* 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.
2009-09-252009-09-25 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-1/+1
* posix/include/rtems/posix/threadsup.h: Add no return atrribute to _POSIX_Thread_Exit().
2009-09-242009-09-24 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2-23/+1
* libcsupport/src/getpagesize.c, posix/Makefile.am: Eliminate one copy of getpagesize() and make it return an int. * posix/src/getpagesize.c: Removed.
2009-09-202009-09-20 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2-1/+23
* posix/Makefile.am: Add getpagesize(). Now required by GNU Ada. * posix/src/getpagesize.c: New file.
2009-09-142009-09-13 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-4/+8
* posix/src/nanosleep.c: Disable EINTR case when POSIX is disabled because it cannot happen.
2009-09-132009-09-13 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2-4/+3
* 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.
2009-08-192009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-57/+53
* 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.
2009-08-122009-08-12 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2-16/+1
* 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.
2009-08-092009-08-09 Xi Yang <hiyangxi@gmail.com>Joel Sherrill1-0/+1
* 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.
2009-08-06RevertJoel Sherrill1-1/+0
2009-08-062009-08-06 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill4-57/+28
* 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.
2009-08-052009-08-05 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-1/+1
* posix/src/sigaction.c: _POSIX_signals_Clear_process_signals now takes signal number not mask.
2009-08-052009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-2/+7
* posix/src/psignalclearsignals.c: Add comments.
2009-08-052009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-6/+4
* posix/src/mqueuecreatesupp.c: Now that the number of POSIX message queues and message queue descriptors are independently configured, this code is reachable.
2009-08-052009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill4-13/+26
* posix/include/rtems/posix/psignal.h, posix/src/mqueuecreatesupp.c, posix/src/psignalclearprocesssignals.c, posix/src/psignalclearsignals.c: Minor rework to ease coverage analysis.
2009-08-052009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2-1/+2
* 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.
2009-08-032009-08-02 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-19/+12
* posix/src/psignal.c: Simplify implementation to ease coverage analysis.
2009-08-012009-08-01 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2-6/+10
* 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.
2009-07-292009-07-29 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-4/+16
* posix/src/mqueuedeletesupp.c: Mark unreachable section as RTEMS_DEBUG.
2009-07-292009-07-29 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2-2/+9
* 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.
2009-07-242009-07-24 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-74/+83
* posix/src/killinfo.c: Rework to make easier to analyze for code coverage and to simplify so it is easier to analyze for correctness.
2009-07-222009-07-22 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-28/+16
* posix/src/killinfo.c: Clean up. Avoid NULL pointer case.
2009-07-222009-07-22 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2-9/+5
* 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.
2009-07-222009-07-21 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill4-39/+32
* 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.
2009-07-212009-07-21 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill5-17/+29
* 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.
2009-07-212009-07-21 Santosh G Vattam <vattam.santosh@gmail.com>Joel Sherrill6-39/+72
* 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.
2009-07-172009-07-17 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-1/+7
* posix/src/mutexattrgettype.c: Restructure a bit to make code coverage analysis easier.
2009-07-072009-07-07 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-2/+1
* ChangeLog, posix/src/mutexsetprioceiling.c: Remove warning.
2009-07-072009-07-07 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-5/+15
* 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.
2009-07-062009-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-6/+13
* posix/src/mutexget.c: Restructure to improve ability to do coverage analysis.
2009-07-062009-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-23/+23
* posix/src/psxtransschedparam.c: Restructure to avoid untestable code being generated by switch.
2009-07-06Update copyright.Joel Sherrill1-1/+1
2009-07-062009-07-06 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill5-29/+138
* 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.
2009-07-032009-07-03 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-1/+3
* 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.
2009-07-032009-07-03 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-8/+24
* posix/src/sigtimedwait.c: Restructure to improve coverage. Improve comments.
2009-06-302009-06-30 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-11/+12
* posix/src/prwlocktimedrdlock.c: Restructure if slightly to make to make it easier to analyze for coverage.
2009-06-292009-06-29 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill7-20/+18
* 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.
2009-06-242009-06-24 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill10-174/+250
* 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.
2009-06-152009-06-15 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-5/+16
* posix/src/killinfo.c: Make easier to map coverage data.
2009-05-152009-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2-11/+24
* posix/src/getitimer.c, posix/src/setitimer.c: Add error checks and clean up so coverage analysis is possible.
2009-05-152009-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-18/+12
* posix/src/sysconf.c: Restructure to improve coverage analysis.
2009-05-082009-05-08 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-1/+1
* posix/include/rtems/posix/psignal.h, rtems/inline/rtems/rtems/support.inl: Remove warnings.
2009-05-032009-05-03 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill5-7/+6
* posix/src/condtimedwait.c, posix/src/mutextimedlock.c, posix/src/prwlocktimedrdlock.c, posix/src/prwlocktimedwrlock.c, posix/src/semopen.c: Silence warnings.
2009-03-122009-03-12 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-0/+3
PR 1393/cpukit * posix/src/mutextranslatereturncode.c: Add entry to table for CORE_MUTEX_RELEASE_NOT_ORDER.
2009-02-06Make sched_getparam() POSIX compliant.Ralf Corsepius2-2/+2
2009-02-03Eliminate TRUE/FALSE.Ralf Corsepius59-96/+96