OSDN Git Service

14ef1e4b14d93a36f87c2b605ed260c67601242d
[linuxjm/LDP_man-pages.git] / release / man3 / ualarm.3
1 .\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
2 .\"
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
7 .\"
8 .\" The GNU General Public License's references to "object code"
9 .\" and "executables" are to be interpreted as the output of any
10 .\" document formatting or typesetting system, including
11 .\" intermediate and printed output.
12 .\"
13 .\" This manual is distributed in the hope that it will be useful,
14 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
15 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 .\" GNU General Public License for more details.
17 .\"
18 .\" You should have received a copy of the GNU General Public
19 .\" License along with this manual; if not, write to the Free
20 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
21 .\" USA.
22 .\"
23 .\" Japanese Version Copyright (c) 2004 Yuichi SATO
24 .\"         all rights reserved.
25 .\" Translated Sat Sep 11 07:32:05 JST 2004
26 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
27 .\" Updated 2007-05-04, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
28 .\"
29 .TH UALARM 3  2008-08-06 "" "Linux Programmer's Manual"
30 .SH Ì¾Á°
31 ualarm \- »ØÄꤷ¤¿¥Þ¥¤¥¯¥íÉøå¤Ë¥·¥°¥Ê¥ë¤òÁ÷¤ëͽÄê¤ò¤¹¤ë
32 .SH ½ñ¼°
33 .nf
34 .B "#include <unistd.h>"
35 .sp
36 .BI "useconds_t ualarm(useconds_t " usecs ", useconds_t " interval );
37 .fi
38 .sp
39 .in -4n
40 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
41 .RB ( feature_test_macros (7)
42 »²¾È):
43 .in
44 .sp
45 .BR ualarm ():
46 _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
47 .SH ÀâÌÀ
48 .BR ualarm ()
49 ´Ø¿ô¤Ï¡¢¸Æ¤Ó½Ð¤·¸µ¤Î¥×¥í¥»¥¹¤ËÂФ·¤Æ
50 .I usecs
51 ¥Þ¥¤¥¯¥íÉà(°Ê¾å) ¸å¤Ë
52 .B SIGALRM
53 ¥·¥°¥Ê¥ë¤òÁ÷¤ë¡£
54 ÃÙ¤ì¤Ï¥·¥¹¥Æ¥à¤Î³èÀ­ÅÙ¡¦¸Æ¤Ó½Ð¤·¤Î½èÍý»þ´Ö¡¦
55 ¥·¥¹¥Æ¥à¥¿¥¤¥Þ¡¼¤ÎγÅ٤ˤè¤Ã¤ÆŤ¯¤Ê¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
56 .LP
57 Ê᪤ޤ¿¤Ï̵»ë¤µ¤ì¤Ê¤¤¸Â¤ê¡¢
58 .B SIGALRM
59 ¥·¥°¥Ê¥ë¤Ï¥×¥í¥»¥¹¤ò½ªÎ»¤µ¤»¤ë¡£
60 .LP
61 .I interval
62 °ú¤­¿ô¤¬ 0 ¤Ç¤Ê¤¤¾ì¹ç¡¢ºÇ½é¤Î
63 .B SIGALRM
64 ¥·¥°¥Ê¥ë¤Î¸å¡¢
65 ¤µ¤é¤Ë
66 .I interval
67 ¥Þ¥¤¥¯¥íÉÃËè¤Ë SIGALRM ¥·¥°¥Ê¥ë¤¬Á÷¤é¤ì¤ë¡£
68 .SH ÊÖ¤êÃÍ
69 ¤³¤Î´Ø¿ô¤Ï¡¢²áµî¤ËÀßÄꤵ¤ì¤¿ alarm ¤Î»Ä¤ê¥Þ¥¤¥¯¥íÉÿô¤òÊÖ¤¹¡£
70 ¼Â¹ÔÃæ¤Î alarm ¤¬¤Ê¤¤¾ì¹ç¤Ï 0 ¤òÊÖ¤¹¡£
71 .SH ¥¨¥é¡¼
72 .TP
73 .B EINTR
74 ¥·¥°¥Ê¥ë¤Ë¤è¤Ã¤Æ³ä¤ê¹þ¤Þ¤ì¤¿¡£
75 .TP
76 .B EINVAL
77 \fIusecs\fP ¤Þ¤¿¤Ï \fIinterval\fP ¤¬ 1000000 Ì¤Ëþ¤Ç¤Ê¤¤
78 (¤³¤ì¤¬¥¨¥é¡¼¤È¤·¤Æ°·¤ï¤ì¤ë¥·¥¹¥Æ¥à¤Î¾ì¹ç)¡£
79 .SH ½àµò
80 4.3BSD, POSIX.1-2001.
81 POSIX.1-2001 ¤Ç¤Ï
82 .BR ualarm ()
83 ¤Ï²áµî¤Î¤â¤Î¤È¤µ¤ì¤Æ¤¤¤ë¡£
84 POSIX.1-2008 ¤Ç¤Ï¡¢
85 .BR ualarm ()
86 ¤Î»ÅÍͤ¬ºï½ü¤µ¤ì¤Æ¤¤¤ë¡£
87 4.3BSD, SUSv2, POSIX ¤Ï¥¨¥é¡¼¤òÄêµÁ¤·¤Æ¤¤¤Ê¤¤¡£
88 .SH Ãí°Õ
89 .I useconds_t
90 ·¿¤Ï [0,1000000] ¤ÎÈϰϤÎÀ°¿ô¤òÊÝ»ý¤Ç¤­¤ëÉä¹æ¤Ê¤·À°¿ô·¿¤Ç¤¢¤ë¡£
91 ¤â¤È¤â¤È¤Î BSD ¤Ç¤Î¼ÂÁõ¤ä¡¢¥Ð¡¼¥¸¥ç¥ó 2.1 ¤è¤êÁ°¤Î glibc ¤Ç¤Ï¡¢
92 .BR ualarm ()
93 ¤Î°ú¤­¿ô¤Î·¿¤Ï
94 .I "unsigned int"
95 ¤Ç¤¢¤Ã¤¿¡£
96 ¥×¥í¥°¥é¥àÃæ¤ËÌÀ¼¨Åª¤Ë
97 .I useconds_t
98 ¤È½ñ¤«¤Ê¤¤Êý¤¬¡¢°Ü¿¢À­¤¬¹â¤¯¤Ê¤ë¡£
99 .LP
100 ¤³¤Î´Ø¿ô¤È
101 .BR alarm (2),
102 .BR sleep (3),
103 .BR nanosleep (2),
104 .BR setitimer (2),
105 .BR timer_create (2),
106 .BR timer_delete (2),
107 .BR timer_getoverrun (2),
108 .BR timer_gettime (2),
109 .BR timer_settime (2),
110 .BR usleep (3)
111 ¤Î¤è¤¦¤Ê¾¤Î¥¿¥¤¥Þ¡¼´Ø¿ô¤È¤ÎÁê¸ßºîÍѤϵ¬Äꤵ¤ì¤Æ¤¤¤Ê¤¤¡£
112 .LP
113 ¤³¤Î´Ø¿ô¤ÏÇÑ»ßͽÄê¤Ç¤¢¤ë¡£
114 Âå¤ï¤ê¤Ë
115 .BR setitimer (2)
116 ¤â¤·¤¯¤Ï POSIX ¥¤¥ó¥¿¡¼¥Ð¥ë¥¿¥¤¥Þ
117 .RB ( timer_create (2)
118 ¤Ê¤É) ¤ò»È¤¦¤³¤È¡£
119 .SH ´ØÏ¢¹àÌÜ
120 .BR alarm (2),
121 .BR getitimer (2),
122 .BR nanosleep (2),
123 .BR select (2),
124 .BR setitimer (2),
125 .BR usleep (3),
126 .BR time (7)