6a00dc5ed2
Submitted by: Yuko Sasaki <yuko@veltec.co.jp>
89 lines
3.1 KiB
Groff
89 lines
3.1 KiB
Groff
.\" Copyright (c) 1986, 1991, 1993
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
.\"
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
.\" modification, are permitted provided that the following conditions
|
|
.\" are met:
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
.\" must display the following acknowledgement:
|
|
.\" This product includes software developed by the University of
|
|
.\" California, Berkeley and its contributors.
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
.\" may be used to endorse or promote products derived from this software
|
|
.\" without specific prior written permission.
|
|
.\"
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
.\" SUCH DAMAGE.
|
|
.\"
|
|
.\" @(#)sleep.3 8.1 (Berkeley) 6/4/93
|
|
.\" %FreeBSD: src/lib/libc/gen/sleep.3,v 1.12.2.3 2001/12/14 18:33:51 ru Exp %
|
|
.\"
|
|
.\" $FreeBSD$
|
|
.Dd February 13, 1998
|
|
.Dt SLEEP 3
|
|
.Os
|
|
.Sh ̾¾Î
|
|
.Nm sleep
|
|
.Nd ÉÃñ°Ì¤Ç¬Äꤵ¤ì¤ë´Ö³Ö¤À¤±¥×¥í¥»¥¹¤Î¼Â¹Ô¤òÃæÃǤ¹¤ë
|
|
.Sh ¥é¥¤¥Ö¥é¥ê
|
|
.Lb libc
|
|
.Sh ½ñ¼°
|
|
.In unistd.h
|
|
.Ft unsigned int
|
|
.Fn sleep "unsigned int seconds"
|
|
.Sh ²òÀâ
|
|
.Fn sleep
|
|
´Ø¿ô¤Ï
|
|
.Fa seconds
|
|
É䬷в᤹¤ë¤«¡¢¤Þ¤¿¤Ï¥·¥°¥Ê¥ë¤¬¥×¥í¥»¥¹¤ËÅþÃ夷¤¿·ë²Ì
|
|
¥·¥°¥Ê¥ë½èÍý´Ø¿ô¤òµ¯Æ°¤¹¤ë¤«¥×¥í¥»¥¹¤ò½ªÎ»¤¹¤ë¤Þ¤Ç¡¢
|
|
¸Æ¤Ó½Ð¤·¥×¥í¥»¥¹¤Î¼Â¹Ô¤òÃæÃǤ·¤Þ¤¹¡£
|
|
¥·¥¹¥Æ¥à¤Î²ÔƯ¾õ¶·¤Ë¤è¤Ã¤Æ¤Ï¡¢¥×¥í¥»¥¹¤ÎÃæÃǤ·¤Æ¤¤¤ë»þ´Ö¤¬
|
|
ÉÔ³ÎÄê¤È¤Ê¤Ã¤ÆŤӤ¯²ÄǽÀ¤¬¤¢¤ê¤Þ¤¹¡£
|
|
.Pp
|
|
¤³¤Î´Ø¿ô¤Ï¡¢
|
|
.Xr nanosleep 2
|
|
¤ò»ÈÍѤ·¤Æ¡¢
|
|
.Fa seconds
|
|
É÷ФĤ«¡¢¤Þ¤¿¤Ï¥·¥°¥Ê¥ë¤¬ÅþÃ夹¤ë¤Þ¤ÇÃæÃǤ¹¤ë¤È¤¤¤¦ÊýË¡¤Ç
|
|
¼ÂÁõ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤·¤¿¤¬¤Ã¤Æ¡¢¤³¤Î¼ÂÁõ¤Ë¤ª¤¤¤Æ¤Ï¡¢
|
|
¥×¥í¥»¥¹¤¬ÃæÃǤ¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¥×¥í¥»¥¹¥¿¥¤¥Þ¤Î¾õÂÖ¤¬
|
|
±Æ¶Á¤ò¼õ¤±¤ë¤³¤È¤Ï¤Ê¤¯¡¢SIGALRM ¤ËÂФ¹¤ëÆÃÊ̤ʽèÍý¤â
|
|
¤¢¤ê¤Þ¤»¤ó¡£
|
|
.Sh Ìá¤êÃÍ
|
|
Í׵ᤵ¤ì¤¿»þ´Ö¤¬·Ð²á¤·¤¿¤¿¤á¤Ë
|
|
.Fn sleep
|
|
´Ø¿ô¤¬Éüµ¢¤·¤¿¾ì¹ç¡¢ÊÖ¤µ¤ì¤ëÃͤÏ
|
|
0 ¤Ç¤¹¡£¥·¥°¥Ê¥ë¤¬Á÷¤é¤ì¤¿¤¿¤á¤Ë
|
|
.Fn sleep
|
|
´Ø¿ô¤¬Éüµ¢¤·¤¿¾ì¹ç¡¢ÊÖ¤µ¤ì¤ëÃͤÏ
|
|
¥×¥í¥»¥¹¤¬ÃæÃǤ·¤Æ¤¤¤Ê¤«¤Ã¤¿»þ´ÖÎÌ (ÉÃñ°Ì)
|
|
¤Ë¤Ê¤ê¤Þ¤¹ (¤³¤ì¤ÏÍ׵ᤵ¤ì¤¿»þ´Ö¤«¤é¼ÂºÝ¤ËÃæÃǤ·¤Æ¤¤¤¿
|
|
»þ´Ö¤ò¸º»»¤·¤¿¤â¤Î¤Ç¤¹)¡£
|
|
.Sh ´ØÏ¢¹àÌÜ
|
|
.Xr nanosleep 2 ,
|
|
.Xr usleep 3
|
|
.Sh µ¬³Ê
|
|
.Fn sleep
|
|
´Ø¿ô¤Ï
|
|
.St -p1003.1-90
|
|
¤ËŬ¹ç¤·¤Æ¤¤¤Þ¤¹¡£
|
|
.Sh Îò»Ë
|
|
.Fn sleep
|
|
´Ø¿ô¤Ï
|
|
.At v7
|
|
¤ÇÅо줷¤Þ¤·¤¿¡£
|