OSDN Git Service

Import translated manuals from JM CVS Repository.
[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 .\" 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 .\"
25 .\" Japanese Version Copyright (c) 1997 YOSHINO Takashi
26 .\"       all rights reserved.
27 .\" Translated Tue Jan 21 20:46:24 JST 1997
28 .\"       by YOSHINO Takashi <yoshino@civil.jcn.nihon-u.ac.jp>
29 .\"
30 .\" WORD:       signal handler  ¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é¡¼
31 .\"
32 .TH SLEEP 3  2010-02-03 "GNU" "Linux Programmer's Manual"
33 .SH Ì¾Á°
34 sleep \- »ØÄê¤ÎÉÿô¤Î´Ö¤À¤±µÙ»ß¤¹¤ë
35 .SH ½ñ¼°
36 .nf
37 .B #include <unistd.h>
38 .sp
39 .BI "unsigned int sleep(unsigned int " "seconds" );
40 .fi
41 .SH ÀâÌÀ
42 .\"O .BR sleep ()
43 .\"O makes the calling thread sleep until
44 .\"O .I seconds
45 .\"O seconds have elapsed or a signal arrives which is not ignored.
46 .BR sleep ()
47 ¤Ï¡¢¸Æ¤Ó½Ð¤·¤¿¥¹¥ì¥Ã¥É¤ò
48 .I seconds
49 Éô֤ޤ¿¤Ï̵»ë¤µ¤ì¤Ê¤¤¥·¥°¥Ê¥ë¤¬ÅþÃ夹¤ë¤Þ¤ÇµÙ»ß¤¹¤ë¡£
50 .SH ÊÖ¤êÃÍ
51 .\"O Zero if the requested time has elapsed,
52 .\"O or the number of seconds left to sleep,
53 .\"O if the call was interrupted by a signal handler.
54 Í׵ᤵ¤ì¤¿»þ´Ö¤¬²á¤®¤¿¾ì¹ç¤Ï¥¼¥í¤òÊÖ¤¹¡£
55 ¸Æ¤Ó½Ð¤·¤¬¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é¡¼¤Ë³ä¤ê¹þ¤Þ¤ì¤¿¾ì¹ç¤Ï¡¢
56 µÙ»ß¤Î»Ä¤ê»þ´Ö¤òÊÖ¤¹¡£
57 .\"O .SH "CONFORMING TO"
58 .SH ½àµò
59 POSIX.1-2001.
60 .\"O .SH BUGS
61 .SH ¥Ð¥°
62 .\"O .BR sleep ()
63 .\"O may be implemented using
64 .\"O .BR SIGALRM ;
65 .\"O mixing calls to
66 .\"O .BR alarm (2)
67 .\"O and
68 .\"O .BR sleep ()
69 .\"O is a bad idea.
70 .BR sleep ()
71 ¤Ï
72 .B SIGALRM
73 ¤òÍѤ¤¤Æ¼ÂÁõ¤µ¤ì¤Æ¤¤¤ë¡£¤½¤Î¤¿¤á¡¢
74 .BR alarm (2)
75 ¤È
76 .BR sleep ()
77 ¤òº®¤¼¤Æ»ÈÍѤ¹¤ë¤Î¤Ï¡¢¤Þ¤º¤¤¹Í¤¨¤Ç¤¢¤ë¡£
78 .PP
79 .\"O Using
80 .\"O .BR longjmp (3)
81 .\"O from a signal handler or modifying the handling of
82 .\"O .B SIGALRM
83 .\"O while sleeping will cause undefined results.
84 µÙ»ßÃæ¤Ë¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é¡¼¤«¤é
85 .BR longjmp (3)
86 ¤ò»ÈÍѤ¹¤ë¤³¤È¤ä
87 .B SIGALRM
88 ¤Î¥Ï¥ó¥É¥ê¥ó¥°¤òÊѹ¹¤¹¤ë¤³¤È¤Ï¡¢ÄêµÁ¤µ¤ì¤Æ¤¤¤Ê¤¤·ë²Ì¤òÀ¸¤à¡£
89 .\"O .SH "SEE ALSO"
90 .SH ´ØÏ¢¹àÌÜ
91 .BR alarm (2),
92 .BR nanosleep (2),
93 .BR signal (2),
94 .BR signal (7)