.\" Copyright (c) 2010 Michael Kerrisk, .\" .\" %%%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. .\" .\" 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. .\" %%%LICENSE_END .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .\" .\" Japanese Version Copyright (c) 2012 Akihiro MOTOKI .\" all rights reserved. .\" Translated 2012-05-04, Akihiro MOTOKI .\" .TH PTHREAD_SIGQUEUE 3 2017\-09\-15 Linux "Linux Programmer's Manual" .SH 名前 pthread_sigqueue \- スレッドに対するシグナルとデータをキューに入れる .SH 書式 .nf \fB#include \fP \fB#include \fP .PP \fBint pthread_sigqueue(pthread_t \fP\fIthread\fP\fB, int \fP\fIsig\fP\fB,\fP \fB const union sigval \fP\fIvalue\fP\fB);\fP .fi .PP \fI\-pthread\fP を付けてコンパイルとリンクを行う。 .PP .RS -4 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7) 参照): .RE .PP \fBpthread_sigqueue\fP(): _GNU_SOURCE .SH 説明 \fBpthread_sigqueue\fP() 関数は \fBsigqueue\fP(3) と同様の処理を実行するが、 プロセスにシグナルを送信するのではなく、呼び出したスレッドと 同じプロセス内のスレッドにシグナルを送信する。 .PP \fIthread\fP 引数は、呼び出し側と同じプロセスのスレッドの ID である。 \fIsig\fP 引数は送信するシグナルを指定する。 \fIvalue\fP 引数はシグナルと一緒に渡すデータを指定する。 詳細は \fBsigqueue\fP(3) を参照。 .SH 返り値 成功すると、 \fBpthread_sigmask\fP() は 0 を返す。 エラーの場合、エラー番号を返す。 .SH エラー .TP \fBEAGAIN\fP キューに入れられるシグナル数が上限に達していた (詳しい情報は (\fBsignal\fP(7) を参照)。 .TP \fBEINVAL\fP \fIsig\fP が無効であった。 .TP \fBENOSYS\fP \fBpthread_sigqueue\fP() がこのシステムではサポートされていない。 .TP \fBESRCH\fP \fIthread\fP が無効である。 .SH バージョン \fBpthread_sigqueue\fP() 関数は glibc 2.11 で初めて登場した。 .SH 属性 この節で使用されている用語の説明については、 \fBattributes\fP(7) を参照。 .TS allbox; lb lb lb l l l. インターフェース 属性 値 T{ \fBpthread_sigqueue\fP() T} Thread safety MT\-Safe .TE .SH 準拠 この関数は GNU による拡張である。 .SH 注意 The glibc implementation of \fBpthread_sigqueue\fP() gives an error (\fBEINVAL\fP) on attempts to send either of the real\-time signals used internally by the NPTL threading implementation. See \fBnptl\fP(7) for details. .SH 関連項目 \fBrt_tgsigqueueinfo\fP(2), \fBsigaction\fP(2), \fBpthread_sigmask\fP(3), \fBsigqueue\fP(3), \fBsigwait\fP(3), \fBpthreads\fP(7), \fBsignal\fP(7) .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 5.10 の一部である。プロジェクトの説明とバグ報告に関する情報は \%https://www.kernel.org/doc/man\-pages/ に書かれている。