File: ualarm.3

package info (click to toggle)
manpages-ja 0.5.0.0.20050315-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 18,620 kB
  • ctags: 4
  • sloc: sh: 12,675; perl: 157; makefile: 106
file content (115 lines) | stat: -rw-r--r-- 3,334 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
.\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
.\" USA.
.\"
.\" Japanese Version Copyright (c) 2004 Yuichi SATO
.\"         all rights reserved.
.\" Translated Sat Sep 11 07:32:05 JST 2004
.\"         by Yuichi SATO <ysato444@yahoo.co.jp>
.\"
.TH UALARM 3  2003-07-24 "" "Linux Programmer's Manual"
.SH ̾
ualarm \- ꤷޥø˥ʥͽ򤹤
.SH 
.nf
/* BSD  */
.B "#include <unistd.h>"
.sp
.BI "unsigned int"
.br
.BI "ualarm(unsigned int " usecs ", unsigned int " interval );
.sp
/* SUSv2  */
.B "#define _XOPEN_SOURCE 500"
.br
.B "#include <unistd.h>"
.sp
.BI "useconds_t ualarm(useconds_t " usecs ", useconds_t " interval );
.fi
.SH 
\fBualarm()\fP ؿϡƤӽФΥץФ
.I usecs
ޥ (ʾ) ˥ʥ SIGALRM 롣
٤ϥƥγ١ƤӽФν֡
ƥॿޡγ٤ˤäĹʤ뤫⤷ʤ
.LP
åޤ̵뤵ʤ¤ꡢ
Υʥϥץλ롣
.LP
.I interval
 0 Ǥʤ硢ǽ SIGALRM ʥθ塢

.I interval
ޥ SIGALRM ʥ뤬롣
.SH ֤
δؿθƤӽФĤäƤޥÿ֤
¹ alarm ʤ 0 ֤
.SH 顼
.TP
EINTR
ʥˤäƳޤ줿
.TP
EINVAL
\fIusecs\fP ޤ \fIinterval\fP  1000000 ̤Ǥʤ
(줬顼Ȥư륷ƥξ)
.SH 
BSD 4.3, POSIX 1003.1-2003 ˽򤹤롣
BSD 4.3, SUSv2, POSIX ϥ顼Ƥʤ
.SH 
.B useconds_t
 [0,1000000] ϰϤݻǤʤǤ롣
η
.I <sys/types.h>
Ƥơ
.I <unistd.h>
˥󥯥롼ɤƤ롣
 glibc Ǥϡ_XOPEN_SOURCE  500 ̤ͤäƤ硢
ޤ _XOPEN_SOURCE  _XOPEN_SOURCE_EXTENDED 
ξƤˤΤߡη롣
.\" useconds_t  HPUX 10 Ǥ
ץˤηŪ˽񤫤ʤܿ⤯ʤ롣
.LP
δؿ
.IR alarm (),
.IR sleep (),
.IR nanosleep (),
.IR setitimer (),
.IR timer_create (),
.IR timer_delete (),
.IR timer_getoverrun (),
.IR timer_gettime (),
.IR timer_settime (),
.IR usleep ()
Τ褦¾ΥޡؿȤߺѤϵꤵƤʤ
.LP
δؿѤ줿ΤǤ롣

.BR nanosleep (2)
ޤ
.BR setitimer (2)
Ȥȡ
.SH Ϣ
.BR alarm (2),
.BR getitimer (2),
.BR nanosleep (2),
.BR select (2),
.BR setitimer (2),
.BR usleep (3)