.\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de) .\" and Copyright (C) 2008 Michael Kerrisk .\" .\" %%%LICENSE_START(VERBATIM) .\" 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. .\" %%%LICENSE_END .\" .\" Modified Sat Jul 24 18:40:56 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified 1995 by Mike Battersby (mib@deakin.edu.au) .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .\" .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka .\" all rights reserved. .\" Translated 1997-12-25, HIROFUMI Nishizuka .\" Updated 2008-08-08, Akihiro MOTOKI , LDP v3.05 .\" Updated 2012-05-04, Akihiro MOTOKI .\" .TH RAISE 3 2014\-03\-10 GNU "Linux Programmer's Manual" .SH 名前 raise \- 呼び出し元にシグナルを送る .SH 書式 .nf \fB#include \fP .sp \fBint raise(int \fP\fIsig\fP\fB);\fP .fi .SH 説明 \fBraise\fP() 関数は、呼び出し元のプロセスもしくはスレッドにシグナルを送る。 シングルスレッドのプログラムでは、以下と等価である。 .sp .in +4n .nf kill(getpid(), sig); .fi .in .PP マルチスレッドのプログラムでは、以下と等価である。 .sp .in +4n .nf pthread_kill(pthread_self(), sig); .fi .in .PP シグナルに起因してシグナルハンドラーが呼び出される場合には、 \fBraise\fP() が返るのは必ずシグナルハンドラーが返った後になる。 .SH 返り値 成功した場合は 0 を、失敗した場合は 0 以外の値を返す。 .SH 属性 .SS "マルチスレッディング (pthreads(7) 参照)" \fBraise\fP() 関数はスレッドセーフである。 .SH 準拠 C89, C99, POSIX.1\-2001. .SH 注意 .\" 2.3.2 used the obsolete tkill(), if available. glibc バージョン 2.3.3 以降では、カーネルが \fBtgkill\fP(2) システムコールをサポートしている場合は\fBraise\fP() は \fBtgkill\fP(2) を使って実装されている。古いバージョンの glibc では、\fBraise\fP() は \fBkill\fP(2) を使って実装されている。 .SH 関連項目 \fBgetpid\fP(2), \fBkill\fP(2), \fBsigaction\fP(2), \fBsignal\fP(2), \fBpthread_kill\fP(3), \fBsignal\fP(7) .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部である。 プロジェクトの説明とバグ報告に関する情報は \%http://www.kernel.org/doc/man\-pages/ に書かれている。