]>
Commit | Line | Data |
---|---|---|
1f2f436a A |
1 | --- usleep.c.bsdnew 2009-12-08 00:38:07.000000000 -0800 |
2 | +++ usleep.c 2009-12-08 00:41:05.000000000 -0800 | |
3 | @@ -27,6 +27,11 @@ | |
224c7076 A |
4 | * SUCH DAMAGE. |
5 | */ | |
6 | ||
7 | +#ifdef VARIANT_CANCELABLE | |
8 | +#undef __DARWIN_NON_CANCELABLE | |
9 | +#define __DARWIN_NON_CANCELABLE 0 | |
10 | +#endif /* VARIANT_CANCELABLE */ | |
11 | + | |
12 | #if defined(LIBC_SCCS) && !defined(lint) | |
13 | static char sccsid[] = "@(#)usleep.c 8.1 (Berkeley) 6/4/93"; | |
14 | #endif /* LIBC_SCCS and not lint */ | |
1f2f436a A |
15 | @@ -39,7 +44,7 @@ __FBSDID("$FreeBSD: src/lib/libc/gen/usl |
16 | #include "un-namespace.h" | |
17 | ||
18 | int | |
19 | -__usleep(useconds_t useconds) | |
20 | +usleep(useconds_t useconds) | |
21 | { | |
22 | struct timespec time_to_sleep; | |
23 | ||
24 | @@ -47,6 +52,3 @@ __usleep(useconds_t useconds) | |
25 | time_to_sleep.tv_sec = useconds / 1000000; | |
26 | return (_nanosleep(&time_to_sleep, NULL)); | |
27 | } | |
28 | - | |
29 | -__weak_reference(__usleep, usleep); | |
30 | -__weak_reference(__usleep, _usleep); |