Files
oldlinux-files/Minix/2.0.0/wwwman/man2/alarm.2.html
2024-02-19 00:21:39 -05:00

70 lines
1.4 KiB
HTML

<HTML>
<HEAD>
<TITLE>alarm(2)</TITLE>
</HEAD>
<BODY>
<H1>alarm(2)</H1>
<HR>
<PRE>
</PRE>
<H2>NAME</H2><PRE>
alarm - schedule signal after specified time
</PRE>
<H2>SYNOPSIS</H2><PRE>
<STRONG>#include</STRONG> <STRONG>&lt;unistd.h&gt;</STRONG>
<STRONG>unsigned</STRONG> <STRONG>int</STRONG> <STRONG>alarm(unsigned</STRONG> <STRONG>int</STRONG> <EM>seconds</EM><STRONG>)</STRONG>
</PRE>
<H2>DESCRIPTION</H2><PRE>
<STRONG>Alarm</STRONG> causes signal SIGALRM, see <STRONG><A HREF="../man2/sigaction.2.html">sigaction(2)</A></STRONG>, to be sent to the invoking
process in a number of seconds given by the argument. Unless caught or
ignored, the signal terminates the process.
Alarm requests are not stacked; successive calls reset the alarm clock.
If the argument is 0, any alarm request is canceled. Because of
scheduling delays, resumption of execution of when the signal is caught
may be delayed an arbitrary amount.
The return value is the amount of time previously remaining in the alarm
clock.
</PRE>
<H2>SEE ALSO</H2><PRE>
<STRONG><A HREF="../man2/pause.2.html">pause(2)</A></STRONG>, <STRONG><A HREF="../man2/sigsuspend.2.html">sigsuspend(2)</A></STRONG>, <STRONG><A HREF="../man2/sigaction.2.html">sigaction(2)</A></STRONG>, <STRONG><A HREF="../man3/sleep.3.html">sleep(3)</A></STRONG>.
</PRE>
</BODY>
</HTML>