OSDN Git Service

LDP: Address fuzzy changes (unistd)
[linuxjm/jm.git] / manual / LDP_man-pages / draft / 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 .\"
32 .\" Japanese Version Copyright (c) 1997 YOSHINO Takashi
33 .\"       all rights reserved.
34 .\" Translated Tue Jan 21 20:46:24 JST 1997
35 .\"       by YOSHINO Takashi <yoshino@civil.jcn.nihon-u.ac.jp>
36 .\"
37 .TH SLEEP 3 2017\-09\-15 GNU "Linux Programmer's Manual"
38 .SH 名前
39 sleep \- 指定の秒数の間だけ休止する
40 .SH 書式
41 .nf
42 \fB#include <unistd.h>\fP
43 .PP
44 \fBunsigned int sleep(unsigned int \fP\fIseconds\fP\fB);\fP
45 .fi
46 .SH 説明
47 \fBsleep\fP()  causes the calling thread to sleep either until the number of
48 real\-time seconds specified in \fIseconds\fP have elapsed or until a signal
49 arrives which is not ignored.
50 .SH 返り値
51 要求された時間が過ぎた場合はゼロを返す。 呼び出しがシグナルハンドラーに割り込まれた場合は、 休止の残り時間を返す。
52 .SH 属性
53 この節で使用されている用語の説明については、 \fBattributes\fP(7) を参照。
54 .TS
55 allbox;
56 lb lb lbw27
57 l l l.
58 インターフェース        属性  値
59 T{
60 \fBsleep\fP()
61 T}      Thread safety   MT\-Unsafe sig:SIGCHLD/linux
62 .TE
63 .sp 1
64 .SH 準拠
65 POSIX.1\-2001, POSIX.1\-2008.
66 .SH 注意
67 On Linux, \fBsleep\fP()  is implemented via \fBnanosleep\fP(2).  See the
68 \fBnanosleep\fP(2)  man page for a discussion of the clock used.
69 .SS "Portability notes"
70 On some systems, \fBsleep\fP()  may be implemented using \fBalarm\fP(2)  and
71 \fBSIGALRM\fP (POSIX.1 permits this); mixing calls to \fBalarm\fP(2)  and
72 \fBsleep\fP()  is a bad idea.
73 .PP
74 休止中にシグナルハンドラーから \fBlongjmp\fP(3)  を使用することや \fBSIGALRM\fP
75 のハンドリングを変更することは、定義されていない結果を生む。
76 .SH 関連項目
77  \fBsleep\fP(1), \fBalarm\fP(2), \fBnanosleep\fP(2), \fBsignal\fP(2), \fBsignal\fP(7)
78 .SH この文書について
79 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 5.10 の一部である。プロジェクトの説明とバグ報告に関する情報は
80 \%https://www.kernel.org/doc/man\-pages/ に書かれている。