1 .\" Copyright (c) 1980 Regents of the University of California.
2 .\" All rights reserved. The Berkeley software License Agreement
3 .\" specifies the terms and conditions for redistribution.
5 .\" @(#)alarm.3c 6.3 (Berkeley) 5/27/86
7 .TH ALARM 2 "May 27, 1986"
10 alarm \- schedule signal after specified time
16 unsigned int alarm(unsigned int \fIseconds\fP)
21 causes signal SIGALRM, see
23 to be sent to the invoking process
24 in a number of seconds given by the argument.
25 Unless caught or ignored, the signal terminates the process.
27 Alarm requests are not stacked; successive calls reset the alarm clock.
28 If the argument is 0, any alarm request is canceled.
29 Because of scheduling delays,
30 resumption of execution of when the signal is
31 caught may be delayed an arbitrary amount.
33 The return value is the amount of time previously remaining in the alarm clock.