OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man3 / gsignal.3
1 .\" Copyright (C) 2002 Andries Brouwer <aeb@cwi.nl>
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" This replaces an earlier man page written by Walter Harms
24 .\" <walter.harms@informatik.uni-oldenburg.de>.
25 .\"
26 .\" Japanese Version Copyright (c) 2002 Akihiro MOTOKI, all rights reserved.
27 .\" Translated Mon Feb  2 2003 by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
28 .\"
29 .\"WORD:        broken          Àµ¤·¤¯¼ÂÁõ¤µ¤ì¤Æ¤¤¤Ê¤¤
30 .\"
31 .TH GSIGNAL 3  2007-07-26 "" "Linux Programmer's Manual"
32 .\"O .SH NAME
33 .\"O gsignal, ssignal \- software signal facility
34 .SH Ì¾Á°
35 gsignal, ssignal \- ¥½¥Õ¥È¥¦¥§¥¢¡¦¥·¥°¥Ê¥ëµ¡Ç½
36 .\"O .SH SYNOPSIS
37 .SH ½ñ¼°
38 .nf
39 .B #include <signal.h>
40 .sp
41 .B typedef void (*sighandler_t)(int);
42 .sp
43 .BI "int gsignal(int " signum );
44 .sp
45 .BI "sighandler_t ssignal(int " signum ", sighandler_t " action );
46 .fi
47 .sp
48 .in -4n
49 .\"O Feature Test Macro Requirements for glibc (see
50 .\"O .BR feature_test_macros (7)):
51 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
52 .RB ( feature_test_macros (7)
53 »²¾È):
54 .in
55 .sp
56 .BR gsignal (),
57 .BR ssignal ():
58 _SVID_SOURCE
59 .\"O .SH DESCRIPTION
60 .SH ÀâÌÀ
61 .\"O Don't use these functions under Linux.
62 Linux ¤Ç¤Ï¤³¤ì¤é¤Î´Ø¿ô¤ò»ÈÍѤ·¤Ê¤¤¤³¤È¡£
63 .\"O Due to a historical mistake, under Linux these functions are
64 .\"O aliases for
65 .\"O .BR raise (3)
66 .\"O and
67 .\"O .BR signal (2),
68 .\"O respectively.
69 ²áµî¤Ë´Ö°ã¤¤¤¬¤¢¤ê¡¢Linux ¤Ç¤Ï
70 .BR gsignal ()
71 ¤È
72 .BR ssignal ()
73 ¤Ï¤½¤ì¤¾¤ì
74 .BR raise (3)
75 ¤È
76 .BR signal (2)
77 ¤ÎÊÌ̾¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
78 .LP
79 .\"O Elsewhere, on System V-like systems, these functions implement
80 .\"O software signaling, entirely independent of the classical
81 .\"O .BR signal (2)
82 .\"O and
83 .\"O .BR kill (2)
84 .\"O functions.
85 .\"O The function
86 .\"O .BR ssignal ()
87 .\"O defines the action to take when the software signal with
88 .\"O number
89 .\"O .I signum
90 .\"O is raised using the function
91 .\"O .BR gsignal (),
92 .\"O and returns the previous such action or
93 .\"O .BR SIG_DFL .
94 °ìÊý¡¢System V É÷¤Î¥·¥¹¥Æ¥à¤Ç¤Ï¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ç¡¢
95 ½¾Íè¤Î
96 .BR signal (2)
97 ¤ä
98 .BR kill (2)
99 ¤Î´Ø¿ô·²¤È¤Ï´°Á´¤ËÆÈΩ¤Ê¡¢
100 ¥½¥Õ¥È¥¦¥§¥¢¡¦¥·¥°¥Ê¥ê¥ó¥°¤ò¼Â¸½¤·¤Æ¤¤¤ë¡£
101 .BR ssignal ()
102 ´Ø¿ô¤Ï¡¢ÈÖ¹æ
103 .I signum
104 ¤Î¥½¥Õ¥È¥¦¥§¥¢¡¦¥·¥°¥Ê¥ë¤¬
105 .BR gsignal ()
106 ´Ø¿ô¤ò»È¤Ã¤ÆȯÀ¸¤µ¤ì¤¿»þ¤Ë¤È¤ë¤Ù¤­¥¢¥¯¥·¥ç¥ó¤òÄêµÁ¤¹¤ë¡£
107 .BR gsignal ()
108 ¤ÎÊÖ¤êÃͤϡ¢°ì¤ÄÁ°¤Ë»ØÄꤵ¤ì¤Æ¤¤¤¿¥¢¥¯¥·¥ç¥ó¡¢¤â¤·¤¯¤Ï
109 .B SIG_DFL
110 ¤Ç¤¢¤ë¡£
111 .\"O The function
112 .\"O .BR gsignal ()
113 .\"O does the following: if no action (or the action
114 .\"O .BR SIG_DFL )
115 .\"O was
116 .\"O specified for
117 .\"O .IR signum ,
118 .\"O then it does nothing and returns 0.
119 .\"O If the action
120 .\"O .B SIG_IGN
121 .\"O was specified for
122 .\"O .IR signum ,
123 .\"O then it does nothing and returns 1.
124 .\"O Otherwise, it resets the action to
125 .\"O .B SIG_DFL
126 .\"O and calls
127 .\"O the action function with argument
128 .\"O .IR signum ,
129 .\"O and returns the value returned by that function.
130 .\"O The range of possible values
131 .\"O .I signum
132 .\"O varies (often 1-15 or 1-17).
133 .BR gsignal ()
134 ¤Ï°Ê²¼¤Î¤è¤¦¤ÊÆ°ºî¤ò¹Ô¤¦:
135 .I signum
136 ¤ËÂФ·¤Æ¥¢¥¯¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¤«¡¢¥¢¥¯¥·¥ç¥ó
137 .B SIG_DFL
138 ¤¬»ØÄꤵ¤ì¤Æ¤¤¤¿¾ì¹ç¡¢²¿¤â¤»¤º¤Ë 0 ¤òÊÖ¤¹¡£
139 .I signum
140 ¤ËÂФ·¤Æ ¥¢¥¯¥·¥ç¥ó
141 .B SIG_IGN
142 ¤¬»ØÄꤵ¤ì¤Æ¤¤¤¿¾ì¹ç¡¢²¿¤â¤»¤º¤Ë 1 ¤òÊÖ¤¹¡£
143 ¤½¤ì°Ê³°¤Î¾ì¹ç¡¢¥¢¥¯¥·¥ç¥ó¤ò
144 .B SIG_DFL
145 ¤Ë¥ê¥»¥Ã¥È¤·¡¢°ú¤­¿ô¤Ë
146 .I signum
147 ¤ò»ØÄꤷ¤Æ¥¢¥¯¥·¥ç¥ó´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤Æ¡¢¥¢¥¯¥·¥ç¥ó´Ø¿ô¤ÎÊÖ¤êÃͤòÊÖ¤¹¡£
148 .I signum
149 ¤¬¤È¤êÆÀ¤ëÃͤÎÈϰϤϼÂÁõ¤Ë¤è¤ê°Û¤Ê¤ë (¿¤¯¤Î¾ì¹ç 1¡Á15 ¤« 1¡Á17 ¤Ç¤¢¤ë)¡£
150 .\"O .SH "CONFORMING TO"
151 .SH ½àµò
152 .\"O These functions are available under AIX, DG/UX, HP-UX, SCO, Solaris, Tru64.
153 .\"O They are called obsolete under most of these systems, and are
154 .\"O broken under Linux libc and glibc.
155 ¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢AIX, DG/UX, HP-UX, SCO, Solaris, Tru64 ¤Ç»ÈÍѲÄǽ¤Ç¤¢¤ë¡£
156 ¤³¤ì¤é¤Î¥·¥¹¥Æ¥à¤Î¤Û¤È¤ó¤É¤ÇÇѻߤµ¤ì¤¿¤³¤È¤Ë¤Ê¤Ã¤Æ¤ª¤ê¡¢
157 Linux ¤Î libc ¤ª¤è¤Ó glibc ¤Ç¤ÏÀµ¤·¤¯¼ÂÁõ¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
158 .\"O Some systems also have
159 .\"O .BR gsignal_r ()
160 .\"O and
161 .\"O .BR ssignal_r ().
162 .BR gsignal_r ()
163 ¤È
164 .BR ssignal_r ()
165 ¤¬¼ÂÁõ¤µ¤ì¤Æ¤¤¤ë¥·¥¹¥Æ¥à¤â¤¢¤ë¡£
166 .\"O .SH "SEE ALSO"
167 .SH ´ØÏ¢¹àÌÜ
168 .BR kill (2),
169 .BR signal (2),
170 .BR raise (3)