nap(S-osr5)
nap --
suspends execution for a short interval
Syntax
cc . . . -lc
long nap (period)
long period;
Description
The current process is suspended from execution for at least
the number of milliseconds specified by
period,
or until a signal is received.
Return value
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
errno
is set to
EINTR.
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
clock(HW)
manual page,
this function is driven by the system clock, which in most cases
has a granularity of 10 millisecond (1/100 second) units.
See also
sleep(S-osr5)
Standards conformance
nap is not part of any currently supported standard;
it is an extension of AT&T System V provided by the Santa Cruz Operation.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005