1 .\" This manpage is Copyright (C) 1992 Drew Eckhardt;
2 .\" and Copyright (C) 1993 Michael Haardt, Ian Jackson.
4 .\" %%%LICENSE_START(VERBATIM)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date. The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein. The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
26 .\" Modified Wed Jul 21 19:42:57 1993 by Rik Faith <faith@cs.unc.edu>
27 .\" Modified Sun Jul 21 21:25:26 1996 by Andries Brouwer <aeb@cwi.nl>
28 .\" Modified Wed Nov 6 03:46:05 1996 by Eric S. Raymond <esr@thyrsus.com>
30 .TH ALARM 2 2017-05-03 "Linux" "Linux Programmer's Manual"
32 alarm \- set an alarm clock for delivery of a signal
35 .B #include <unistd.h>
37 .BI "unsigned int alarm(unsigned int " seconds );
43 signal to be delivered to the calling process in
49 is zero, any pending alarm is canceled.
51 In any event any previously set
56 returns the number of seconds remaining until any previously scheduled
57 alarm was due to be delivered, or zero if there was no previously
60 POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
65 share the same timer; calls to one will interfere with use of the
72 and are not inherited by children created via
76 may be implemented using
84 Scheduling delays can, as ever, cause the execution of the process to
85 be delayed by an arbitrary amount of time.
94 .BR timerfd_create (2),