4.4BSD/usr/share/man/cat3f/alarm.0

Compare this file to the similar file:
Show the results in this format:

F>=1  .if 3F<=8 .    if 3F>1 .if 3F<6 .ds an-extra3 "BSD Program-



ALARM(3F)              BSD Reference Manual             ALARM(3F)

mer's Manual
NNAAMMEE
       alarm - execute a subroutine after a specified time

SSYYNNOOPPSSIISS
       iinntteeggeerr ffuunnccttiioonn aallaarrmm ((ttiimmee,, pprroocc))
       iinntteeggeerr ttiimmee
       eexxtteerrnnaall pprroocc

DDEESSCCRRIIPPTTIIOONN
       This routine arranges for subroutine  _p_r_o_c  to  be  called
       after  _t_i_m_e seconds. If _t_i_m_e 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.

FFIILLEESS
       /usr/lib/libU77.a

SSEEEE AALLSSOO
       alarm(3C), sleep(3F), signal(3F)

BBUUGGSS
       _A_l_a_r_m  and _s_l_e_e_p interact. If _s_l_e_e_p is called after _a_l_a_r_m,
       the _a_l_a_r_m process will never be called. SIGALRM will occur
       at  the  lesser  of  the remaining _a_l_a_r_m time or the _s_l_e_e_p
       time.




























4.2 Berkeley Distribution  June 5, 1993                         1