d1534953b1
Do not begin a line with single quote character. Submitted by: Kazuo Horikawa <k-horik@yk.rim.or.jp>
96 lines
3 KiB
Groff
96 lines
3 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.
|
|
.\"
|
|
.\" From: @(#)ualarm.3 8.2 (Berkeley) 4/19/94
|
|
.\" %Id: ualarm.3,v 1.8 1997/09/29 19:11:14 wosch Exp %
|
|
.\"
|
|
.Dd April 19, 1994
|
|
.Dt UALARM 3
|
|
.Os BSD 4.3
|
|
.Sh ̾¾Î
|
|
.Nm ualarm
|
|
.Nd »ØÄꤵ¤ì¤¿»þ´Ö¸å¤Ë¿®¹æȯ¿®¤òͽÄê
|
|
.Sh ½ñ¼°
|
|
.Fd #include <unistd.h>
|
|
.Ft u_int
|
|
.Fn ualarm "u_int microseconds" "u_int interval"
|
|
.Sh ²òÀâ
|
|
.Bf -symbolic
|
|
¤³¤ì¤Ï setitimer(2) ¤Ø¤Î´Ê°×²½¤µ¤ì¤¿¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ç¤¹¡£
|
|
.Ef
|
|
.Pp
|
|
.Fn ualarm
|
|
´Ø¿ô¤Ï¡¢
|
|
.Ar microseconds
|
|
¤Î¥«¥¦¥ó¥È¤À¤±ÂԤäƤ«¤é½ªÎ»¿®¹æ
|
|
.Dv SIGALRM
|
|
¤ò½Ð¤·¤Þ¤¹¡£¥·¥¹¥Æ¥àÆ°ºî¤Þ¤¿¤Ï¤½¤Î¸Æ¤Ó½Ð¤·½èÍý¤Ë»È¤Ã¤¿
|
|
»þ´Ö¤Ë¤è¤Ã¤Æ¡¢¤ï¤º¤«¤ÊÃ٤줬µ¯¤¤ë¾ì¹ç¤¬¤¢¤ê¤Þ¤¹¡£
|
|
.Pp
|
|
°ú¿ô
|
|
.Ar interval
|
|
¤¬Èó¥¼¥í¤Ç¤¢¤ë¾ì¹ç¤Ï¡¢¥¿¥¤¥Þ¤¬Àڤ줿¸å ( ¤¹¤Ê¤ï¤Á¡¢
|
|
.Fa value
|
|
¥Þ¥¤¥¯¥íÉ䬲᤮¤¿¸å ) ¤Î
|
|
.Ar interval
|
|
¥Þ¥¤¥¯¥íÉÃËè¤Ë
|
|
.Dv SIGALRM
|
|
¿®¹æ¤¬¥×¥í¥»¥¹¤Ë
|
|
ÂФ·¤ÆÁ÷¤é¤ì¤Þ¤¹¡£
|
|
.Pp
|
|
.Xr setitimer 2
|
|
¤ÎÀ©¸Â¤Ë¤è¤Ã¤Æ¡¢
|
|
.Ar microseconds
|
|
¤ª¤è¤Ó
|
|
.Ar interval
|
|
¤ÎºÇÂç¿ô¤Ï
|
|
100000000000000 ¤ËÀ©¸Â¤µ¤ì¤Þ¤¹ ( ¤³¤ÎÃͤ¬Éä¹æ¤Ê¤·À°¿ô¤ÎÈÏ°ÏÆâ¤Ë¼ý¤Þ¤ë
|
|
¾ì¹ç ) ¡£
|
|
.Sh Ìá¤êÃÍ
|
|
¿®¹æ¤¬¤¦¤Þ¤¯¼õ¤±¼è¤é¤ì¤¿¾ì¹ç¤Ï¡¢
|
|
.Fn ualarm
|
|
´Ø¿ô¤Ï¥¯¥í¥Ã¥¯¤Ë»Ä¤µ¤ì¤¿»þ´Ö¿ô¤òÊÖ¤·¤Þ¤¹¡£
|
|
.Sh Ãí
|
|
1 ¥Þ¥¤¥¯¥íÉäϡ¢0.000001 ÉäǤ¹¡£
|
|
.Sh »²¾È
|
|
.Xr getitimer 2 ,
|
|
.Xr setitimer 2 ,
|
|
.Xr sigpause 2 ,
|
|
.Xr sigvec 2 ,
|
|
.Xr alarm 3 ,
|
|
.Xr signal 3 ,
|
|
.Xr sleep 3 ,
|
|
.Xr usleep 3
|
|
.Sh Îò»Ë
|
|
.Fn ualarm
|
|
´Ø¿ô¤Ï¡¢
|
|
.Bx 4.3
|
|
¤Ë¸½¤ì¤Þ¤·¤¿¡£
|