home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
gnu
/
ixemul-39.47-env-bin.lha
/
man
/
cat3
/
sleep.0
< prev
next >
Wrap
Text File
|
1993-12-07
|
2KB
|
67 lines
SLEEP(3) UNIX Programmer's Manual SLEEP(3)
NNAAMMEE
sslleeeepp - suspend process execution for interval of seconds
SSYYNNOOPPSSIISS
##iinncclluuddee <<uunniissttdd..hh>>
_i_n_t
sslleeeepp(_u___i_n_t _s_e_c_o_n_d_s)
DDEESSCCRRIIPPTTIIOONN
The sslleeeepp() function suspends execution of the calling process for
_s_e_c_o_n_d_s of time. System activity or time spent in processing the call
may lengthen the sleep by a second.
If a timer is already running on the process its state is saved. If the
value _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 _s_e_c_o_n_d_s has passed.
This function is implemented using setitimer(2); it requires eight sys
tem calls each time it is invoked. A similar but less compatible func
tion 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.
RREETTUURRNN VVAALLUUEESS
SSEEEE AALLSSOO
setitimer(2), sigpause(2), usleep(3)
HHIISSTTOORRYY
A sslleeeepp() function appeared in Version 7 AT&T UNIX.
BSD Experimental April 19, 1991 1