OSDN Git Service

(split) LDP: Restore and add Copyrights for draft pages
[linuxjm/LDP_man-pages.git] / draft / man3 / sigwait.3
index 9787872..32751c1 100644 (file)
@@ -1,6 +1,7 @@
 .\" Copyright (c) 2008, Linux Foundation, written by Michael Kerrisk
 .\"     <mtk.manpages@gmail.com>
 .\"
+.\" %%%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
+.\"
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
 .\"
 .\" Japanese Version Copyright (c) 2008  Akihiro MOTOKI
 .\"         all rights reserved.
 .\" Translated 2008-08-21, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.04
-.\" 
-.TH SIGWAIT 3 2010-09-10 "Linux" "Linux Programmer's Manual"
-.\"O .SH NAME
-.SH Ì¾Á°
-.\"O sigwait \- wait for a signal
-sigwait \- ¥·¥°¥Ê¥ë¤òÂÔ¤Ä
-.\"O .SH SYNOPSIS
-.SH ½ñ¼°
+.\"
+.TH SIGWAIT 3 2012\-07\-21 Linux "Linux Programmer's Manual"
+.SH 名前
+sigwait \- シグナルを待つ
+.SH 書式
 .nf
-.B #include <signal.h>
+\fB#include <signal.h>\fP
 
-.BI " int sigwait(const sigset_t *" set ", int *" sig );
+\fB int sigwait(const sigset_t *\fP\fIset\fP\fB, int *\fP\fIsig\fP\fB);\fP
 .fi
 .sp
 .in -4n
-.\"O Feature Test Macro Requirements for glibc (see
-.\"O .BR feature_test_macros (7)):
-glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
-.RB ( feature_test_macros (7)
-»²¾È):
+glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
 .in
 .sp
 .ad l
-.BR sigwait ():
-_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
+\fBsigwait\fP(): _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
 .ad b
-.\"O .SH DESCRIPTION
-.SH ÀâÌÀ
-.\"O The
-.\"O .BR sigwait ()
-.\"O function suspends execution of the calling thread until the
-.\"O delivery of one of the signals specified in the signal set
-.\"O .IR set .
-.\"O The function accepts the signal
-.\"O (removes it from the pending list of signals),
-.\"O and returns the signal number in
-.\"O .IR sig .
-.BR sigwait ()
-´Ø¿ô¤Ï¡¢¥·¥°¥Ê¥ë½¸¹ç
-.I set
-¤Ç»ØÄꤵ¤ì¤¿¥·¥°¥Ê¥ë¤Î°ì¤Ä¤¬ÇÛÁ÷¤µ¤ì¤ë¤Þ¤Ç¡¢
-¸Æ¤Ó½Ð¤·¤¿¥¹¥ì¥Ã¥É¤Î¼Â¹Ô¤òÃæÃǤ¹¤ë¡£
-¤³¤Î´Ø¿ô¤Ï¤½¤Î¥·¥°¥Ê¥ë¤ò¼õ¤±¼è¤ê (¤Ä¤Þ¤ê¡¢½èÍýÂÔ¤Á¤Î¥·¥°¥Ê¥ë¤Î¥ê¥¹¥È
-¤«¤é¤½¤Î¥·¥°¥Ê¥ë¤òºï½ü¤·)¡¢¤½¤Î¥·¥°¥Ê¥ëÈÖ¹æ¤ò
-.I sig
-¤Ë³ÊǼ¤·¤ÆÊÖ¤¹¡£
+.SH 説明
+\fBsigwait\fP()  関数は、シグナル集合 \fIset\fP で指定されたシグナルの一つが処理待ち (pending) になるまで、
+呼び出したスレッドの実行を中断する。 この関数はそのシグナルを受け取り (つまり、処理待ちのシグナルのリスト
+からそのシグナルを削除し)、そのシグナル番号を \fIsig\fP に格納して返す。
 
-.\"O The operation of
-.\"O .BR sigwait ()
-.\"O is the same as
-.\"O .BR sigwaitinfo (),
-.\"O except that:
-.BR sigwait ()
-¤ÎÆ°ºî¤Ï
-.BR sigwaitinfo ()
-¤ÈƱ¤¸¤À¤¬¡¢°Ê²¼¤ÎÅÀ¤¬°Û¤Ê¤ë¡£
+\fBsigwait\fP()  の動作は \fBsigwaitinfo\fP(2)  と同じだが、以下の点が異なる。
 .IP * 2
-.\"O .BR sigwait ()
-.\"O only returns the signal number, rather than a
-.\"O .I siginfo_t
-.\"O structure describing the signal.
-.BR sigwait ()
-¤Ï¡¢¥·¥°¥Ê¥ë¤ÎÆâÍƤòɽ¤¹
-.I siginfo_t
-¹½Â¤ÂΤòÊÖ¤¹¤Î¤Ç¤Ï¤Ê¤¯¡¢Ã±¤Ë¥·¥°¥Ê¥ëÈÖ¹æ¤òÊÖ¤¹¡£
+\fBsigwait\fP()  は、シグナルの内容を表す \fIsiginfo_t\fP 構造体を返すのではなく、単にシグナル番号を返す。
 .IP *
-.\"O The return values of the two functions are different.
-ÊÖ¤êÃͤ¬
-.BR sigwaitinfo ()
-¤È¤Ï°Û¤Ê¤ë¡£
-.\"O .SH RETURN VALUE
-.SH ÊÖ¤êÃÍ
-.\"O On success,
-.\"O .BR sigwait ()
-.\"O returns 0.
-.\"O On error, it returns a positive error number (listed in ERRORS).
-À®¸ù¤¹¤ë¤È¡¢
-.BR sigwait ()
-¤Ï 0 ¤òÊÖ¤¹¡£
-¥¨¥é¡¼¤Î¾ì¹ç¡¢(¡Ö¥¨¥é¡¼¡×¤ÎÀá¤Î¥ê¥¹¥È¤Ë¤¢¤ë) Àµ¤Î¥¨¥é¡¼ÈÖ¹æ¤òÊÖ¤¹¡£
-.\"O .SH ERRORS
-.SH ¥¨¥é¡¼
-.TP
-.B EINVAL
+返り値が \fBsigwaitinfo\fP(2)  とは異なる。
+.SH 返り値
+成功すると、 \fBsigwait\fP()  は 0 を返す。 エラーの場合、(「エラー」の節のリストにある) 正のエラー番号を返す。
+.SH エラー
+.TP 
+\fBEINVAL\fP
 .\" Does not occur for glibc.
-.\"O .I set
-.\"O contains an invalid signal number.
-.I set
-¤Ë̵¸ú¤Ê¥·¥°¥Ê¥ëÈֹ椬Æþ¤Ã¤Æ¤¤¤ë¡£
-.\"O .SH CONFORMING TO
-.SH ½àµò
-POSIX.1-2001.
-.\"O .SH NOTES
-.SH Ãí°Õ
-.\"O .BR sigwait ()
-.\"O is implemented using
-.\"O .BR sigtimedwait (2).
-.BR sigwait ()
-¤Ï
-.BR sigtimedwait (2)
-¤ò»È¤Ã¤Æ¼ÂÁõ¤µ¤ì¤Æ¤¤¤ë¡£
-.\"O .SH EXAMPLES
-.SH Îã
-.\"O See
-.\"O .BR pthread_sigmask (3).
-.BR pthread_sigmask (3)
-¤ò»²¾È¡£
-.\"O .SH SEE ALSO
-.SH ´ØÏ¢¹àÌÜ
-.BR sigaction (2),
-.BR signalfd (2),
-.BR sigpending (2),
-.BR sigsuspend (2),
-.BR sigwaitinfo (2),
-.BR sigsetops (3),
-.BR signal (7)
+\fIset\fP に無効なシグナル番号が入っている。
+.SH 準拠
+POSIX.1\-2001.
+.SH 注意
+\fBsigwait\fP()  は \fBsigtimedwait\fP(2)  を使って実装されている。
+.SH 例
+\fBpthread_sigmask\fP(3)  を参照。
+.SH 関連項目
+\fBsigaction\fP(2), \fBsignalfd\fP(2), \fBsigpending\fP(2), \fBsigsuspend\fP(2),
+\fBsigwaitinfo\fP(2), \fBsigsetops\fP(3), \fBsignal\fP(7)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。