Imported tab->space correction by redhat
[infodrom/manpages-de] / man3 / sleep.3
1 .\" (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one
11 .\" 
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\" 
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\" License.
23 .\" Modified Sat Jul 24 18:16:02 1993 by Rik Faith (faith@cs.unc.edu)
24 .\" Translated to German Mon Jul 01 15:00:00 1996 by Patrick Rother <krd@gulu.net>
25 .\"
26 .TH SLEEP 3  "1. Juli 1996" "GNU" "Bibliotheksfunktionen"
27 .SH BEZEICHNUNG
28 sleep \- schlafe für eine angegebene Anzahl von Sekunden
29 .SH ÜBERSICHT
30 .nf
31 .B #include <unistd.h>
32 .sp
33 .BI "unsigned int sleep(unsigned int " "seconds" ");"
34 .fi
35 .SH BESCHREIBUNG
36 .B sleep()
37 lässt den aktuellen Prozess schlafen bis
38 .I seconds
39 Sekunden abgelaufen sind oder ein Signal eintrifft welches nicht ignoriert
40 wird.
41 .SH "RÜCKGABEWERT"
42 Null, wenn die geforderte Zeit abgelaufen ist, oder die Anzahl der Sekunden,
43 die noch geschlafen werden sollte.
44 .SH "KONFORM ZU"
45 POSIX.1
46 .SH "BUGS"
47 .B sleep()
48 kann implementiert sein durch die Verwendung von
49 .BR SIGALRM .
50 Daher ist es keine gute Idee, Aufrufen von
51 .B alarm()
52 und
53 .B sleep() 
54 zu mischen.
55 .PP
56 Die Benutzung von
57 .B longjmp()
58 von einem Signalbehandler oder das Ändern der Behandlung von
59 .B SIGALRM
60 während des Schlafens erzeugt undefinierte Ergebnisse.
61 .SH "SIEHE AUCH"
62 .BR signal (2),
63 .BR alarm (2).