summaryrefslogtreecommitdiffstats
path: root/cpukit/posix (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 2009-10-11 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-10-111-1/+2
| | | | | * posix/src/alarm.c: If 0 seconds do not insert timer. * rtems/src/regionextend.c: Eliminate warning. Use default else.
* 2009-10-10 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-10-103-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-10 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-10-106-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-04 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-10-044-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-26 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-09-261-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-25 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-09-251-1/+1
| | | | | * posix/include/rtems/posix/threadsup.h: Add no return atrribute to _POSIX_Thread_Exit().
* 2009-09-24 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-09-242-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-20 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-09-202-1/+23
| | | | | * posix/Makefile.am: Add getpagesize(). Now required by GNU Ada. * posix/src/getpagesize.c: New file.
* 2009-09-13 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-09-141-4/+8
| | | | | * posix/src/nanosleep.c: Disable EINTR case when POSIX is disabled because it cannot happen.
* 2009-09-13 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-09-132-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-19 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-08-191-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-12 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-08-122-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-09 Xi Yang <hiyangxi@gmail.com>Joel Sherrill2009-08-091-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.
* RevertJoel Sherrill2009-08-061-1/+0
|
* 2009-08-06 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-08-064-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-05 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-08-051-1/+1
| | | | | * posix/src/sigaction.c: _POSIX_signals_Clear_process_signals now takes signal number not mask.
* 2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-08-051-2/+7
| | | | * posix/src/psignalclearsignals.c: Add comments.
* 2009-08-05 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-08-051-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-05 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-08-054-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-05 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-08-052-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-02 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-08-031-19/+12
| | | | | * posix/src/psignal.c: Simplify implementation to ease coverage analysis.
* 2009-08-01 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-08-012-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-29 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-07-291-4/+16
| | | | | * posix/src/mqueuedeletesupp.c: Mark unreachable section as RTEMS_DEBUG.
* 2009-07-29 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-07-292-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-24 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-07-241-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-22 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-07-221-28/+16
| | | | * posix/src/killinfo.c: Clean up. Avoid NULL pointer case.
* 2009-07-22 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-07-222-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-21 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-07-224-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-21 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-07-215-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-21 Santosh G Vattam <vattam.santosh@gmail.com>Joel Sherrill2009-07-216-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-17 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-07-171-1/+7
| | | | | * posix/src/mutexattrgettype.c: Restructure a bit to make code coverage analysis easier.
* 2009-07-07 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-07-071-2/+1
| | | | * ChangeLog, posix/src/mutexsetprioceiling.c: Remove warning.
* 2009-07-07 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-07-071-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-06 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-07-061-6/+13
| | | | | * posix/src/mutexget.c: Restructure to improve ability to do coverage analysis.
* 2009-07-06 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-07-061-23/+23
| | | | | * posix/src/psxtransschedparam.c: Restructure to avoid untestable code being generated by switch.
* Update copyright.Joel Sherrill2009-07-061-1/+1
|
* 2009-07-06 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-07-065-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-03 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-07-031-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-03 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-07-031-8/+24
| | | | | * posix/src/sigtimedwait.c: Restructure to improve coverage. Improve comments.
* 2009-06-30 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-06-301-11/+12
| | | | | * posix/src/prwlocktimedrdlock.c: Restructure if slightly to make to make it easier to analyze for coverage.
* 2009-06-29 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-06-297-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-24 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-06-2410-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-15 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-06-151-5/+16
| | | | * posix/src/killinfo.c: Make easier to map coverage data.
* 2009-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-05-152-11/+24
| | | | | * posix/src/getitimer.c, posix/src/setitimer.c: Add error checks and clean up so coverage analysis is possible.
* 2009-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-05-151-18/+12
| | | | * posix/src/sysconf.c: Restructure to improve coverage analysis.
* 2009-05-08 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-05-081-1/+1
| | | | | * posix/include/rtems/posix/psignal.h, rtems/inline/rtems/rtems/support.inl: Remove warnings.
* 2009-05-03 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-05-035-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-12 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-03-121-0/+3
| | | | | | PR 1393/cpukit * posix/src/mutextranslatereturncode.c: Add entry to table for CORE_MUTEX_RELEASE_NOT_ORDER.
* Make sched_getparam() POSIX compliant.Ralf Corsepius2009-02-062-2/+2
|
* Eliminate TRUE/FALSE.Ralf Corsepius2009-02-0359-96/+96
|