|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 1291/cpukit
* itron/inline/rtems/itron/semaphore.inl, itron/src/twai_sem.c,
posix/include/mqueue.h, posix/include/rtems/posix/mqueue.h,
posix/include/rtems/posix/semaphore.h,
posix/include/rtems/posix/time.h, posix/src/condtimedwait.c,
posix/src/mqueuereceive.c, posix/src/mqueuerecvsupp.c,
posix/src/mqueuesend.c, posix/src/mqueuesendsupp.c,
posix/src/mqueuetimedreceive.c, posix/src/mqueuetimedsend.c,
posix/src/mutextimedlock.c, posix/src/mutextranslatereturncode.c,
posix/src/posixtimespecabsolutetimeout.c,
posix/src/prwlocktimedrdlock.c, posix/src/prwlocktimedwrlock.c,
posix/src/semaphoretranslatereturncode.c,
posix/src/semaphorewaitsupp.c, posix/src/semtimedwait.c,
posix/src/semtrywait.c, posix/src/semwait.c,
posix/src/sigtimedwait.c, posix/src/timersettime.c,
posix/src/ualarm.c, rtems/src/semobtain.c,
rtems/src/semtranslatereturncode.c,
score/include/rtems/score/coremutex.h,
score/include/rtems/score/coresem.h, score/src/coresemseize.c: This
patch addresses issues on implementation of the timeout on the
following POSIX services. Some of these services incorrectly took a
timeout as a relative time. Others would compute a 0 delta to timeout
if the absolute time and the current time were equal and thus
incorrectly block the caller forever. The root of the confusion is
that POSIX specifies that if the timeout is incorrect (e.g. in the
past, is now, or is numerically invalid), that it does not matter if
the call would succeed without blocking. This is in contrast to RTEMS
programming style where all errors are checked before any critical
sections are entered. This fix implemented a more uniform way of
handling POSIX absolute time timeouts.
+ pthread_cond_timedwait - could block forever
+ mq_timedreceive - used relative not absolute time
+ mq_timedsend - used relative not absolute time
+ pthread_mutex_timedlock - used relative not absolute time
+ pthread_rwlock_timedrdlock- used relative not absolute time
+ pthread_rwlock_timedwrlock- used relative not absolute time
+ sem_timedwait - could block forever
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* itron/include/itronsys/mbox.h, itron/include/itronsys/types.h,
itron/include/rtems/itron/eventflags.h,
itron/include/rtems/itron/fmempool.h,
itron/include/rtems/itron/mbox.h,
itron/include/rtems/itron/msgbuffer.h,
itron/include/rtems/itron/port.h,
itron/include/rtems/itron/semaphore.h,
itron/include/rtems/itron/task.h,
itron/include/rtems/itron/vmempool.h,
itron/inline/rtems/itron/semaphore.inl,
itron/macros/rtems/itron/semaphore.inl, itron/src/eventflags.c,
itron/src/fmempool.c, itron/src/itronsem.c, itron/src/mbox.c,
itron/src/msgbuffer.c, itron/src/port.c, itron/src/snd_mbx.c,
itron/src/task.c, itron/src/trcv_mbx.c, itron/src/vmempool.c:
Convert to using c99 fixed size types.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* include/itron.h, include/itronsys/eventflags.h,
include/itronsys/fmempool.h, include/itronsys/intr.h,
include/itronsys/mbox.h, include/itronsys/msgbuffer.h,
include/itronsys/network.h, include/itronsys/port.h,
include/itronsys/semaphore.h, include/itronsys/status.h,
include/itronsys/sysmgmt.h, include/itronsys/task.h,
include/itronsys/time.h, include/itronsys/types.h,
include/itronsys/vmempool.h, include/rtems/itron/config.h,
include/rtems/itron/eventflags.h, include/rtems/itron/fmempool.h,
include/rtems/itron/intr.h, include/rtems/itron/itronapi.h,
include/rtems/itron/mbox.h, include/rtems/itron/msgbuffer.h,
include/rtems/itron/network.h, include/rtems/itron/object.h,
include/rtems/itron/port.h, include/rtems/itron/semaphore.h,
include/rtems/itron/sysmgmt.h, include/rtems/itron/task.h,
include/rtems/itron/time.h, include/rtems/itron/vmempool.h,
inline/rtems/itron/eventflags.inl, inline/rtems/itron/fmempool.inl,
inline/rtems/itron/intr.inl, inline/rtems/itron/mbox.inl,
inline/rtems/itron/msgbuffer.inl, inline/rtems/itron/network.inl,
inline/rtems/itron/port.inl, inline/rtems/itron/semaphore.inl,
inline/rtems/itron/sysmgmt.inl, inline/rtems/itron/task.inl,
inline/rtems/itron/time.inl, inline/rtems/itron/vmempool.inl,
macros/rtems/itron/eventflags.inl, macros/rtems/itron/fmempool.inl,
macros/rtems/itron/intr.inl, macros/rtems/itron/mbox.inl,
macros/rtems/itron/msgbuffer.inl, macros/rtems/itron/network.inl,
macros/rtems/itron/port.inl, macros/rtems/itron/semaphore.inl,
macros/rtems/itron/sysmgmt.inl, macros/rtems/itron/task.inl,
macros/rtems/itron/time.inl, macros/rtems/itron/vmempool.inl,
src/can_wup.c, src/chg_pri.c, src/cre_mbf.c, src/cre_mbx.c,
src/cre_sem.c, src/cre_tsk.c, src/del_mbf.c, src/del_mbx.c,
src/del_sem.c, src/del_tsk.c, src/dis_dsp.c, src/ena_dsp.c,
src/eventflags.c, src/exd_tsk.c, src/ext_tsk.c, src/fmempool.c,
src/frsm_tsk.c, src/get_tid.c, src/itronintr.c, src/itronsem.c,
src/itrontime.c, src/mbox.c, src/mboxtranslatereturncode.c,
src/msgbuffer.c, src/msgbuffertranslatereturncode.c, src/network.c,
src/port.c, src/prcv_mbf.c, src/prcv_mbx.c, src/preq_sem.c,
src/psnd_mbf.c, src/rcv_mbf.c, src/rcv_mbx.c, src/ref_mbf.c,
src/ref_mbx.c, src/ref_sem.c, src/ref_tsk.c, src/rel_wai.c,
src/rot_rdq.c, src/rsm_tsk.c, src/sig_sem.c, src/slp_tsk.c,
src/snd_mbf.c, src/snd_mbx.c, src/sta_tsk.c, src/sus_tsk.c,
src/sysmgmt.c, src/task.c, src/ter_tsk.c, src/trcv_mbf.c,
src/trcv_mbx.c, src/tslp_tsk.c, src/tsnd_mbf.c, src/twai_sem.c,
src/vmempool.c, src/wai_sem.c, src/wup_tsk.c: URL for license
changed.
|