suspends execution for a short interval
cc . . . -lc
long nap (period)
The current process is suspended from execution for at least
the number of milliseconds specified by
or until a signal is received.
On successful completion,
a long integer indicating the number of milliseconds
actually slept is returned.
If the process received a signal while napping,
-1 is returned, and
is set to
Differences between versions
For operating system releases prior to SCO OpenServer Release 5.0.6,
which implements the high-performance system clock
described on the
this function is driven by the system clock, which in most cases
has a granularity of 10 millisecond (1/100 second) units.
nap is not part of any currently supported standard;
it is an extension of AT&T System V provided by the Santa Cruz Operation.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003