diff options
author | peter <peter@FreeBSD.org> | 1997-05-10 12:00:03 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-05-10 12:00:03 +0000 |
commit | 466cea7091e7b9d457e1deb200495768bcfc1d93 (patch) | |
tree | e62521c365d209d717500ea79bf41aeb8d94539c /sys/scsi/worm.c | |
parent | bb3545a8cab7e4b6b05a9082658414f88edeaab2 (diff) | |
download | FreeBSD-src-466cea7091e7b9d457e1deb200495768bcfc1d93.zip FreeBSD-src-466cea7091e7b9d457e1deb200495768bcfc1d93.tar.gz |
Fixes from Bruce:
Serious:
- An important timevalfix() in settime[ofday]() was lost.
Not so serious:
- There was a race initializing `delta' in the check for setting the
time backwards.
- The `#ifdef notyet' check for setting the time more than a day forwards
was back to front.
[[I deleted the code, it's useless because of iteration - Peter]]
- The timespec was not checked for validity in clock_settime().
- The timespec was not fully checked for validity in nanotime(). The
check in itimerfix() is too late, since the conversion from a timespec
to a timeval may overflow.
- A garbage timeval was checked in settimeofday() for the (uap->tv == NULL
&& uap->tzp != NULL) case. I added the broken check this some time ago.
Cosmetic:
- The "inadvertantly (sic) sleeping forever" test always failed. hzto()
always returns >= 1.
- The style wasn't very KNFish. (I only changed new code.)
Submitted by: bde
Diffstat (limited to 'sys/scsi/worm.c')
0 files changed, 0 insertions, 0 deletions