OSDN Git Service

(split) Convert contrib and obsolete pages to UTF-8.
[linuxjm/LDP_man-pages.git] / obsolete / man3 / killpg.3
1 .\" (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
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 .\" License.
23 .\" Modified Sat Jul 24 19:04:55 1993 by Rik Faith (faith@cs.unc.edu)
24 .\" Modified 2004-11-11, Michael Kerrisk, <mtk-manpages@gmx.net>
25 .\"
26 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
27 .\"     all rights reserved.
28 .\" Translated Fri Dec 26 15:29:06 JST 1997
29 .\"     by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
30 .\" Updated & Modified Thu Feb 17 00:17:33 JST 2005
31 .\"     by Yuichi SATO <ysato444@yahoo.co.jp>
32 .\"
33 .TH KILLPG 3  1993-04-04 "GNU" "Linux Programmer's Manual"
34 .\"O .SH NAME
35 .SH 名前
36 .\"O killpg \- send signal to all members of a process group
37 killpg \- プロセスグループの全メンバにシグナルを送る
38 .\"O .SH SYNOPSIS
39 .SH 書式
40 .nf
41 .B #include <signal.h>
42 .sp
43 .BI "int killpg(pid_t " pgrp ", int " signal );
44 .fi
45 .\"O .SH DESCRIPTION
46 .SH 説明
47 .\"O The
48 .\"O .BR killpg ()
49 .\"O function causes signal
50 .\"O .I signal
51 .\"O to be sent to all the processes in the process group
52 .\"O .I pgrp
53 .\"O or to the processes' own process group if
54 .\"O .I pgrp
55 .\"O is equal to zero.
56 .BR killpg ()
57 関数は、プロセスグループ
58 .I pgrp
59 の全てのプロセスにシグナル
60 .I signal
61 を送る。
62 もし
63 .I pgrp
64 が 0 ならば、そのプロセス自身のプロセスグループにシグナルを送る。
65 .PP
66 .\"O If
67 .\"O .I pgrp
68 .\"O is greater than 1, it is equivalent to:
69 .I pgrp
70 が 1 より大きい場合は、以下の呼び出しと等価である。
71 .nf
72 .sp
73 .in +0.5i
74 .B kill(\-pgrp , signal);
75 .in -0.5i
76 .fi
77 .\"O .SH "RETURN VALUE"
78 .SH 返り値
79 .\"O The value returned is \-1 on error, or 0 for success.
80 エラーが発生した場合は \-1 が、成功した場合は 0 が返される。
81 .\"O .SH ERRORS
82 .SH エラー
83 .\"O Errors are returned in
84 .\"O .I errno
85 .\"O and can be one of the following:
86 以下に示すエラーの一つが
87 .I errno
88 に返される:
89 .TP
90 .B EINVAL
91 .\"O for an invalid signal,
92 シグナルが無効である。
93 .TP
94 .B EPERM
95 .\"O if the userid of the calling process is not equal to that of the
96 .\"O process the signal is sent to, and the userid is not that of the
97 .\"O superuser.
98 呼び出しプロセスのユーザ ID が、シグナルを送られるプロセスのユーザ ID と
99 一致せず、かつユーザ ID がスーパーユーザの ID ではない。
100 .TP
101 .B ESRCH
102 .\"O for a process group which does not exist, and
103 プロセスグループが存在しない。
104 .\"O .SH "CONFORMING TO"
105 .SH 準拠
106 SUSv2, POSIX.1-2001
107 .\"O .SH "SEE ALSO"
108 .SH 関連項目
109 .BR kill (2),
110 .BR signal (2),
111 .BR sigqueue (2),
112 .BR signal (7)