Files
oldlinux-files/Minix/2.0.0/wwwman/man3/sleep.3.html
2024-02-19 00:21:39 -05:00

70 lines
1.1 KiB
HTML

<HTML>
<HEAD>
<TITLE>sleep(3)</TITLE>
</HEAD>
<BODY>
<H1>sleep(3)</H1>
<HR>
<PRE>
</PRE>
<H2>NAME</H2><PRE>
sleep - suspend execution for interval
</PRE>
<H2>SYNOPSIS</H2><PRE>
<STRONG>#include</STRONG> <STRONG>&lt;unistd.h&gt;</STRONG>
<STRONG>unsigned</STRONG> <STRONG>int</STRONG> <STRONG>sleep(unsigned</STRONG> <STRONG>int</STRONG> <EM>seconds</EM><STRONG>)</STRONG>
</PRE>
<H2>DESCRIPTION</H2><PRE>
The current process is suspended from execution for the number of seconds
specified by the argument.
The routine is implemented by setting an alarm timer and pausing until it
occurs. The previous state of this timer is saved and restored. If the
sleep time exceeds the time to the expiration of the previous timer, the
process sleeps only until the signal would have occurred, and the signal
is sent 1 second later.
</PRE>
<H2>SEE ALSO</H2><PRE>
<STRONG><A HREF="../man2/alarm.2.html">alarm(2)</A></STRONG>, <STRONG><A HREF="../man2/pause.2.html">pause(2)</A></STRONG>.
</PRE>
</BODY>
</HTML>