summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/timersettime.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-04-28doxygen: Switch @brief and @ingroupSebastian Huber1-1/+2
This order change fixes the Latex documentation build via Doxygen.
2020-04-16Canonicalize config.h includeSebastian Huber1-1/+1
Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
2020-02-17posix: Remove <rtems/posix/ptimer.h>Sebastian Huber1-1/+0
This file contained duplicate prototypes for standard POSIX functions declared in <time.h>.
2018-02-02score: Introduce new monotonic clockSebastian Huber1-2/+2
Rename PER_CPU_WATCHDOG_MONOTONIC to PER_CPU_WATCHDOG_TICKS. Add new PER_CPU_WATCHDOG_MONOTONIC which is based on the system uptime (measured by timecounter). Close #3264.
2017-10-17score: Rename watchdog variantsSebastian Huber1-2/+2
Rename PER_CPU_WATCHDOG_RELATIVE in PER_CPU_WATCHDOG_MONOTONIC to highlight the corresponding POSIX CLOCK_MONOTONIC. Rename PER_CPU_WATCHDOG_ABSOLUTE in PER_CPU_WATCHDOG_REALTIME to highlight the corresponding POSIX CLOCK_REALTIME. Update #3117. Update #3182.
2017-10-09score: Use struct timespec for TODSebastian Huber1-2/+2
Use the timestamps only for uptime based values. Use struct timespec for the absolute time values (TOD). Update #2740.
2016-10-31posix: Fix timer intervalSebastian Huber1-2/+0
Do not overwrite timer interval with initial interval in _POSIX_Timer_Insert(). Close #2798.
2016-03-14score: Add and use _Objects_Get_local()Sebastian Huber1-43/+35
This simplifies the handling with local-only objects. Update #2555.
2016-03-04score: Replace watchdog handler implementationSebastian Huber1-45/+107
Use a red-black tree instead of delta chains. Close #2344. Update #2554. Update #2555. Close #2606.
2015-07-28score: Rename _POSIX_Absolute_timeout_to_ticks()Sebastian Huber1-1/+0
Rename _POSIX_Absolute_timeout_to_ticks() to _TOD_Absolute_timeout_to_ticks() and move it to the score directory. Delete empty <rtems/posix/time.h>.
2015-05-20timecounter: Use in RTEMSAlexander Krutwig1-2/+2
Replace timestamp implementation with FreeBSD bintime and timecounters. New test sptests/sptimecounter02. Update #2271.
2015-05-19score: Add header to _Watchdog_Remove()Sebastian Huber1-1/+1
Add watchdog header parameter to _Watchdog_Remove() to be in line with the other operations. Add _Watchdog_Remove_ticks() and _Watchdog_Remove_seconds() for convenience. Update #2307.
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns1-1/+1
2013-11-29POSIX timers: Add restrict keywordSahil Patnayakuni1-2/+2
+ timer_create() + timer_settime()
2013-08-01score: Rename tod.h to todimpl.hSebastian Huber1-1/+1
2013-07-26score: Merge tod implementation into one fileSebastian Huber1-5/+3
Delete TOD_MICROSECONDS_PER_SECOND, TOD_MICROSECONDS_TO_TICKS() and TOD_MILLISECONDS_TO_TICKS().
2013-07-22score: Create watchdog implementation headerSebastian Huber1-0/+1
Move implementation specific parts of watchdog.h and watchdog.inl into new header file watchdogimpl.h. The watchdog.h contains now only the application visible API.
2013-07-22posix: Create timer implementation headerSebastian Huber1-1/+1
Move implementation specific parts of timer.h and timer.inl into new header file timerimpl.h. The timer.h contains now only the application visible API.
2013-06-07score: Add and use _Objects_Put()Sebastian Huber1-3/+3
Add and use _Objects_Put_without_thread_dispatch(). These two functions pair with the _Objects_Get() function. This helps to introduce object specific SMP locks to avoid lock contention.
2013-01-10cpukit/posix: Doxygen group is POSIXAPIJoel Sherrill1-1/+1
2012-12-19posix: Doxygen Enhancement Task #6Ayush Awasthi1-0/+7
http://www.google-melange.com/gci/task/view/google/gci2012/7945218
2012-05-11Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill1-2/+0
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
2010-06-222010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>Jennifer Averett1-6/+8
* posix/src/nanosleep.c, posix/src/timersettime.c: Removed redundent code and cleaned up error checking code.
2009-12-102009-12-10 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-4/+8
PR 1482 * posix/src/timersettime.c: Exit dispatching critical section.
2009-11-30Whitespace removal.Ralf Corsepius1-5/+5
2008-12-082008-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-2/+4
* libcsupport/src/__times.c, libmisc/cpuuse/cpuusagereport.c, libmisc/cpuuse/cpuusagereset.c, posix/src/clockgettime.c, posix/src/pthread.c, posix/src/timersettime.c, rtems/include/rtems/rtems/ratemon.h, rtems/src/clockgetsecondssinceepoch.c, rtems/src/clockgetuptime.c, rtems/src/ratemongetstatus.c, rtems/src/ratemonperiod.c, rtems/src/ratemonreportstatistics.c, rtems/src/taskwakewhen.c, rtems/src/timerfirewhen.c, rtems/src/timerserver.c, rtems/src/timerserverfirewhen.c, score/Makefile.am, score/preinstall.am, score/include/rtems/score/thread.h, score/include/rtems/score/tod.h, score/src/coretod.c, score/src/coretodget.c, score/src/coretodgetuptime.c, score/src/coretodset.c, score/src/coretodtickle.c, score/src/threaddispatch.c, score/src/threadinitialize.c: Add SuperCore handler Timestamp to provide an opaque class for the representation and manipulation of uptime, time of day, and the difference between two timestamps. By using SuperCore Timestamp, it is clear which methods and APIs really have to be struct timespec and which can be in an optimized native format. * score/include/rtems/score/timestamp.h, score/src/coretodgetuptimetimespec.c: New files.
2008-09-04Convert to "bool".Ralf Corsepius1-1/+1
2008-08-192008-08-19 Tim FitzGeorge <tim.fitzgeorge@astrium.eads.net>Joel Sherrill1-5/+10
PR 1296/cpukit. * posix/src/timersettime.c: POSIX timers use incorrect repeat interval. This patch fixes the following problems in timer_settime: 1) Uses value.it_interval for repeat period. 2) Corrects test for incorrect value of it_value.tv_nsec (should reject 1000000000).
2008-07-182008-07-18 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-1/+2
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
2008-01-312008-01-31 Jennifer Averett <jennifer.averett@OARcorp.com>Jennifer Averett1-1/+1
* posix/src/timersettime.c: Fix to remove warning.
2008-01-182008-01-18 Jennifer Averett <jennifer.averett@OARcorp.com>Jennifer Averett1-63/+37
* posix/include/rtems/posix/timer.h, posix/src/cleanuppop.c, posix/src/cleanuppush.c, posix/src/mqueueclose.c, posix/src/timergettime.c, posix/src/timersettime.c, score/include/rtems/score/timespec.h:
2007-12-172007-12-17 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill1-0/+148
* posix/Makefile.am, posix/preinstall.am, posix/include/rtems/posix/timer.h, score/src/objectget.c: Split POSIX Timer implementation into multiple files. Add obvious error checks for NULL parameters. Attempt to reduce include files. * posix/src/timercreate.c, posix/src/timerdelete.c, posix/src/timergetoverrun.c, posix/src/timergettime.c, posix/src/timerinserthelper.c, posix/src/timersettime.c, posix/src/timertsr.c: New files. * posix/src/ptimer1.c: Removed.