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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]