nap(2XNX) (XENIX System Compatibility) nap(2XNX)
NAME
nap - (XENIX) suspend execution for a short interval
SYNOPSIS
cc [flag . . . ] flag . . . -lx
long nap(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 Values
On successful completion, a long integer indicating the number
of milliseconds actually slept is returned. If the process
received a signal while napping, the return value will be -1,
and errno will be set to EINTR.
REFERENCES
sleep(3C)
NOTICES
This function is driven by the system clock, which in most
cases has a granularity of tens of milliseconds.
Copyright 1994 Novell, Inc. Page 1