File: signal.2

package info (click to toggle)
manpages-ja 0.4.0.0.20000115-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 8,760 kB
  • ctags: 3
  • sloc: sh: 6,269; perl: 155; makefile: 55
file content (129 lines) | stat: -rw-r--r-- 3,910 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
.\" Copyright (c) 1994 Mike Battersby <mike@starbug.apana.org.au>
.\" based on work by faith@cs.unc.edu
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one
.\" 
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date.  The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein.  The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\" 
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" Modified, aeb, 960424, 960621
.\" FIXME - error conditions need to be documented
.\"
.\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
.\"         all rights reserved.
.\" Translated Mon Mar  3 23:30:58 JST 1997
.\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
.\"
.\"WORD:	signal			ʥ
.\"WORD:	signal handler		ʥ롦ϥɥ顼
.\"WORD:	library			饤֥
.\"WORD:	semantics		
.\"WORD:	prototype		
.\"WORD:	architecture		ƥ㡼
.\"WORD:	endless loop		̵¥롼
.\"
.TH SIGNAL 2 "21 July 1996" "Linux 2.0" "Linux Programmer's Manual"
.SH ̾
signal \- ANSI C ʥ
.SH 
.B #include <signal.h>
.sp 2
.BI "void (*signal(int " signum ", void (*" handler ")(int)))(int);"
.SH 
.B signal
ƥࡦ
.I signum
ǻꤵ줿ֹΥʥ
ʥ롦ϥɥ顼(signal hanlder)ꤹ롣
Υʥ롦ϥɥ顼
.I handler
ꤵ졢桼λꤷؿޤϰʲΤɤ줫Ǥ:
.RS
.TP
.B SIG_IGN
Υʥ̵(ignore)롣
.TP
.B SIG_DFL
ΥʥǥեȤư᤹
.RE
.PP
ʥ롦ϥɥ顼롼ؤϤ(int)
ʥֹǤ롣ϰĤΥʥ롦ϥɥ顼ʣ
ʥΤ˻Ѥ뤳Ȥǽˤ롣

.SH ֤
.B signal
ϺޤǤΥʥ롦ϥɥ顼֤ͤ顼ξ
.B SIG_ERR
֤

.SH 
.B SIGKILL

.BR SIGSTOP
˥ʥ롦ϥɥ顼ꤹ뤳ȤϤǤʤ

.PP
BSD ƥȰۤꡢLinux Υʥȯ뤴Ȥ
ǥեȤưᤵ롣
ǡ⤷
.B "<signal.h>"
Τ
.B "<bsd/signal.h>"
򥤥󥯥롼ɤʤС
.B signal

.B __bsd_signal
 BSD (semantics)Ȥʤ롣ɤμ
.B signal

.BR sigaction (2)
Ѥƺ줿饤֥ꡦ롼Ǥ롣
.PP
⤷Υޥ˥奢Ƭη(prototype)˺𤷤ʤС
ʲΤ褦ʬΥ뤤⤷ʤ:
.PP
typedef void (*sighandler_t)(int);
.br
.BI "sighandler_t signal(int " signum ", sighandler_t " handler );
.PP
POSIX ˤȡ\fIkill()\fP  \fIraise()\fP ؿǤʤ
SIGFPE, SIGILL, SIGSEGV ʥ̵(ignore)ư̤
롣ˤ껻η̤̤Ȥʤ롣
Υƥ㡼(architecture)ǤϤ SIGFPE ʥ롣
(Ʊͤκ \-1 dz SIGFPE 뤫⤷ʤ)
Υʥ̵뤹̵¥롼פ뤫⤷ʤ
.PP
POSIX (B.3.3.1.3) ˤ SIGCHLD ưȤ SIG_IGN ꤷƤϤʤʤ
BSD  SYSV ưϰۤäƤ롣SIGCHLD ư SIG_IGN ꤷƤ
BSD Υեȥ Linux ǤϼԤ롣

.SH 
ANSI C

.SH Ϣ
.BR kill (1),
.BR kill (2),
.BR killpg (2),
.BR pause (2),
.BR raise (3),
.BR sigaction (2),
.BR signal (7),
.BR sigsetops (3),
.BR sigvec (2),
.BR alarm (2)