Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ usleep(3) — Amiga System V Release 4 Version 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sigpause(3)

sleep(3)

ualarm(3)

getitimer(3)

alarm(2)



usleep(3)              C LIBRARY FUNCTIONS              usleep(3)



NAME
     usleep - suspend execution for interval in microseconds

SYNOPSIS
     cc [ flag... ] file ...  -lucb
     usleep(useconds)
     unsigned useconds;

DESCRIPTION
     Suspend the current process for the number  of  microseconds
     specified  by  the argument.  The actual suspension time may
     be an arbitrary amount longer because of other  activity  in
     the  system,  or because of the time spent in processing the
     call.  The routine is implemented  by  setting  an  interval
     timer  and  pausing  until it occurs.  The previous state of
     this timer is saved and restored.  If the sleep time exceeds
     the  time  to the expiration of the previous timer, the pro-
     cess sleeps only until the signal would have  occurred,  and
     the  signal  is  sent  a  short time later.  This routine is
     implemented using setitimer [see getitimer(2)]; it  requires
     eight system calls each time it is invoked.

SEE ALSO
     sigpause(3), sleep(3), ualarm(3).  getitimer(3), alarm(2) in
     the Programmer's Reference Manual.






























             Last change: BSD Compatibility Package             1



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