Joel Sherrill
f16c0591a2
2011-01-17 Alin Rus <alin.codejunkie@gmail.com>
...
* 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().
2011-01-17 22:12:48 +00:00
Joel Sherrill
6c48b5358c
2011-01-08 Alin Rus <alin.codejunkie@gmail.com>
...
* 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.
2011-01-08 21:01:32 +00:00
Joel Sherrill
8633e8f084
2011-01-04 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* posix/src/aio_cancel.c: Use perfd field not next_fd.
2011-01-04 18:38:58 +00:00
Joel Sherrill
57e278dab9
2010-12-03 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* 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.
2010-12-03 20:34:24 +00:00
Sebastian Huber
ce002b161d
2010-11-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* 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.
2010-11-25 09:27:06 +00:00
Joel Sherrill
0faa9dad07
2010-11-24 Gedare Bloom <giddyup44@yahoo.com>
...
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.
2010-11-24 15:51:28 +00:00
Joel Sherrill
5f92568509
2010-11-01 Alin Rus <alin.codejunkie@gmail.com>
...
* posix/include/rtems/posix/aio_misc.h, posix/src/aio_misc.c: Small
fixes.
2010-11-01 17:32:53 +00:00
Joel Sherrill
a5ba675808
2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* posix/src/psignalunblockthread.c: Formatting.
2010-10-21 22:27:16 +00:00
Joel Sherrill
ed553f0bcf
2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* posix/src/mutextimedlock.c: Check status local variable not
lock_status.
2010-10-21 22:21:09 +00:00
Joel Sherrill
21dd3ab8b6
2010-10-04 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* 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.
2010-10-04 15:32:36 +00:00
Sebastian Huber
6daba8105d
2010-09-28 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
* posix/src/psignal.c: Fixed NULL pointer access.
2010-09-28 07:40:34 +00:00
Ralf Corsepius
d28b259c79
Regenerate.
2010-08-30 12:25:37 +00:00
Ralf Corsepius
7bcae3d888
Remove devctl.
2010-08-30 12:25:23 +00:00
Ralf Corsepius
ec34180ff4
Remove.
2010-08-30 12:25:10 +00:00
Joel Sherrill
b003995151
2010-08-29 Joel Sherrill <joel.sherrilL@OARcorp.com>
...
* posix/src/killinfo.c: Ensure interested is non-NULL before using it.
2010-08-29 19:50:33 +00:00
Joel Sherrill
4b556660f1
2010-08-25 Joel Sherrill <joel.sherrill@oarcorp.com>
...
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.
2010-08-25 20:01:47 +00:00
Ralf Corsepius
89dbb28bd4
2010-09-24 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* posix/src/aio_cancel.c: Spray pthread_mutex_unlocks.
2010-08-24 12:04:43 +00:00
Ralf Corsepius
e4522091c9
2010-09-24 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* posix/src/aio_read.c: aio_nbytes is always >= 0.
2010-08-24 11:50:35 +00:00
Ralf Corsepius
7280e0a4a0
2010-09-24 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* posix/src/aio_write.c: aio_nbytes is always >= 0.
Fix typo in comment.
2010-08-24 06:46:29 +00:00
Joel Sherrill
64c2aa9ae0
2010-08-23 Joel Sherrill <joel.sherrill@oarcorp.com>
...
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.
2010-08-23 21:31:27 +00:00
Ralf Corsepius
6c22fa12cb
2010-08-16 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* posix/include/rtems/posix/aio_misc.h: Add decl for aio_request_queue.
* posix/src/aio_misc.c: Add aio_request_queue.
2010-08-20 14:37:08 +00:00
Ralf Corsepius
0ca3af6b85
2010-08-16 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* posix/include/rtems/posix/aio_misc.h: Remove rtems_aio_request_s,
rtems_aio_request_chain_s, rtems_aio_queue_s;
2010-08-20 13:32:28 +00:00
Ralf Corsepius
b27ec1e0d7
2010-08-16 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* posix/include/aio.h: Separate LIO-modes from LIO-opcodes (From
freebsd).
2010-08-20 13:30:32 +00:00
Ralf Corsepius
a45e501813
2010-08-16 Alin Rus <alin.codejunkie@gmail.com>
...
* 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.
2010-08-20 09:08:05 +00:00
Ralf Corsepius
a218508230
2010-08-16 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* 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.
2010-08-16 14:09:38 +00:00
Ralf Corsepius
5175e5ee49
2010-08-16 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* posix/Makefile.am: Reflect aio-changes.
2010-08-16 05:47:30 +00:00
Ralf Corsepius
d8a7e18024
2010-08-16 Alin Rus <alin.codejunkie@gmail.com>
...
* 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.
2010-08-16 05:46:09 +00:00
Ralf Corsepius
a45d062026
Regenerate.
2010-08-16 05:40:29 +00:00
Ralf Corsepius
e501d79f46
2010-08-16 Alin Rus <alin.codejunkie@gmail.com>
...
* posix/include/aio.h: Extend struct aiocb.
* posix/include/rtems/posix/aio_misc.h: New.
2010-08-16 05:39:59 +00:00
Sebastian Huber
05d470a557
2010-08-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
...
PR 1615/cpukit
* posix/src/keyrundestructors.c: Improved POSIX compliance. Now we may
have an unlimited number of iterations.
2010-08-09 08:13:21 +00:00
Ralf Corsepius
4685a5901f
2010-08-09 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* posix/include/aio.h, posix/src/aio_return.c:
Let aio_return return ssize_t (Mandated by POSIX).
2010-08-09 07:33:58 +00:00
Joel Sherrill
4b1d26142c
2010-07-30 Gedare Bloom <giddyup44@yahoo.com>
...
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.
2010-07-30 18:53:06 +00:00
Joel Sherrill
53eafcb0d2
2010-07-29 Joel Sherrill <joel.sherrilL@OARcorp.com>
...
* posix/src/psignalunblockthread.c: Clean up and simplify.
2010-07-29 17:49:30 +00:00
Joel Sherrill
c838e2f437
2010-07-28 Vinu Rajashekhar <vinutheraj@gmail.com>
...
* posix/src/condinit.c, posix/src/condwaitsupp.c,
posix/src/psignalunblockthread.c: Clean up some signal interruption
code.
2010-07-28 20:39:48 +00:00
Joel Sherrill
5b507811d8
2010-07-27 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* posix/src/keycreate.c: Fix typo.
2010-07-27 21:22:52 +00:00
Joel Sherrill
234a36c996
2010-07-27 Joel Sherrill <joel.sherrilL@OARcorp.com>
...
* posix/src/sigsuspend.c: Do not assert unless RTEMS_DEBUG is defined.
2010-07-27 17:37:54 +00:00
Joel Sherrill
c9bc2cf62f
2010-07-27 Vinu Rajashekhar <vinutheraj@gmail.com>
...
PR 1629/cpukit
* posix/src/sigsuspend.c: sigsuspend() was not completely following the
POSIX specification.
2010-07-27 16:38:15 +00:00
Joel Sherrill
1102485cbb
2010-07-27 Vinu Rajashekhar <vinutheraj@gmail.com>
...
PR 1630/cpukit
* posix/src/psignalchecksignal.c, posix/src/sigtimedwait.c:
sigtimedwait() was not completely following the POSIX specification.
2010-07-27 16:34:26 +00:00
Joel Sherrill
77c330ce3d
2010-07-26 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* 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.
2010-07-26 22:03:18 +00:00
Joel Sherrill
11e8bc5f0f
2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
...
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.
2010-06-29 00:34:12 +00:00
Jennifer Averett
f5dc557118
2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>
...
* posix/src/nanosleep.c, posix/src/timersettime.c: Removed redundent
code and cleaned up error checking code.
2010-06-22 15:36:06 +00:00
Joel Sherrill
816aab9142
2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* posix/src/keycreate.c, posix/src/killinfo.c: Remove more ITRON
references.
2010-06-21 22:54:54 +00:00
Joel Sherrill
d8af86bf22
2010-06-21 Peter Dufault <dufault@hda.com>
...
PR 1570/cpukit
* posix/src/semtimedwait.c: This routine is supposed to return -1/errno
NOT the status directly.
2010-06-21 16:38:26 +00:00
Joel Sherrill
0d8dad9275
2010-06-16 Joel Sherrill <joel.sherrilL@OARcorp.com>
...
PR 1453/cpukit
* posix/Makefile.am: newlib uses sysconf() for _CLOCKS_PER_SEC_ so
enable it even when POSIX threads are disabled.
2010-06-16 19:12:19 +00:00
Joel Sherrill
a04966e1f3
2010-06-15 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* posix/src/psignal.c: Formatting.
2010-06-15 16:25:23 +00:00
Joel Sherrill
1e2216c63d
2010-06-15 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* posix/include/rtems/posix/pthread.h: Improve comments.
2010-06-15 15:52:29 +00:00
Ralf Corsepius
dbcc8ea95f
2010-06-15 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* posix/include/rtems/posix/pthread.h: Remove stray comment.
Work-around doxygen comment bug.
2010-06-15 13:26:31 +00:00
Ralf Corsepius
b02f920f6c
2010-06-14 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* libnetworking/rtems/mkrootfs.h,
posix/include/rtems/posix/pthread.h,
score/include/rtems/score/coresem.h,
score/include/rtems/score/priority.h,
score/include/rtems/score/threadq.h,
score/include/rtems/score/timestamp.h: Move 'extern "C"'.
2010-06-14 06:08:50 +00:00
Ralf Corsepius
bbeb248511
2010-06-14 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* posix/include/rtems/posix/threadsup.h: Add extern "C".
2010-06-14 06:03:57 +00:00
Ralf Corsepius
5836747566
2010-06-12 Ralf Corsépius <ralf.corsepius@rtems.org>
...
* posix/include/devctl.h: Move mal-placed @file.
2010-06-12 05:52:39 +00:00