1 .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
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.
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.
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
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" Modified Sat Jul 24 18:16:02 1993 by Rik Faith (faith@cs.unc.edu)
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>
30 .\" WORD: signal handler ¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é¡¼
32 .TH SLEEP 3 2010-02-03 "GNU" "Linux Programmer's Manual"
34 sleep \- »ØÄê¤ÎÉÿô¤Î´Ö¤À¤±µÙ»ß¤¹¤ë
37 .B #include <unistd.h>
39 .BI "unsigned int sleep(unsigned int " "seconds" );
43 .\"O makes the calling thread sleep until
45 .\"O seconds have elapsed or a signal arrives which is not ignored.
47 ¤Ï¡¢¸Æ¤Ó½Ð¤·¤¿¥¹¥ì¥Ã¥É¤ò
49 Éô֤ޤ¿¤Ï̵»ë¤µ¤ì¤Ê¤¤¥·¥°¥Ê¥ë¤¬ÅþÃ夹¤ë¤Þ¤ÇµÙ»ß¤¹¤ë¡£
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"
63 .\"O may be implemented using
73 ¤òÍѤ¤¤Æ¼ÂÁõ¤µ¤ì¤Æ¤¤¤ë¡£¤½¤Î¤¿¤á¡¢
77 ¤òº®¤¼¤Æ»ÈÍѤ¹¤ë¤Î¤Ï¡¢¤Þ¤º¤¤¹Í¤¨¤Ç¤¢¤ë¡£
81 .\"O from a signal handler or modifying the handling of
83 .\"O while sleeping will cause undefined results.
84 µÙ»ßÃæ¤Ë¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é¡¼¤«¤é
88 ¤Î¥Ï¥ó¥É¥ê¥ó¥°¤òÊѹ¹¤¹¤ë¤³¤È¤Ï¡¢ÄêµÁ¤µ¤ì¤Æ¤¤¤Ê¤¤·ë²Ì¤òÀ¸¤à¡£