Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ nap(S) — OpenDesktop Software Development System 1.0.0d

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     NAP(S)                    UNIX System V                    NAP(S)



     Name
          nap - suspends execution for a short interval

     Syntax
          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, the return value
          will be -1, and errno will be set to EINTR.

     See Also
          sleep(S)

     Notes
          This function is driven by the system clock, which in most
          cases has a granularity of tens of milliseconds.  This
          function must be linked with the linker option -lx.

                                             (printed 6/20/89)



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