You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "pkarashchenko (via GitHub)" <gi...@apache.org> on 2023/07/18 05:20:30 UTC

[GitHub] [nuttx] pkarashchenko commented on a diff in pull request #9848: sched/signal/sig_nanosleep: fix the clock_nanosleep posix case

pkarashchenko commented on code in PR #9848:
URL: https://github.com/apache/nuttx/pull/9848#discussion_r1266235864


##########
sched/signal/sig_nanosleep.c:
##########
@@ -261,6 +262,12 @@ int clock_nanosleep(clockid_t clockid, int flags,
 {
   int ret;
 
+  if (clockid < CLOCK_REALTIME || clockid > CLOCK_BOOTTIME)
+    {
+      set_errno(EINVAL);

Review Comment:
   Please change the line 296. Also `clock_nanosleep` should not set errno according to the latest POSIX spec.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org