Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | sleep(3): don't bypass nanosleep(2) if seconds is zero | 2021-01-07 | 1 | -4/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | sleep(3) does not call nanosleep(2) if seconds is zero. This is bad. As a simplified interface to nanosleep(2), sleep(3) should delegate all decisions about whether or not to yield the CPU to nanosleep(2). This patch removes the nanosleep(2) bypass from sleep(3). This means that this code: sleep(0); will block for up to 1 tick, just like the equivalent nanosleep(2) call. Neither FreeBSD nor NetBSD bypass nanosleep(2) in the zero case, so this commit brings our sleep(3) closer to theirs in behavior. As an added bonus, sleep(3) will now *always* appear in a ktrace(1) as a call to nanosleep(2). ok millert@ | ||||
* | sleep(3) is supposed to return zero when it sleeps the entire amount | 2009-12-14 | 1 | -3/+3 | |
| | | | | ok deraadt@ | ||||
* | zap remaining rcsid. | 2005-08-08 | 1 | -4/+1 | |
| | | | | | | Kill old files that are no longer compiled. okay theo | ||||
* | ansify function definitions and zap some `register' | 2004-05-18 | 1 | -3/+2 | |
| | | | | ok millert@ | ||||
* | pull in headers | 2003-06-25 | 1 | -1/+2 | |
| | |||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-02 | 1 | -6/+2 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | Use nanosleep(2) | 1997-04-25 | 1 | -82/+9 | |
| | |||||
* | if interrupted, return time unslept; from phil nelson | 1996-09-30 | 1 | -3/+4 | |
| | |||||
* | Remove dead code | 1996-09-15 | 1 | -3/+5 | |
| | | | | | | Remove unused variables Silence some warnings lint(1) is your friend | ||||
* | Fix RCS ids | 1996-08-19 | 1 | -7/+1 | |
| | | | | Make sure everything uses {SYS,}LIBC_SCCS properly | ||||
* | signal mask repair, netbsd pr#2442 | 1996-05-26 | 1 | -9/+4 | |
| | |||||
* | Eliminate race by stopping timer before restarting it with remaining time | 1995-10-28 | 1 | -7/+25 | |
| | | | | (one more system call). | ||||
* | initial import of NetBSD tree | 1995-10-18 | 1 | -0/+119 | |