Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ alarm(3f) — OSF/1 SILVER Baselevel 4 rev36

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

alarm(3)

sleep(3f)

signal(3)

alarm(3f)  —  Subroutines

Digital

NAME

alarm − execute a subroutine after a specified time

SYNOPSIS

integer function alarm (time, proc)
integer time
external proc

DESCRIPTION

This routine arranges for subroutine proc to be called after time seconds. If time is “0”, the alarm is turned off and no routine will be called.  The returned value will be the time remaining on the last alarm. 

FILES

/usr/lib/libU77.a

RELATED INFORMATION

alarm(3), sleep(3f), signal(3). 

RESTRICTIONS

alarm and sleep interact. If sleep is called after alarm, the alarm process will never be called. SIGALRM will occur at the lesser of the remaining alarm time or the sleep time. 

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