OSDN Git Service

(split) DP: release pages (catch up to 3.50).
[linuxjm/LDP_man-pages.git] / release / man2 / sigreturn.2
1 .\" Copyright (C) 1995, Thomas K. Dyas <tdyas@eden.rutgers.edu>
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
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_END
24 .\"
25 .\" Created   Sat Aug 21 1995     Thomas K. Dyas <tdyas@eden.rutgers.edu>
26 .\" Modified Tue Oct 22 22:09:03 1996 by Eric S. Raymond <esr@thyrsus.com>
27 .\" 2008-06-26, mtk, added some more detail on the work done by sigreturn()
28 .\"
29 .\"*******************************************************************
30 .\"
31 .\" This file was generated with po4a. Translate the source file.
32 .\"
33 .\"*******************************************************************
34 .TH SIGRETURN 2 2008\-06\-26 Linux "Linux Programmer's Manual"
35 .SH 名前
36 sigreturn \- シグナル・ハンドラから返り、スタックを掃除する
37 .SH 書式
38 \fBint sigreturn(unsigned long \fP\fI__unused\fP\fB);\fP
39 .SH 説明
40 Linux カーネルは、 シグナル・ハンドラ用にスタック・フレームを作成する際、 \fBsigreturn\fP()
41 をスタック・フレームに挿入し、シグナル・ハンドラが返るときに \fBsigreturn\fP()  が呼ばれるようにする。
42
43 \fBsigreturn\fP()  は、シグナル・ハンドラを起動するために行ったことの全て \(em プロセスのシグナルマスクの変更、スタックの切り替え
44 (\fBsigaltstack\fP(2)  参照) \(em の取り消しを行う。 プロセスのシグナルマスクの復元、スタックの切り替え、
45 プロセスのコンテキスト (レジスタ、プロセッサ・フラグ) の復元を行い、 プロセスがシグナルにより割り込まれた場所からそのまま実行を
46 再開できるようにする。
47 .SH 返り値
48 \fBsigreturn\fP()  が返ることはない。
49 .SH ファイル
50 /usr/src/linux/arch/i386/kernel/signal.c
51 .br
52 /usr/src/linux/arch/alpha/kernel/entry.S
53 .SH 準拠
54 \fBsigreturn\fP()  は Linux 特有であり、移植を意図したプログラムでは使用してはいけない。
55 .SH 注意
56 \fBsigreturn\fP()  コールは、シグナル・ハンドラを実装するためにカーネルにより使用される。 これを直接呼び出しては \fB決して\fP
57 いけない。さらに \fI__unused\fP 引き数がどのように使われるかはそのアーキテクチャに依存して変化する。
58 .SH 関連項目
59 \fBkill\fP(2), \fBsigaltstack\fP(2), \fBsignal\fP(2), \fBsignal\fP(7)
60 .SH この文書について
61 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
62 である。プロジェクトの説明とバグ報告に関する情報は
63 http://www.kernel.org/doc/man\-pages/ に書かれている。