CVSROOT: /cvs Module name: src Changes by: chel...@cvs.openbsd.org 2018/05/22 12:33:41
Modified files: regress/sys/kern/nanosleep: Makefile nanosleep.c sys/kern : kern_time.c Log message: nanosleep: ensure tv_nsec input is on [0, 1000000000) Instead of converting timespec -> timeval and truncating the input, check with timespecfix and use tstohz(9) for the tsleep. All other contemporary systems check this correctly. Also add a regression test for this case. ok tb@