You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/09/19 01:35:34 UTC
[nuttx] branch master updated: timer/timer_getoverrun: adjust the default errno from ENOSYS to EINVAL
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new e0ec88e738 timer/timer_getoverrun: adjust the default errno from ENOSYS to EINVAL
e0ec88e738 is described below
commit e0ec88e73881cfc8f27bcf5b29a72df0f502505a
Author: guoshichao <gu...@xiaomi.com>
AuthorDate: Wed Sep 13 19:42:05 2023 +0800
timer/timer_getoverrun: adjust the default errno from ENOSYS to EINVAL
modify the default errno from ENOSYS to EINVAL can pass the ltp
case: ltp_timer_getoverrun_speculative_6_1,
ltp_timer_getoverrun_speculative_6_2, ltp_timer_getoverrun_speculative_6_3
Signed-off-by: guoshichao <gu...@xiaomi.com>
---
sched/timer/timer_getoverrun.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sched/timer/timer_getoverrun.c b/sched/timer/timer_getoverrun.c
index 90dae4ae8f..41c5eab55c 100644
--- a/sched/timer/timer_getoverrun.c
+++ b/sched/timer/timer_getoverrun.c
@@ -76,7 +76,7 @@
int timer_getoverrun(timer_t timerid)
{
UNUSED(timerid);
- set_errno(ENOSYS);
+ set_errno(EINVAL);
return ERROR;
}