home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 5
/
FreshFish_July-August1994.bin
/
bbs
/
gnu
/
ixemul-39.47-env-bin.lha
/
man
/
cat3
/
usleep.0
< prev
next >
Wrap
Text File
|
1993-12-07
|
2KB
|
67 lines
USLEEP(3) UNIX Programmer's Manual USLEEP(3)
NNAAMMEE
uusslleeeepp - suspend execution for interval of microseconds
SSYYNNOOPPSSIISS
##iinncclluuddee <<uunniissttdd..hh>>
_v_o_i_d
uusslleeeepp(_u___i_n_t _m_i_c_r_o_s_e_c_o_n_d_s)
DDEESSCCRRIIPPTTIIOONN
The sslleeeepp() function suspends execution of the calling process for
_m_i_c_r_o_s_e_c_o_n_d_s of time. System activity or time spent in processing the
call may lengthen the sleep slightly.
If a timer is already running on the process its state is saved. If the
value _m_i_c_r_o_s_e_c_o_n_d_s is more than or equal to the remaining clock time for
the saved timer, the sleep time is set to the remaining clock time. The
state of the previous timer is restored after _m_i_c_r_o_s_e_c_o_n_d_s has passed.
This routine is implemented using setitimer(2); it requires eight system
calls each time it is invoked. A similar but less compatible function
can be obtained with a single select(2); such a function would not
restart after signals, but would not interfere with other uses of
setitimer.
SSEEEE AALLSSOO
setitimer(2), getitimer(2), sigpause(2), ualarm(3), sleep(3),
alarm(3)
HHIISSTTOORRYY
The uusslleeeepp() function appeared in 4.3BSD.
4.3 Berkeley Distribution April 19, 1991 1