History log of /src/lib/libc/gen/usleep.c |
Revision | | Date | Author | Comments |
1.21 |
| 22-Apr-2024 |
jdolecek | allow usleep(3) with useconds >= 1000000
update manpage to mention this interface is obsolete, remove EINVAL from the ERRORS and mention EINTR instead.
PR lib/58184 by Taylor R Campbell
|
1.20 |
| 25-Jun-2012 |
abs | branches: 1.20.42; Update old-style definitions to ANSI, remove a couple of register definitions along the way. Fixed gcc 4.1 build (thank you vax)
|
1.19 |
| 28-Apr-2008 |
martin | branches: 1.19.4; 1.19.8; Remove clause 3 and 4 from TNF licenses
|
1.18 |
| 08-Oct-2006 |
elad | branches: 1.18.16; PR/19444: IIMURA Takuji: usleep(0); seems to microsleep(1);
Patch applied, thanks!
|
1.17 |
| 22-Jan-2000 |
mycroft | Delint. Remove trailing ; from uses of __weak_alias(). The macro inserts this if needed.
|
1.16 |
| 24-Nov-1997 |
kleink | Per XPG4.2: * Change argument to type useconds_t, return an int. * If an interval of 1,000,000 or more microseconds was requested, fail with -1/EINVAL.
|
1.15 |
| 19-Aug-1997 |
mikel | fix overflow problem found by Rick Byers <rickb@iaw.on.ca>; fix by <entropy@tardis.bernstein.com> in PR lib/4005.
|
1.14 |
| 21-Jul-1997 |
jtc | If port provides __weak_alias(), provide an Standard C and POSIX pure identifier namespace by renaming non standard functions and variables such that they have a leading underscore. The library will use those names internally. Weak aliases are used to provide the original names to the API.
This is only the first part of this change. It is most of the functions which are implemented in C for all NetBSD ports. Subsequent changes are to add the same support to the remaining C files, to assembly files, and to the automagically generated assembly source used for system calls. When all of the above is done, ports with weak alias support should add a definition for __weak_alias to <sys/cdefs.h>.
|
1.13 |
| 19-Jul-1997 |
kleink | __RCSID() police; from jbernard@tater.mines.edu in PR lib/3890.
|
1.12 |
| 19-Jul-1997 |
jtc | Implement sleep() and usleep() in terms of nanosleep(). Uses only one syscall instead of eight, and doesn't have any interactions with alarm or interval timers.
|
1.11 |
| 13-Jul-1997 |
christos | Add prototype for sleephandler Fix RCSID's
|
1.10 |
| 26-Oct-1995 |
pk | branches: 1.10.2; Eliminate race by stopping timer before restarting it with remaining time (one more system call).
|
1.9 |
| 20-Oct-1995 |
pk | Eliminate race in the "normal" case of not being interrupted by another signal.
|
1.8 |
| 16-Oct-1995 |
pk | 1) Turn off timer before resetting signal disposition. 2) Set signal mask before signal action, to avoid held SIGALRMs bursting in after unsetting the handler.
|
1.7 |
| 03-May-1995 |
mycroft | branches: 1.7.2; Explicitly unblock SIGALRM while waiting.
|
1.6 |
| 21-Mar-1995 |
mycroft | Clone from sleep(), with the logic for returning a value removed.
|
1.5 |
| 28-Feb-1995 |
jtc | Changed <sys/signal.h> to <signal.h>
|
1.4 |
| 25-Feb-1995 |
cgd | merge with Lite, keep local changes. clean up id usage
|
1.3 |
| 26-Aug-1993 |
jtc | branches: 1.3.4; Declare rcsid strings so they are stored in text segment.
|
1.2 |
| 30-Jul-1993 |
mycroft | Add even more RCS frobs.
|
1.1 |
| 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.2 |
| 25-Feb-1995 |
cgd | from lite, with minor name rearrangement to fit.
|
1.1.1.1 |
| 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
1.3.4.1 |
| 26-Apr-1995 |
jtc | #include "namespace.h" where appropriate.
|
1.7.2.2 |
| 26-Oct-1995 |
pk | Eliminate race by stopping timer before restarting it with remaining time (one more system call).
|
1.7.2.1 |
| 20-Oct-1995 |
pk | Update from trunk: race conditions.
|
1.10.2.1 |
| 19-Sep-1996 |
jtc | snapshot namespace cleanup: gen
|
1.18.16.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.19.8.2 |
| 28-Apr-2008 |
martin | Remove clause 3 and 4 from TNF licenses
|
1.19.8.1 |
| 28-Apr-2008 |
martin | file usleep.c was added on branch christos-time_t on 2008-04-28 20:23:00 +0000
|
1.19.4.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.20.42.1 |
| 28-Apr-2024 |
martin | Pull up following revision(s) (requested by jdolecek in ticket #678):
lib/libc/gen/usleep.c: revision 1.21 lib/libc/gen/usleep.3: revision 1.20 lib/libc/gen/usleep.3: revision 1.21
allow usleep(3) with useconds >= 1000000
update manpage to mention this interface is obsolete, remove EINVAL from the ERRORS and mention EINTR instead.
PR lib/58184 by Taylor R Campbell
it's nanosleep(2), not nanosleep(3)
|