OSDN Git Service

(split) DP: release pages (catch up to 3.50).
[linuxjm/LDP_man-pages.git] / release / man3 / sleep.3
1 .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\" Modified Sat Jul 24 18:16:02 1993 by Rik Faith (faith@cs.unc.edu)
26 .\"*******************************************************************
27 .\"
28 .\" This file was generated with po4a. Translate the source file.
29 .\"
30 .\"*******************************************************************
31 .TH SLEEP 3 2010\-02\-03 GNU "Linux Programmer's Manual"
32 .SH 名前
33 sleep \- sleep for the specified number of seconds
34 .SH 書式
35 .nf
36 \fB#include <unistd.h>\fP
37 .sp
38 \fBunsigned int sleep(unsigned int \fP\fIseconds\fP\fB);\fP
39 .fi
40 .SH 説明
41 \fBsleep\fP()  は、呼び出したスレッドを \fIseconds\fP 秒間または無視されないシグナルが到着するまで休止する。
42 .SH 返り値
43 要求された時間が過ぎた場合はゼロを返す。 呼び出しがシグナルハンドラーに割り込まれた場合は、 休止の残り時間を返す。
44 .SH 準拠
45 POSIX.1\-2001.
46 .SH バグ
47 \fBsleep\fP()  は \fBSIGALRM\fP を用いて実装されている。そのため、 \fBalarm\fP(2)  と \fBsleep\fP()
48 を混ぜて使用するのは、まずい考えである。
49 .PP
50 休止中にシグナルハンドラーから \fBlongjmp\fP(3)  を使用することや \fBSIGALRM\fP
51 のハンドリングを変更することは、定義されていない結果を生む。
52 .SH 関連項目
53 \fBalarm\fP(2), \fBnanosleep\fP(2), \fBsignal\fP(2), \fBsignal\fP(7)
54 .SH この文書について
55 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
56 である。プロジェクトの説明とバグ報告に関する情報は
57 http://www.kernel.org/doc/man\-pages/ に書かれている。