Section: Linux Programmer's Manual (2)
alarm - set an alarm clock for delivery of a signal
unsigned int alarm(unsigned int seconds);
arranges for a
signal to be delivered to the calling process in
is zero, any pending alarm is canceled.
In any event any previously set
returns the number of seconds remaining until any previously scheduled
alarm was due to be delivered, or zero if there was no previously
POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
share the same timer; calls to one will interfere with use of the
Alarms created by
are preserved across
and are not inherited by children created via
may be implemented using
mixing calls to
is a bad idea.
Scheduling delays can, as ever, cause the execution of the process to
be delayed by an arbitrary amount of time.
This page is part of release 5.02 of the Linux
A description of the project,
information about reporting bugs,
and the latest version of this page,
can be found at