DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

nap(S)


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)

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.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003