.\" Copyright (C) 1995, Thomas K. Dyas .\" .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" .\" Created Sat Aug 21 1995 Thomas K. Dyas .\" Modified Tue Oct 22 22:09:03 1996 by Eric S. Raymond .\" .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya .\" all rights reserved. .\" Translated 1997-03-03, HANATAKA Shinya .\" Updated 2005-09-04, Akihiro MOTOKI .\" Updated 2008-08-07, Akihiro MOTOKI, LDP v3.05 .\" .\"WORD: signal シグナル .\"WORD: signal handler シグナル・ハンドラ .\"WORD: stack frame スタック・フレーム .\"WORD: kernel カーネル .\"WORD: interrupt 割り込み .\"WORD: architecture アーキテクチャ .\" .TH SIGRETURN 2 2008-06-26 "Linux" "Linux Programmer's Manual" .\"O .SH NAME .SH 名前 .\"O sigreturn \- return from signal handler and cleanup stack frame sigreturn \- シグナル・ハンドラから返り、スタックを掃除する .\"O .SH SYNOPSIS .SH 書式 .BI "int sigreturn(unsigned long " __unused ); .\"O .SH DESCRIPTION .SH 説明 .\"O When the Linux kernel creates the stack frame for a signal handler, a .\"O call to .\"O .BR sigreturn () .\"O is inserted into the stack frame so that upon .\"O return from the signal handler, .\"O .BR sigreturn () .\"O will be called. Linux カーネルは、 シグナル・ハンドラ用にスタック・フレームを作成する際、 .BR sigreturn () をスタック・フレームに挿入し、シグナル・ハンドラが返るときに .BR sigreturn () が呼ばれるようにする。 .\"O This .\"O .BR sigreturn () .\"O call undoes everything that was .\"O done\(emchanging the process's signal mask, switching stacks (see .\"O .BR sigaltstack "(2))\(emin " .\"O order to invoke the signal handler: .\"O it restores the process's signal mask, switches stacks, .\"O and restores the process's context (registers, processor flags), .\"O so that the process directly resumes execution .\"O at the point where it was interrupted by the signal. .BR sigreturn () は、シグナル・ハンドラを起動するために行ったことの全て \(em プロセスのシグナルマスクの変更、スタックの切り替え .RB ( sigaltstack (2) 参照) \(em の取り消しを行う。 プロセスのシグナルマスクの復元、スタックの切り替え、 プロセスのコンテキスト (レジスタ、プロセッサ・フラグ) の復元を行い、 プロセスがシグナルにより割り込まれた場所からそのまま実行を 再開できるようにする。 .\"O .SH "RETURN VALUE" .SH 返り値 .\"O .BR sigreturn () .\"O never returns. .BR sigreturn () が返ることはない。 .\"O .SH FILES .SH ファイル /usr/src/linux/arch/i386/kernel/signal.c .br /usr/src/linux/arch/alpha/kernel/entry.S .\"O .SH "CONFORMING TO" .SH 準拠 .\"O .BR sigreturn () .\"O is specific to Linux and should not be used in programs intended to be .\"O portable. .BR sigreturn () は Linux 特有であり、移植を意図したプログラムでは使用してはいけない。 .\"O .SH NOTES .SH 注意 .\"O The .\"O .BR sigreturn () .\"O call is used by the kernel to implement signal handlers. .\"O It should .\"O .B never .\"O be called directly. .\"O Better yet, the specific use of the .\"O .I __unused .\"O argument varies depending on the architecture. .BR sigreturn () コールは、シグナル・ハンドラを実装するためにカーネルにより使用される。 これを直接呼び出しては .B 決して いけない。さらに .I __unused 引き数がどのように使われるかはそのアーキテクチャに依存して変化する。 .\"O .SH "SEE ALSO" .SH 関連項目 .BR kill (2), .BR sigaltstack (2), .BR signal (2), .BR signal (7)