OSDN Git Service

(split) Apply minor changes from v3.32 to v3.35 in the upstream.
[linuxjm/LDP_man-pages.git] / release / man2 / tkill.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright (C) 2008 Michael Kerrisk <tmk.manpages@gmail.com>
4 .\" and Copyright 2003 Abhijit Menon-Sen <ams@wiw.org>
5 .\"
6 .\" Permission is granted to make and distribute verbatim copies of this
7 .\" manual provided the copyright notice and this permission notice are
8 .\" preserved on all copies.
9 .\"
10 .\" Permission is granted to copy and distribute modified versions of this
11 .\" manual under the conditions for verbatim copying, provided that the
12 .\" entire resulting derived work is distributed under the terms of a
13 .\" permission notice identical to this one.
14 .\"
15 .\" Since the Linux kernel and libraries are constantly changing, this
16 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
17 .\" responsibility for errors or omissions, or for damages resulting from
18 .\" the use of the information contained herein.  The author(s) may not
19 .\" have taken the same level of care in the production of this manual,
20 .\" which is licensed free of charge, as they might when working
21 .\" professionally.
22 .\"
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
25 .\"
26 .\" 2004-05-31, added tgkill, ahu, aeb
27 .\" 2008-01-15 mtk -- rewote DESCRIPTION
28 .\"
29 .\" Japanese Version Copyright (c) 2003 Akihiro MOTOKI, all rights reserved.
30 .\" Translated 2003-03-05, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
31 .\" Updated 2005-02-28, Akihiro MOTOKI
32 .\"
33 .TH TKILL 2 2011-09-18 "Linux" "Linux Programmer's Manual"
34 .SH Ì¾Á°
35 tkill, tgkill \- ¥¹¥ì¥Ã¥É¤Ë¥·¥°¥Ê¥ë¤òÁ÷¤ë
36 .SH ½ñ¼°
37 .nf
38 .BI "int tkill(int " tid ", int " sig );
39 .sp
40 .BI "int tgkill(int " tgid ", int " tid ", int " sig );
41 .fi
42 .SH ÀâÌÀ
43 .BR tgkill ()
44 ¤Ï¥¹¥ì¥Ã¥É¡¦¥°¥ë¡¼¥×
45 .I tgid
46 ¤Ë°¤¹¤ë¥¹¥ì¥Ã¥É ID ¤¬
47 .I tid
48 ¤Î¥¹¥ì¥Ã¥É¤Ë¥·¥°¥Ê¥ë
49 .I sig
50 ¤òÁ÷¤ë¡£
51 (¤³¤ì¤ËÂФ·¡¢
52 .BR kill (2)
53 ¤Ï°ì¤Ä¤Î¥×¥í¥»¥¹ (¤¹¤Ê¤ï¤Á¡¢¥¹¥ì¥Ã¥É¡¦¥°¥ë¡¼¥×) ¤Ë¤Þ¤È¤á¤Æ¥·¥°¥Ê¥ë¤ò
54 Á÷¤ë¤Î¤Ë¤À¤±ÍøÍѤǤ­¤ë¡£
55 .BR kill (2)
56 ¤ÇÁ÷¿®¤µ¤ì¤¿¥·¥°¥Ê¥ë¤Ï¥×¥í¥»¥¹Æâ¤ÎǤ°Õ¤Î¥¹¥ì¥Ã¥É¤ËÇÛÁ÷¤µ¤ì¤ë¡£)
57
58 .BR tkill ()
59 ¤Ï¤â¤¦»È¤ï¤ì¤Ê¤¯¤Ê¤Ã¤¿
60 .BR tgkill ()
61 ¤ÎÀèÁĤǤ¢¤ë¡£
62 .BR tkill ()
63 ¤Ç¤Ï¥·¥°¥Ê¥ë¤ÎÁ÷¤êÀè¤Î¥¹¥ì¥Ã¥É ID ¤·¤«»ØÄê¤Ç¤­¤Ê¤¤¡£
64 ¤½¤Î¤¿¤á¡¢¥¹¥ì¥Ã¥É¤¬½ªÎ»¤·¤Æ¡¢¤½¤Î¥¹¥ì¥Ã¥É ID ¤¬ºÆÍøÍѤµ¤ì¤ë¾ì¹ç¤Ë¡¢
65 °Õ¿Þ¤·¤Ê¤¤¥¹¥ì¥Ã¥É¤Ë¥·¥°¥Ê¥ë¤¬Á÷¤é¤ì¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
66 ¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Î»ÈÍѤÏÈò¤±¤ë¤³¤È¡£
67
68 .I tgid
69 ¤Ë \-1 ¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¡¢
70 .BR tgkill ()
71 ¤Ï
72 .BR tkill ()
73 ¤ÈÅù²Á¤Ç¤¢¤ë¡£
74
75 ¤³¤ì¤é¤Ï¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ø¤ÎľÀܤΥ¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Ç¤¢¤ê¡¢
76 ¥¹¥ì¥Ã¥É¡¦¥é¥¤¥Ö¥é¥êÆâÉô¤Ç¤Î»ÈÍѤò°Õ¿Þ¤·¤¿¤â¤Î¤Ç¤¢¤ë¡£
77 .SH ÊÖ¤êÃÍ
78 À®¸ù¤·¤¿¾ì¹ç¡¢0 ¤¬ÊÖ¤µ¤ì¤ë¡£¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¡¢\-1 ¤¬ÊÖ¤µ¤ì¡¢
79 \fIerrno\fP ¤¬Å¬ÀÚ¤ËÀßÄꤵ¤ì¤ë¡£
80 .SH ¥¨¥é¡¼
81 .TP
82 .B EINVAL
83 »ØÄꤵ¤ì¤¿¥¹¥ì¥Ã¥É ID¡¢¥¹¥ì¥Ã¥É¥°¥ë¡¼¥× ID¡¢¥·¥°¥Ê¥ë¤¬ÉÔÀµ¤Ç¤¢¤Ã¤¿¡£
84 .TP
85 .B EPERM
86 µö²Ä¤¬¤Ê¤«¤Ã¤¿¡£¤É¤Î¤è¤¦¤Êµö²Ä¤¬É¬Íפ«¤Ë¤Ä¤¤¤Æ¤Ï¡¢
87 .BR kill (2)
88 ¤ò»²¾È¤Î¤³¤È¡£
89 .TP
90 .B ESRCH
91 »ØÄꤵ¤ì¤¿¥¹¥ì¥Ã¥ÉID (¤È¥¹¥ì¥Ã¥É¡¦¥°¥ë¡¼¥×ID) ¤ò»ý¤Ä¥×¥í¥»¥¹¤¬Â¸ºß¤·¤Ê¤¤¡£
92 .SH ¥Ð¡¼¥¸¥ç¥ó
93 .BR tkill ()
94 ¤Ï Linux 2.4.19 / 2.5.4 °Ê¹ß¤Ç¥µ¥Ý¡¼¥È¤µ¤ì¡¢
95 .BR tgkill ()
96 ¤Ï Linux 2.5.75 ¤ÇÄɲ䵤줿¡£
97 .SH ½àµò
98 .BR tkill ()
99 ¤È
100 .BR tgkill ()
101 ¤Ï Linux ¸ÇÍ­¤Ç¤¢¤ê¡¢
102 °Ü¿¢¤òÁÛÄꤷ¤¿¥×¥í¥°¥é¥à¤Ç¤Ï»ÈÍѤ¹¤Ù¤­¤Ç¤Ï¤Ê¤¤¡£
103 .SH Ãí°Õ
104 ¥¹¥ì¥Ã¥É¡¦¥°¥ë¡¼¥×¤ÎÀâÌÀ¤Ë¤Ä¤¤¤Æ¤Ï
105 .BR clone (2)
106 ¤Î
107 .B CLONE_THREAD
108 ¤ÎÀâÌÀ¤ò»²¾È¤Î¤³¤È¡£
109
110 glibc ¤Ï¤³¤ì¤é¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤ËÂФ¹¤ë¥é¥Ã¥Ñ¡¼´Ø¿ô¤òÄ󶡤·¤Æ¤¤¤Ê¤¤¡£
111 .BR syscall (2)
112 ¤ò»È¤Ã¤Æ¸Æ¤Ó½Ð¤¹¤³¤È¡£
113 .SH ´ØÏ¢¹àÌÜ
114 .BR clone (2),
115 .BR gettid (2),
116 .BR kill (2),
117 .BR rt_sigqueueinfo (2)