Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ alarm(3) — BSD/386 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sigaction(2)

setitimer(2)

sigpause(2)

sigvec(2)

signal(3)

sleep(3)

ualarm(3)

usleep(3)

ALARM(3)                    BSD Programmer's Manual                   ALARM(3)

NAME
     alarm - set signal timer alarm

SYNOPSIS
     #include <unistd.h>

     uint
     alarm(uint seconds)

DESCRIPTION
     This interface is made obsolete by setitimer(2).

     The alarm() function waits a count of seconds before asserting the termi-
     nating signal SIGALRM. When the signal has successfully been caught,
     alarm() returns the amount of time left on the clock.  The maximum mumber
     of seconds allowed is 2147483647.

     If an alarm has been set with alarm(), another call to alarm() will su-
     perceed the prior call.  The request alarm(0) voids the current alarm.

SEE ALSO
     sigaction(2),  setitimer(2),  sigpause(2),  sigvec(2),  signal(3),
     sleep(3),  ualarm(3),  usleep(3)

HISTORY
     An alarm() function appeared in Version 7 AT&T UNIX.

4th Berkeley Distribution       March 26, 1993                               1




































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