OSDN Git Service

09e4c5f914a4b4dc4b1474a920ad40d196819285
[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 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
5 .\"     all rights reserved.
6 .\" Translated 1997-12-25, HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
7 .\" Updated 2008-08-08, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.05
8 .\"
9 .\" Permission is granted to make and distribute verbatim copies of this
10 .\" manual provided the copyright notice and this permission notice are
11 .\" preserved on all copies.
12 .\"
13 .\" Permission is granted to copy and distribute modified versions of this
14 .\" manual under the conditions for verbatim copying, provided that the
15 .\" entire resulting derived work is distributed under the terms of a
16 .\" permission notice identical to this one.
17 .\"
18 .\" Since the Linux kernel and libraries are constantly changing, this
19 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
20 .\" responsibility for errors or omissions, or for damages resulting from
21 .\" the use of the information contained herein.  The author(s) may not
22 .\" have taken the same level of care in the production of this manual,
23 .\" which is licensed free of charge, as they might when working
24 .\" professionally.
25 .\"
26 .\" Formatted or processed versions of this manual, if unaccompanied by
27 .\" the source, must acknowledge the copyright and authors of this work.
28 .\" License.
29 .\" Modified Sat Jul 24 18:40:56 1993 by Rik Faith (faith@cs.unc.edu)
30 .\" Modified 1995 by Mike Battersby (mib@deakin.edu.au)
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)