Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ nap(S) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sleep(S)


 nap(S)                         6 January 1993                         nap(S)


 Name

    nap - suspends execution for a short interval

 Syntax


    cc  . . .  -lx


    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 mil-
    liseconds actually slept is returned. If the process received a signal
    while napping, -1 is returned, and errno is set to EINTR.

 Notes

    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.


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026