OSDN Git Service

44bd75d5dfafa7db4a1c7c7b5044c7e32c48d80d
[linuxjm/LDP_man-pages.git] / draft / 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 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" License.
24 .\" Modified Sat Jul 24 18:40:56 1993 by Rik Faith (faith@cs.unc.edu)
25 .\" Modified 1995 by Mike Battersby (mib@deakin.edu.au)
26 .\"
27 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
28 .\"     all rights reserved.
29 .\" Translated 1997-12-25, HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
30 .\" Updated 2008-08-08, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.05
31 .\"
32 .TH RAISE 3 2008-10-17 "GNU" "Linux Programmer's Manual"
33 .\"O .SH NAME
34 .SH 名前
35 .\"O raise \- send a signal to the caller
36 raise \- 呼び出し元にシグナルを送る
37 .\"O .SH SYNOPSIS
38 .SH 書式
39 .nf
40 .B #include <signal.h>
41 .sp
42 .BI "int raise(int " sig );
43 .fi
44 .\"O .SH DESCRIPTION
45 .SH 説明
46 .\"O The
47 .\"O .BR raise ()
48 .\"O function sends a signal to the calling process or thread.
49 .\"O In a single-threaded program it is equivalent to
50 .BR raise ()
51 関数は、呼び出し元のプロセスもしくはスレッドにシグナルを送る。
52 シングルスレッドのプログラムでは、以下と等価である。
53 .sp
54 .in +4n
55 .nf
56 kill(getpid(), sig);
57 .fi
58 .in
59 .PP
60 .\"O In a multithreaded program it is equivalent to
61 マルチスレッドのプログラムでは、以下と等価である。
62 .sp
63 .in +4n
64 .nf
65 pthread_kill(pthread_self(), sig);
66 .fi
67 .in
68 .PP
69 .\"O If the signal causes a handler to be called,
70 .\"O .BR raise ()
71 .\"O will only return after the signal handler has returned.
72 シグナルに起因してシグナル・ハンドラが呼び出される場合には、
73 .BR raise ()
74 が返るのは必ずシグナル・ハンドラが返った後になる。
75 .\"O .SH "RETURN VALUE"
76 .SH 返り値
77 .\"O .BR raise ()
78 .\"O returns 0 on success, and nonzero for failure.
79 成功した場合は 0 を、失敗した場合は 0 以外の値を返す。
80 .\"O .SH "CONFORMING TO"
81 .SH 準拠
82 C89, C99, POSIX.1-2001.
83 .\"O .SH "SEE ALSO"
84 .SH 関連項目
85 .BR getpid (2),
86 .BR kill (2),
87 .BR sigaction (2),
88 .BR signal (2),
89 .BR pthread_kill (3),
90 .BR signal (7)