OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / release / man3 / raise.3
1 .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
2 .\" and Copyright (C) 2008 Michael Kerrisk <mtk.manpages@gmail.com>
3 .\"
4 .\" %%%LICENSE_START(VERBATIM)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\" %%%LICENSE_END
25 .\"
26 .\" Modified Sat Jul 24 18:40:56 1993 by Rik Faith (faith@cs.unc.edu)
27 .\" Modified 1995 by Mike Battersby (mib@deakin.edu.au)
28 .\"
29 .\"*******************************************************************
30 .\"
31 .\" This file was generated with po4a. Translate the source file.
32 .\"
33 .\"*******************************************************************
34 .\"
35 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
36 .\"     all rights reserved.
37 .\" Translated 1997-12-25, HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
38 .\" Updated 2008-08-08, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.05
39 .\" Updated 2012-05-04, Akihiro MOTOKI <amotoki@gmail.com>
40 .\"
41 .TH RAISE 3 2014\-03\-10 GNU "Linux Programmer's Manual"
42 .SH 名前
43 raise \- 呼び出し元にシグナルを送る
44 .SH 書式
45 .nf
46 \fB#include <signal.h>\fP
47 .sp
48 \fBint raise(int \fP\fIsig\fP\fB);\fP
49 .fi
50 .SH 説明
51 \fBraise\fP()  関数は、呼び出し元のプロセスもしくはスレッドにシグナルを送る。 シングルスレッドのプログラムでは、以下と等価である。
52 .sp
53 .in +4n
54 .nf
55 kill(getpid(), sig);
56 .fi
57 .in
58 .PP
59 マルチスレッドのプログラムでは、以下と等価である。
60 .sp
61 .in +4n
62 .nf
63 pthread_kill(pthread_self(), sig);
64 .fi
65 .in
66 .PP
67 シグナルに起因してシグナルハンドラーが呼び出される場合には、 \fBraise\fP()  が返るのは必ずシグナルハンドラーが返った後になる。
68 .SH 返り値
69 成功した場合は 0 を、失敗した場合は 0 以外の値を返す。
70 .SH 属性
71 .SS "マルチスレッディング (pthreads(7) 参照)"
72 \fBraise\fP() 関数はスレッドセーフである。
73 .SH 準拠
74 C89, C99, POSIX.1\-2001.
75 .SH 注意
76 .\" 2.3.2 used the obsolete tkill(), if available.
77 glibc バージョン 2.3.3 以降では、カーネルが \fBtgkill\fP(2) システムコールをサポートしている場合は\fBraise\fP() は
78 \fBtgkill\fP(2) を使って実装されている。古いバージョンの glibc では、\fBraise\fP() は \fBkill\fP(2)
79 を使って実装されている。
80 .SH 関連項目
81 \fBgetpid\fP(2), \fBkill\fP(2), \fBsigaction\fP(2), \fBsignal\fP(2), \fBpthread_kill\fP(3),
82 \fBsignal\fP(7)
83 .SH この文書について
84 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部である。
85 プロジェクトの説明とバグ報告に関する情報は \%http://www.kernel.org/doc/man\-pages/ に書かれている。