| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
PR 1759/cpukit
* posix/src/cancel.c, posix/src/pthreaddetach.c,
posix/src/pthreadequal.c, posix/src/pthreadgetschedparam.c,
posix/src/pthreadjoin.c, posix/src/pthreadkill.c,
posix/src/pthreadsetschedparam.c: Some POSIX pthread services did not
support using Classic API Task Ids.
|
|
|
|
|
|
|
|
| |
* libcsupport/src/sleep_noposix.c: Remove.
* libcsupport/Makefile.am: Reflect changes above.
* posix/src/sleep.c, posix/src/usleep.c: Remove.
* posix/Makefile.am: Reflect changes above.
* configure.ac: Error out if libc doesn't provide sleep, usleep.
|
| |
|
|
|
|
| |
* posix/include/rtems/posix/mqueue.h: Relocate "extern C++" guards.
|
|
|
|
| |
* posix/include/rtems/posix/key.h: Add missing includes.
|
|
|
|
| |
* posix/include/mqueue.h: Relocate "extern C++" guards.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libmisc/capture/capture.c, posix/src/keyfreememory.c,
posix/src/pthread.c, score/include/rtems/score/wkspace.h,
score/src/objectextendinformation.c,
score/src/objectnamespaceremove.c, score/src/objectsetname.c,
score/src/threadclose.c, score/src/threadinitialize.c,
score/src/wkspace.c: Many places were checking for a NULL pointer
before calling _Workspace_Free. By moving the check into
_Workspace_Free, we eliminate a number of conditional paths and make
it harder to return a NULL pointer.
|
|
|
|
|
|
|
|
|
| |
* posix/src/aio_cancel.c: Fixed ending of if braces.
2011-01-17 Alin Rus <alin.codejunkie@gmail.com>
* posix/src/aio_misc.c: Add debug information. Fixed idle_threads/
active_threads issues. Fixed infinite loop in rtems_aio_handle().
|
|
|
|
|
|
|
|
| |
* posix/src/aio_misc.c: Fix rtems_aio_remove_req did not iterate
over chain.
* posix/src/aio_cancel.c: Add debug information. Add check for
bad file descriptor. Add else branch for cancel request on empty
IQ chain.
|
|
|
|
| |
* posix/src/aio_cancel.c: Use perfd field not next_fd.
|
|
|
|
|
|
| |
* configure.ac, posix/src/signal_2.c: sighandler_t is defined
conditionally in some versions of newlib and unconditionally in
others. Make sure we always compile.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libfs/src/dosfs/fat_file.c, libfs/src/imfs/imfs_debug.c,
libfs/src/imfs/imfs_directory.c, libfs/src/imfs/imfs_getchild.c,
posix/src/killinfo.c, score/inline/rtems/score/schedulerpriority.inl,
score/inline/rtems/score/watchdog.inl, score/src/apiext.c,
score/src/chain.c, score/src/coremsgflushsupp.c,
score/src/coremsginsert.c, score/src/objectshrinkinformation.c,
score/src/schedulerpriorityyield.c,
score/src/threadqdequeuepriority.c,
score/src/threadqenqueuepriority.c,
score/src/threadqextractpriority.c, score/src/threadqfirstfifo.c,
score/src/threadqfirstpriority.c, score/src/threadyieldprocessor.c,
score/src/userextthreadbegin.c, score/src/userextthreadcreate.c,
score/src/userextthreaddelete.c, score/src/userextthreadrestart.c,
score/src/userextthreadstart.c, score/src/userextthreadswitch.c,
score/src/watchdogreportchain.c: Avoid chain API violations.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 1647/cpukit
* posix/src/nanosleep.c, posix/src/sched_yield.c,
rtems/src/taskwakeafter.c, sapi/include/confdefs.h,
sapi/include/rtems/config.h, sapi/src/exinit.c, score/Makefile.am,
score/preinstall.am, score/include/rtems/score/prioritybitmap.h,
score/include/rtems/score/thread.h,
score/inline/rtems/score/thread.inl, score/src/thread.c,
score/src/threadchangepriority.c, score/src/threadclearstate.c,
score/src/threadclose.c, score/src/threadinitialize.c,
score/src/threadready.c, score/src/threadresume.c,
score/src/threadsetpriority.c, score/src/threadsetstate.c,
score/src/threadsettransient.c, score/src/threadsuspend.c,
score/src/threadtickletimeslice.c: Refactor scheduler out of thread
handler to facilitate alternate scheduler implementations.
* score/src/threadyieldprocessor.c: Removed.
* score/src/schedulerprioritythreadschedulerupdate.c,
score/src/schedulerprioritythreadschedulerfree.c,
score/src/schedulerpriorityblock.c, score/src/scheduler.c,
score/src/schedulerprioritythreadschedulerallocate.c,
score/src/schedulerpriorityunblock.c,
score/src/schedulerpriority.c, score/src/schedulerpriorityyield.c,
score/include/rtems/score/schedulerpriority.h,
score/include/rtems/score/scheduler.h,
score/inline/rtems/score/scheduler.inl,
score/inline/rtems/score/schedulerpriority.inl: New files.
|
|
|
|
|
| |
* posix/include/rtems/posix/aio_misc.h, posix/src/aio_misc.c: Small
fixes.
|
|
|
|
| |
* posix/src/psignalunblockthread.c: Formatting.
|
|
|
|
|
| |
* posix/src/mutextimedlock.c: Check status local variable not
lock_status.
|
|
|
|
|
|
|
| |
* Makefile.am, configure.ac, posix/Makefile.am, posix/src/pthread.c:
* posix/src/pthreadattrgetguardsize.c, posix/src/pthreadattrgetstack.c,
posix/src/pthreadattrsetguardsize.c, posix/src/pthreadattrsetstack.c:
New files.
|
|
|
|
| |
* posix/src/psignal.c: Fixed NULL pointer access.
|
| |
|
| |
|
| |
|
|
|
|
| |
* posix/src/killinfo.c: Ensure interested is non-NULL before using it.
|
|
|
|
|
|
|
|
|
|
| |
Coverity Id 164/UNINIT
Coverity Id 165/UNINIT
* posix/src/prwlockinit.c, posix/src/pspininit.c,
score/include/rtems/score/corespinlock.h,
score/inline/rtems/score/corerwlock.inl,
score/inline/rtems/score/corespinlock.inl: Add initialization helpers
for score rwlock and spinlock. Use them from POSIX.
|
|
|
|
| |
* posix/src/aio_cancel.c: Spray pthread_mutex_unlocks.
|
|
|
|
| |
* posix/src/aio_read.c: aio_nbytes is always >= 0.
|
|
|
|
|
| |
* posix/src/aio_write.c: aio_nbytes is always >= 0.
Fix typo in comment.
|
|
|
|
|
|
|
|
|
|
|
| |
CID 79/DEADCODE
CID 78/DEADCODE
CID 77/DEADCODE
CID 76/DEADCODE
* posix/src/condtimedwait.c, posix/src/mutextimedlock.c,
posix/src/prwlocktimedrdlock.c, posix/src/prwlocktimedwrlock.c,
posix/src/semtimedwait.c: Resolve various dead code issues identified
by Coverity scanner.
|
|
|
|
|
| |
* posix/include/rtems/posix/aio_misc.h: Add decl for aio_request_queue.
* posix/src/aio_misc.c: Add aio_request_queue.
|
|
|
|
|
| |
* posix/include/rtems/posix/aio_misc.h: Remove rtems_aio_request_s,
rtems_aio_request_chain_s, rtems_aio_queue_s;
|
|
|
|
|
| |
* posix/include/aio.h: Separate LIO-modes from LIO-opcodes (From
freebsd).
|
|
|
|
|
|
|
|
| |
* posix/include/aio.h: Add LIO_SYNC.
* posix/include/rtems/posix/aio_misc.h: Add aio_request_queue,
Cosmetics.
* posix/src/aio_cancel.c, posix/src/aio_fsync.c, posix/src/aio_misc.c:
Rework.
|
|
|
|
|
|
|
| |
* posix/include/rtems/posix/aio_misc.h: Remove
rtems_aio_queue_s.size (Unused).
* posix/src/aio_misc.c: Remove aio_request_queue.size.
Cosmetics.
|
|
|
|
| |
* posix/Makefile.am: Reflect aio-changes.
|
|
|
|
|
|
|
| |
* posix/src/aio_misc.c: New.
* posix/src/aio_error.c, posix/src/aio_read.c,
* posix/src/aio_return.c, posix/src/aio_write.c:
New implementation.
|
| |
|
|
|
|
|
| |
* posix/include/aio.h: Extend struct aiocb.
* posix/include/rtems/posix/aio_misc.h: New.
|
|
|
|
|
|
| |
PR 1615/cpukit
* posix/src/keyrundestructors.c: Improved POSIX compliance. Now we may
have an unlimited number of iterations.
|
|
|
|
|
| |
* posix/include/aio.h, posix/src/aio_return.c:
Let aio_return return ssize_t (Mandated by POSIX).
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 1599/cpukit
* posix/src/psignalunblockthread.c, posix/src/pthreadkill.c,
rtems/src/signalsend.c, score/include/rtems/score/percpu.h,
score/inline/rtems/score/thread.inl, score/src/thread.c,
score/src/threadchangepriority.c, score/src/threadclearstate.c,
score/src/threaddispatch.c, score/src/threadready.c,
score/src/threadresume.c, score/src/threadsetstate.c,
score/src/threadstartmultitasking.c, score/src/threadsuspend.c,
score/src/threadyieldprocessor.c: Rename _Context_Switch_necessary to
_Thread_Dispatch_necessary to more properly reflect the intent.
|
|
|
|
| |
* posix/src/psignalunblockthread.c: Clean up and simplify.
|
|
|
|
|
|
| |
* posix/src/condinit.c, posix/src/condwaitsupp.c,
posix/src/psignalunblockthread.c: Clean up some signal interruption
code.
|
|
|
|
| |
* posix/src/keycreate.c: Fix typo.
|
|
|
|
| |
* posix/src/sigsuspend.c: Do not assert unless RTEMS_DEBUG is defined.
|
|
|
|
|
|
| |
PR 1629/cpukit
* posix/src/sigsuspend.c: sigsuspend() was not completely following the
POSIX specification.
|
|
|
|
|
|
| |
PR 1630/cpukit
* posix/src/psignalchecksignal.c, posix/src/sigtimedwait.c:
sigtimedwait() was not completely following the POSIX specification.
|
|
|
|
|
|
|
|
|
|
| |
* libcsupport/src/privateenv.c, libmisc/cpuuse/cpuusagereport.c,
posix/Makefile.am, posix/include/rtems/posix/key.h,
posix/src/keycreate.c, posix/src/keydelete.c,
score/src/iterateoverthreads.c: Since removing ITRON, the loop over
all APIs for tasks has a path that cannot be reached. Either modify
the code or mark tests for NULL as RTEMS_DEBUG.
* posix/src/keyfreememory.c: New file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 1573/cpukit
* configure.ac, posix/src/killinfo.c,
posix/src/psignalclearprocesssignals.c,
posix/src/psignalsetprocesssignals.c,
posix/src/psignalunblockthread.c, posix/src/pthreadcreate.c,
posix/src/pthreadkill.c, posix/src/pthreadsigmask.c,
rtems/src/signalsend.c, rtems/src/taskmode.c, score/Makefile.am,
score/preinstall.am, score/include/rtems/system.h,
score/include/rtems/score/context.h, score/include/rtems/score/isr.h,
score/include/rtems/score/thread.h, score/src/isr.c,
score/src/isrthreaddispatch.c, score/src/thread.c,
score/src/threaddispatch.c, score/src/threadloadenv.c: Add a per cpu
data structure which contains the information required by RTEMS for
each CPU core. This encapsulates information such as thread
executing, heir, idle and dispatch needed.
* score/include/rtems/score/percpu.h, score/src/percpu.c: New files.
|
|
|
|
|
| |
* posix/src/nanosleep.c, posix/src/timersettime.c: Removed redundent
code and cleaned up error checking code.
|
|
|
|
|
| |
* posix/src/keycreate.c, posix/src/killinfo.c: Remove more ITRON
references.
|
|
|
|
|
|
| |
PR 1570/cpukit
* posix/src/semtimedwait.c: This routine is supposed to return -1/errno
NOT the status directly.
|