Do not begin a line with single quote character. Submitted by: Kazuo Horikawa <k-horik@yk.rim.or.jp>
82 lines
3.1 KiB
Groff
82 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.
|
|
.\"
|
|
.\" @(#)usleep.3 8.1 (Berkeley) 6/4/93
|
|
.\" %Id: usleep.3,v 1.9 1998/02/13 04:44:49 bde Exp %
|
|
.\"
|
|
.Dd Feb 13, 1998
|
|
.Dt USLEEP 3
|
|
.Os BSD 4.3
|
|
.Sh ̾¾Î
|
|
.Nm usleep
|
|
.Nd ¥×¥í¥»¥¹¤Î¼Â¹Ô¤ò¥Þ¥¤¥¯¥íÉäǬ¤Ã¤¿»þ´Ö¤À¤±ÃæÃÇ
|
|
.Sh ½ñ¼°
|
|
.Fd #include <unistd.h>
|
|
.Ft int
|
|
.Fn usleep "unsigned int microseconds"
|
|
.Sh ²òÀâ
|
|
.Fn usleep
|
|
´Ø¿ô¤Ï¡¢
|
|
.Fa microseconds
|
|
¥Þ¥¤¥¯¥íÉ÷в᤹¤ë¤«¡¢¤Þ¤¿¤Ï¥×¥í¥»¥¹¤Ë
|
|
¿®¹æ¤¬ÅþÃ夷¤Æ¤½¤Îưºî¤¬¿®¹æ¼õ¿®µ¡Ç½¤ò¸Æ¤Ó½Ð¤¹¤â¤Î¤Ç¤¢¤ë¤«¤Þ¤¿¤Ï¥×¥í¥»¥¹¤ò
|
|
½ªÎ»¤¹¤ë¤â¤Î¤Ç¤¢¤ë¤Þ¤Ç¡¢¸Æ¤Ó½Ð¤·¥×¥í¥»¥¹¤Î¼Â¹Ô¤òÃæÃǤ·¤Þ¤¹¡£¥·¥¹¥Æ¥à¤Î
|
|
³èư¾õÂ֤ˤè¤Ã¤Æ¤Ï¡¢¥¹¥ê¡¼¥×»þ´Ö¤ÏÉÔ³ÎÄê¤Î»þ´Ö¤À¤±Ä¹¤¯¤Ê¤ê¤Þ¤¹¡£
|
|
.Pp
|
|
¤³¤Î´Ø¿ô¤Ï¡¢
|
|
.Fa microseconds
|
|
¥Þ¥¤¥¯¥íÉäÀ¤±¡¢¤Þ¤¿¤Ï¿®¹æ¤¬¤¢¤ë¤Þ¤Ç¥Ý¡¼¥º
|
|
¤·¤Æ
|
|
.Xr nanosleep 2
|
|
¤ò»È¤¤¼Â¹Ô¤µ¤ì¤Þ¤¹¡£¤½¤Î·ë²Ì¡¢¤³¤Î¥¤¥ó¥×¥ê¥á¥ó¥Æ¡¼¥·¥ç¥ó
|
|
¤Ç¤Ï¥¹¥ê¡¼¥×¤Ï¥×¥í¥»¥¹¥¿¥¤¥Þ¡¼¤Î¾õÂ֤ˤϱƶÁ¤òÍ¿¤¨¤º¡¢
|
|
SIGALRM ¤Ë¤Ä¤¤¤ÆÆÃÊ̤ʼ谷¤¤¤Ï¹Ô¤¤¤Þ¤»¤ó¡£
|
|
.Sh Ìá¤êÃÍ
|
|
.\".Rv -std usleep
|
|
.Fn usleep
|
|
´Ø¿ô¤Ï¡¢À®¸ù¤¹¤ë¤ÈÃÍ 0 ¤òÊÖ¤·¤Þ¤¹¡£¤½¤ì°Ê³°¤Î¾ì¹ç¤ÏÃÍ -1 ¤¬
|
|
ÊÖ¤µ¤ì¡¢¥¨¥é¡¼¤ò¼¨¤¹¥°¥í¡¼¥Ð¥ëÊÑ¿ô
|
|
.Fa errno
|
|
¤¬ÀßÄꤵ¤ì¤Þ¤¹¡£
|
|
.Sh ¥¨¥é¡¼
|
|
.Fn usleep
|
|
´Ø¿ô¤Ï¡¢¼¡¤Î¤è¤¦¤Ê¾ì¹ç¤Ë¤Ï¼ºÇÔ¤·¤Þ¤¹¡§
|
|
.Bl -tag -width [EINTR]
|
|
.It Bq Er EINTR
|
|
¿®¹æ¤¬¥×¥í¥»¥¹¤ËÅþÃ夷¡¢¤½¤Îưºî¤Ï¿®¹æ¼õ¿®µ¡Ç½¤ò¸Æ¤Ó½Ð¤¹¤â¤Î¤Ç¤·¤¿¡£
|
|
.Sh »²¾È
|
|
.Xr nanosleep 2 ,
|
|
.Xr sleep 3
|
|
.Sh Îò»Ë
|
|
.Fn usleep
|
|
´Ø¿ô¤Ï¡¢
|
|
.Bx 4.3
|
|
¤Ë¸½¤ì¤Þ¤·¤¿¡£
|