OSDN Git Service

(split) Import translated manuals from JM CVS Repository.
[linuxjm/LDP_man-pages.git] / draft / man2 / sigreturn.2
1 .\" Copyright (C) 1995, Thomas K. Dyas <tdyas@eden.rutgers.edu>
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 .\"
23 .\" Created   Sat Aug 21 1995     Thomas K. Dyas <tdyas@eden.rutgers.edu>
24 .\" Modified Tue Oct 22 22:09:03 1996 by Eric S. Raymond <esr@thyrsus.com>
25 .\"
26 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
27 .\"         all rights reserved.
28 .\" Translated 1997-03-03, HANATAKA Shinya <hanataka@abyss.rim.or.jp>
29 .\" Updated 2005-09-04, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
30 .\" Updated 2008-08-07, Akihiro MOTOKI, LDP v3.05
31 .\"
32 .\"WORD:        signal                  ¥·¥°¥Ê¥ë
33 .\"WORD:        signal handler          ¥·¥°¥Ê¥ë¡¦¥Ï¥ó¥É¥é
34 .\"WORD:        stack frame             ¥¹¥¿¥Ã¥¯¡¦¥Õ¥ì¡¼¥à
35 .\"WORD:        kernel                  ¥«¡¼¥Í¥ë
36 .\"WORD:        interrupt               ³ä¤ê¹þ¤ß
37 .\"WORD:        architecture            ¥¢¡¼¥­¥Æ¥¯¥Á¥ã
38 .\"
39 .TH SIGRETURN 2 2008-06-26 "Linux" "Linux Programmer's Manual"
40 .\"O .SH NAME
41 .SH Ì¾Á°
42 .\"O sigreturn \- return from signal handler and cleanup stack frame
43 sigreturn \- ¥·¥°¥Ê¥ë¡¦¥Ï¥ó¥É¥é¤«¤éÊ֤ꡢ¥¹¥¿¥Ã¥¯¤òÁݽü¤¹¤ë
44 .\"O .SH SYNOPSIS
45 .SH ½ñ¼°
46 .BI "int sigreturn(unsigned long " __unused );
47 .\"O .SH DESCRIPTION
48 .SH ÀâÌÀ
49 .\"O When the Linux kernel creates the stack frame for a signal handler, a
50 .\"O call to
51 .\"O .BR sigreturn ()
52 .\"O is inserted into the stack frame so that upon
53 .\"O return from the signal handler,
54 .\"O .BR sigreturn ()
55 .\"O will be called.
56 Linux ¥«¡¼¥Í¥ë¤Ï¡¢
57 ¥·¥°¥Ê¥ë¡¦¥Ï¥ó¥É¥éÍѤ˥¹¥¿¥Ã¥¯¡¦¥Õ¥ì¡¼¥à¤òºîÀ®¤¹¤ëºÝ¡¢
58 .BR sigreturn ()
59 ¤ò¥¹¥¿¥Ã¥¯¡¦¥Õ¥ì¡¼¥à¤ËÁÞÆþ¤·¡¢¥·¥°¥Ê¥ë¡¦¥Ï¥ó¥É¥é¤¬ÊÖ¤ë¤È¤­¤Ë
60 .BR sigreturn ()
61 ¤¬¸Æ¤Ð¤ì¤ë¤è¤¦¤Ë¤¹¤ë¡£
62
63 .\"O This
64 .\"O .BR sigreturn ()
65 .\"O call undoes everything that was
66 .\"O done\(emchanging the process's signal mask, switching stacks (see
67 .\"O .BR sigaltstack "(2))\(emin "
68 .\"O order to invoke the signal handler:
69 .\"O it restores the process's signal mask, switches stacks,
70 .\"O and restores the process's context (registers, processor flags),
71 .\"O so that the process directly resumes execution
72 .\"O at the point where it was interrupted by the signal.
73 .BR sigreturn ()
74 ¤Ï¡¢¥·¥°¥Ê¥ë¡¦¥Ï¥ó¥É¥é¤òµ¯Æ°¤¹¤ë¤¿¤á¤Ë¹Ô¤Ã¤¿¤³¤È¤ÎÁ´¤Æ \(em
75 ¥×¥í¥»¥¹¤Î¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤ÎÊѹ¹¡¢¥¹¥¿¥Ã¥¯¤ÎÀÚ¤êÂؤ¨
76 .RB ( sigaltstack (2)
77 »²¾È) \(em ¤Î¼è¤ê¾Ã¤·¤ò¹Ô¤¦¡£
78 ¥×¥í¥»¥¹¤Î¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤ÎÉü¸µ¡¢¥¹¥¿¥Ã¥¯¤ÎÀÚ¤êÂؤ¨¡¢
79 ¥×¥í¥»¥¹¤Î¥³¥ó¥Æ¥­¥¹¥È (¥ì¥¸¥¹¥¿¡¢¥×¥í¥»¥Ã¥µ¡¦¥Õ¥é¥°) ¤ÎÉü¸µ¤ò¹Ô¤¤¡¢
80 ¥×¥í¥»¥¹¤¬¥·¥°¥Ê¥ë¤Ë¤è¤ê³ä¤ê¹þ¤Þ¤ì¤¿¾ì½ê¤«¤é¤½¤Î¤Þ¤Þ¼Â¹Ô¤ò
81 ºÆ³«¤Ç¤­¤ë¤è¤¦¤Ë¤¹¤ë¡£
82 .\"O .SH "RETURN VALUE"
83 .SH ÊÖ¤êÃÍ
84 .\"O .BR sigreturn ()
85 .\"O never returns.
86 .BR sigreturn ()
87 ¤¬Ê֤뤳¤È¤Ï¤Ê¤¤¡£
88 .\"O .SH FILES
89 .SH ¥Õ¥¡¥¤¥ë
90 /usr/src/linux/arch/i386/kernel/signal.c
91 .br
92 /usr/src/linux/arch/alpha/kernel/entry.S
93 .\"O .SH "CONFORMING TO"
94 .SH ½àµò
95 .\"O .BR sigreturn ()
96 .\"O is specific to Linux and should not be used in programs intended to be
97 .\"O portable.
98 .BR sigreturn ()
99 ¤Ï Linux ÆÃÍ­¤Ç¤¢¤ê¡¢°Ü¿¢¤ò°Õ¿Þ¤·¤¿¥×¥í¥°¥é¥à¤Ç¤Ï»ÈÍѤ·¤Æ¤Ï¤¤¤±¤Ê¤¤¡£
100 .\"O .SH NOTES
101 .SH Ãí°Õ
102 .\"O The
103 .\"O .BR sigreturn ()
104 .\"O call is used by the kernel to implement signal handlers.
105 .\"O It should
106 .\"O .B never
107 .\"O be called directly.
108 .\"O Better yet, the specific use of the
109 .\"O .I __unused
110 .\"O argument varies depending on the architecture.
111 .BR sigreturn ()
112 ¥³¡¼¥ë¤Ï¡¢¥·¥°¥Ê¥ë¡¦¥Ï¥ó¥É¥é¤ò¼ÂÁõ¤¹¤ë¤¿¤á¤Ë¥«¡¼¥Í¥ë¤Ë¤è¤ê»ÈÍѤµ¤ì¤ë¡£
113 ¤³¤ì¤òľÀܸƤӽФ·¤Æ¤Ï
114 .B ·è¤·¤Æ
115 ¤¤¤±¤Ê¤¤¡£¤µ¤é¤Ë
116 .I __unused
117 °ú¤­¿ô¤¬¤É¤Î¤è¤¦¤Ë»È¤ï¤ì¤ë¤«¤Ï¤½¤Î¥¢¡¼¥­¥Æ¥¯¥Á¥ã¤Ë°Í¸¤·¤ÆÊѲ½¤¹¤ë¡£
118 .\"O .SH "SEE ALSO"
119 .SH ´ØÏ¢¹àÌÜ
120 .BR kill (2),
121 .BR sigaltstack (2),
122 .BR signal (2),
123 .BR signal (7)