.\" t .\" Copyright (c) 2007 by 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) 2007 Akihiro MOTOKI .\" all rights reserved. .\" Translated 2007-10-16, Akihiro MOTOKI , LDP v2.66 .\" Updated 2013-03-26, Akihiro MOTOKI .\" .TH SGETMASK 2 2014\-12\-31 Linux "Linux Programmer's Manual" .SH 名前 sgetmask, ssetmask \- シグナルマスクの操作 (廃止予定) .SH 書式 \fBlong sgetmask(void);\fP .sp \fBlong ssetmask(long \fP\fInewmask\fP\fB);\fP \fI注\fP: これらのシステムコールには、glibc のラッパー関数はない。「注意」の節を参照。 .SH 説明 これらのシステムコールは廃止予定であり、 「使用しないこと」。 代わりに \fBsigprocmask\fP(2) を使用すること。 \fBsgetmask\fP() は、呼び出し元プロセスのシグナルマスクを返す。 \fBssetmask\fP() は、呼び出し元プロセスのシグナルマスクを \fInewmask\fP で指定された値に設定し、変更前のシグナルマスクを返す。 これら二つのシステムコールが扱うシグナルマスクは、 単純なビットマスクである (この点が \fBsigprocmask\fP(2) で使用される \fIsigset_t\fP と異なる)。 これらのマスクを作成したり検査するには \fBsigmask\fP(3) を使用すること。 .SH 返り値 \fBsgetmask\fP() は常に成功し、シグナルマスクを返す。 \fBssetmask\fP() は常に成功し、直前のシグナルマスクを返す。 .SH エラー これらのシステムコールは常に成功する。 .SH バージョン .\" f6187769dae48234f3877df3c4d99294cc2254fa Linux 3.16 以降では、これらのシステムコールのサポートは任意となり、利用できるかはカーネルが \fBCONFIG_SGETMASK_SYSCALL\fP オプションを有効にしてコンパイルされているかに依存する。 .SH 準拠 これらのシステムコールは Linux 固有である。 .SH 注意 glibc はこれらの古いシステムコールに対するラッパー関数を提供していない。 あまりないと思うが、これらを呼び出したい場合には \fBsyscall\fP(2) を使うこと。 これらのシステムコールは、 31 より大きいシグナル番号 (つまり、リアルタイムシグナル) を扱えない。 これらのシステムコールは x86\-64 には存在しない。 \fBSIGSTOP\fP や \fBSIGKILL\fP をブロックすることはできない。 .SH 関連項目 \fBsigprocmask\fP(2), \fBsignal\fP(7) .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部である。 プロジェクトの説明とバグ報告に関する情報は \%http://www.kernel.org/doc/man\-pages/ に書かれている。