summaryrefslogtreecommitdiffstats
path: root/nuttx/sched/timer_getoverrun.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2007-03-21 17:21:26 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2007-03-21 17:21:26 +0000
commitb3a170538fe8e74012a3bfff1804c52d792249bd (patch)
tree15bd94438dbb8fd1f655598700f34c79dd3af092 /nuttx/sched/timer_getoverrun.c
parenta9a8941d9337edb75bbce108e6ba1300e48076b1 (diff)
Added support for POSIX timers
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@111 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/sched/timer_getoverrun.c')
-rw-r--r--nuttx/sched/timer_getoverrun.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/sched/timer_getoverrun.c b/nuttx/sched/timer_getoverrun.c
index 8dbd8da628..9b23136da7 100644
--- a/nuttx/sched/timer_getoverrun.c
+++ b/nuttx/sched/timer_getoverrun.c
@@ -40,6 +40,7 @@
#include <nuttx/config.h>
#include <time.h>
#include <errno.h>
+#include "timer_internal.h"
#ifndef CONFIG_DISABLE_POSIX_TIMERS
@@ -102,7 +103,8 @@
int timer_getoverrun(timer_t timerid)
{
#warning "Not Implemented"
- return ENOTSUP;
+ *get_errno_ptr() = ENOSYS;
+ return ERROR;
}
#endif /* CONFIG_DISABLE_POSIX_TIMERS */