git: clock_settime(2): Return EINVAL if tv_sec < 0

Aaron LI aly at crater.dragonflybsd.org
Wed Jan 20 06:06:03 PST 2021


commit 9e053b1ca9de520b3a0fb3a081fa683fcb05bfb3
Author: Aaron LI <aly at aaronly.me>
Date:   Wed Jan 20 22:01:39 2021 +0800

    clock_settime(2): Return EINVAL if tv_sec < 0
    
    The same argument check is also done in nanosleep(2)/clock_nanosleep(2),
    and FreeBSD also does this check.

Summary of changes:
 sys/kern/kern_time.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9e053b1ca9de520b3a0fb3a081fa683fcb05bfb3


-- 
DragonFly BSD source repository


More information about the Commits mailing list