OSDN Git Service

(split) LDP: Restore and add Copyrights for draft pages
[linuxjm/LDP_man-pages.git] / draft / man2 / sigreturn.2
index 13c9172..890eea2 100644 (file)
@@ -1,5 +1,6 @@
 .\" Copyright (C) 1995, Thomas K. Dyas <tdyas@eden.rutgers.edu>
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" 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.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
 .\" Created   Sat Aug 21 1995     Thomas K. Dyas <tdyas@eden.rutgers.edu>
 .\" Modified Tue Oct 22 22:09:03 1996 by Eric S. Raymond <esr@thyrsus.com>
+.\" 2008-06-26, mtk, added some more detail on the work done by sigreturn()
+.\"
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
 .\"
 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
 .\"         all rights reserved.
 .\" Updated 2005-09-04, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
 .\" 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 ()
-¤¬¸Æ¤Ð¤ì¤ë¤è¤¦¤Ë¤¹¤ë¡£
+.TH SIGRETURN 2 2013\-07\-30 Linux "Linux Programmer's Manual"
+.SH 名前
+sigreturn \- シグナル・ハンドラから返り、スタックを掃除する
+.SH 書式
+\fBint sigreturn(unsigned long \fP\fI__unused\fP\fB);\fP
+.SH 説明
+Linux カーネルは、 シグナル・ハンドラ用にスタック・フレームを作成する際、 \fBsigreturn\fP()
+をスタック・フレームに挿入し、シグナル・ハンドラが返るときに \fBsigreturn\fP()  が呼ばれるようにする。
 
-.\"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 ¥Õ¥¡¥¤¥ë
+\fBsigreturn\fP()  は、シグナル・ハンドラを起動するために行ったことの全て \(em プロセスのシグナルマスクの変更、スタックの切り替え
+(\fBsigaltstack\fP(2)  参照) \(em の取り消しを行う。 プロセスのシグナルマスクの復元、スタックの切り替え、
+プロセスのコンテキスト (レジスタ、プロセッサ・フラグ) の復元を行い、 プロセスがシグナルにより割り込まれた場所からそのまま実行を
+再開できるようにする。
+.SH 返り値
+\fBsigreturn\fP()  が返ることはない。
+.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)
+.SH 準拠
+\fBsigreturn\fP()  は Linux 特有であり、移植を意図したプログラムでは使用してはいけない。
+.SH 注意
+\fBsigreturn\fP()  コールは、シグナル・ハンドラを実装するためにカーネルにより使用される。 これを直接呼び出しては \fB決して\fP
+いけない。さらに \fI__unused\fP 引き数がどのように使われるかはそのアーキテクチャに依存して変化する。
+.SH 関連項目
+\fBkill\fP(2), \fBrestart_syscall\fP(2), \fBsigaltstack\fP(2), \fBsignal\fP(2),
+\fBsignal\fP(7)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。