1 .\" Copyright (C) 1995, Thomas K. Dyas <tdyas@eden.rutgers.edu>
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.
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.
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
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
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>
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
33 .\"WORD: signal handler シグナル・ハンドラ
34 .\"WORD: stack frame スタック・フレーム
36 .\"WORD: interrupt 割り込み
37 .\"WORD: architecture アーキテクチャ
39 .TH SIGRETURN 2 2008-06-26 "Linux" "Linux Programmer's Manual"
42 .\"O sigreturn \- return from signal handler and cleanup stack frame
43 sigreturn \- シグナル・ハンドラから返り、スタックを掃除する
46 .BI "int sigreturn(unsigned long " __unused );
49 .\"O When the Linux kernel creates the stack frame for a signal handler, a
52 .\"O is inserted into the stack frame so that upon
53 .\"O return from the signal handler,
57 シグナル・ハンドラ用にスタック・フレームを作成する際、
59 をスタック・フレームに挿入し、シグナル・ハンドラが返るときに
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.
74 は、シグナル・ハンドラを起動するために行ったことの全て \(em
75 プロセスのシグナルマスクの変更、スタックの切り替え
78 プロセスのシグナルマスクの復元、スタックの切り替え、
79 プロセスのコンテキスト (レジスタ、プロセッサ・フラグ) の復元を行い、
80 プロセスがシグナルにより割り込まれた場所からそのまま実行を
82 .\"O .SH "RETURN VALUE"
90 /usr/src/linux/arch/i386/kernel/signal.c
92 /usr/src/linux/arch/alpha/kernel/entry.S
93 .\"O .SH "CONFORMING TO"
96 .\"O is specific to Linux and should not be used in programs intended to be
99 は Linux 特有であり、移植を意図したプログラムでは使用してはいけない。
103 .\"O .BR sigreturn ()
104 .\"O call is used by the kernel to implement signal handlers.
107 .\"O be called directly.
108 .\"O Better yet, the specific use of the
110 .\"O argument varies depending on the architecture.
112 コールは、シグナル・ハンドラを実装するためにカーネルにより使用される。
117 引き数がどのように使われるかはそのアーキテクチャに依存して変化する。