source: trunk/minix/man/man3/sleep.3@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 895 bytes
Line 
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.
4.\"
5.\" @(#)sleep.3 6.2 (Berkeley) 5/12/86
6.\"
7.TH SLEEP 3 "May 12, 1986"
8.UC 4
9.SH NAME
10sleep \- suspend execution for interval
11.SH SYNOPSIS
12.nf
13.ft B
14#include <unistd.h>
15
16unsigned int sleep(unsigned int \fIseconds\fP)
17.fi
18.SH DESCRIPTION
19The current process is suspended from execution for the number
20of seconds specified by the argument.
21.PP
22The routine is implemented by setting an alarm timer
23and pausing until it occurs.
24The previous state of this timer is saved and restored.
25If the sleep time exceeds the time to the expiration of the
26previous timer,
27the process sleeps only until the signal would have occurred, and the
28signal is sent 1 second later.
29.SH "SEE ALSO"
30.BR alarm (2),
31.BR pause (2).
Note: See TracBrowser for help on using the repository browser.