Penguin
Annotated edit history of usleep(3) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 USLEEP
2 !!!USLEEP
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 ERRORS
8 CONFORMING TO
9 NOTES
10 SEE ALSO
11 ----
12 !!NAME
13
14
15 usleep - suspend execution for microsecond intervals
16 !!SYNOPSIS
17
18
19 __#include
20 __ ''usec''__);
21 int usleep(unsigned long__ ''usec''__); /* SUSv2 */
22 __
23 !!DESCRIPTION
24
25
26 The __usleep()__ function suspends execution of the
27 calling process for ''usec'' microseconds. The sleep may
28 be lengthened slightly by any system activity or by the time
29 spent processing the call.
30 !!RETURN VALUE
31
32
33 None (BSD). Or: 0 on success, -1 on error
34 (SUSv2).
35 !!ERRORS
36
37
38 EINTR
39
40
41 Interrupted by a signal.
42
43
44 EINVAL
45
46
47 ''usec'' is not smaller than 1000000. (On systems where
48 that is considered an error.)
49 !!CONFORMING TO
50
51
52 BSD 4.3. The SUSv2 version returns int, and this is also the
53 prototype used by glibc 2.2.2. Only the EINVAL error return
54 is documented by SUSv2.
55 !!NOTES
56
57
58 The interaction of this function with SIGALRM and other
59 timer functions such as ''sleep''(), ''alarm''(),
60 ''setitimer''(), ''nanosleep''() is unspecified. This
61 function is obsolete. Use nanosleep(2) or
62 setitimer(2) instead.
63 !!SEE ALSO
64
65
66 alarm(2), getitimer(2), nanosleep(2),
67 select(2), setitimer(2),
68 sleep(3)
69 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.