.\" -*- coding: UTF-8 -*- .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de) .\" .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" License. .\" Modified Sat Jul 24 18:16:02 1993 by Rik Faith (faith@cs.unc.edu) .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH SLEEP 3 "3. Februar 2010" GNU Linux\-Programmierhandbuch .SH BEZEICHNUNG sleep \- schläft für eine angegebene Anzahl von Sekunden .SH ÜBERSICHT .nf \fB#include \fP .sp \fBunsigned int sleep(unsigned int \fP\fIseconds\fP\fB);\fP .fi .SH BESCHREIBUNG \fBsleep\fP() lässt den aktuellen Prozess schlafen, bis \fIseconds\fP Sekunden abgelaufen sind oder ein Signal eintrifft, welches nicht ignoriert wird. .SH RÜCKGABEWERT Null, wenn die geforderte Zeit abgelaufen ist, oder die Restschlafzeit in Sekunden, wenn der Aufruf durch einen Signal\-Handler unterbrochen wurde. .SH "KONFORM ZU" POSIX.1\-2001. .SH FEHLER \fBsleep\fP() kann unter Verwendung von \fBSIGALRM\fP implementiert sein. Daher ist es eine schlechte Idee, Aufrufe von \fBalarm\fP() und \fBsleep\fP() zu mischen. .PP Die Benutzung von \fBlongjmp\fP(3) aus einem Signal\-Handler oder das Ändern der Reaktion auf \fBSIGALRM\fP während des Schlafens bewirkt undefinierte Ergebnisse. .SH "SIEHE AUCH" \fBalarm\fP(2), \fBnanosleep\fP(2), \fBsignal\fP(2), \fBsignal\fP(7) .SH KOLOPHON Diese Seite ist Teil der Veröffentlichung 3.42 des Projekts Linux\-\fIman\-pages\fP. Eine Beschreibung des Projekts und Informationen, wie Fehler gemeldet werden können, finden sich unter http://www.kernel.org/doc/man\-pages/. .SH ÜBERSETZUNG Die deutsche Übersetzung dieser Handbuchseite wurde von Patrick Rother und Martin Eberhard Schauer erstellt. Diese Übersetzung ist Freie Dokumentation; lesen Sie die GNU General Public License Version 3 oder neuer bezüglich der Copyright-Bedingungen. Es wird KEINE HAFTUNG übernommen. Wenn Sie Fehler in der Übersetzung dieser Handbuchseite finden, schicken Sie bitte eine E-Mail an .