summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/clocknanosleep.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* posix: Avoid dead code in clock_nanosleep()Sebastian Huber2022-08-051-5/+2
| | | | | | | | This issue was reported by Coverity Scan for RTEMS: CID 1507760: Control flow issues (DEADCODE) Closes #4690.
* posix: Fix relative CLOCK_REALTIME sleepSebastian Huber2022-08-041-0/+9
| | | | | | | | | A relative CLOCK_REALTIME time out shall not be affected by CLOCK_REALTIME changes through clock_settime(). Since our CLOCK_REALTIME is basically just CLOCK_MONOTONIC plus an offset, we can simply use the CLOCK_MONOTONIC watchdog for relative CLOCK_REALTIME time outs. Update #4690.
* cpukit/posix/src/[a-o]*.c: Change license to BSD-2Joel Sherrill2022-02-281-3/+22
| | | | Updates #3053.
* score: Simplify thread queue timeout handlingSebastian Huber2021-05-181-18/+20
| | | | | | | Add Thread_queue_Context::timeout_absolute to specify an absolute or relative timeout. This avoid having to get the current time twice for timeouts relative to the current time. It moves also functionality to common code.
* posix: Fix use of clock for relative timesSebastian Huber2021-05-181-13/+18
| | | | Close #4426.
* posix: Use RTEMS_POSIX_API in clock_nanosleep()Sebastian Huber2021-05-171-0/+5
| | | | | It is only possible to get interrupted by a POSIX signal if RTEMS_POSIX_API is defined.
* posix: Move clock_nanosleep()Sebastian Huber2021-05-171-0/+116
Move clock_nanosleep() to a separate file to avoid a dependency on errno which pulls in the Newlib reentrancy support. This is an issue since most parts which are pulled in cannot be garbage collected by the linker due to the system initialization linker set.