1 .\" Copyright (C) 2004 Andries Brouwer (aeb@cwi.nl)
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date. The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein. The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
24 .\" all rights reserved.
25 .\" Translated 1997-03-03, HANATAKA Shinya <hanataka@abyss.rim.or.jp>
26 .\" Updated 2005-12-05, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
27 .\" Catch up to LDP man-pages 2.16
28 .\" Rename sigpause.2 to sigpause.3, and modified a little.
31 .\"WORD: interrupt 割り込み
35 .TH SIGPAUSE 3 2010-09-12 "Linux" "Linux Programmer's Manual"
37 sigpause \- ブロックされたシグナルをアトミックに解放して割り込みを待つ
40 .B #include <signal.h>
42 .BI "int sigpause(int " sigmask "); /* BSD */"
44 .BI "int sigpause(int " sig "); /* System V / UNIX 95 */"
55 この関数はプロセスのシグナルマスク (ブロックされたシグナルのセット) を変更し、
57 シグナルが到着すると、シグナルマスクは元に戻される。
60 が返った場合、この関数はシグナルによって割り込まれている。
69 は POSIX.1-2001 で標準化されている。
72 この関数の古典的な BSD 版は 4.2BSD で登場した。
76 UNIX 95 では BSD 版と互換性のない System V 版のこの関数が標準化された。
79 をプロセスのシグナルマスクから削除するだけである。
80 .\" __xpg_sigpause: UNIX 95, spec 1170, SVID, SVr4, XPG
81 同じ名前で互換性のない 2 つの関数があるという不幸な事態は、
90 Linux では、このルーチンは Sparc (sparc64) アーキテクチャでのみ
93 libc4 と libc5 には BSD 版しかない。
105 それ以外の場合には、System V 版を使用する。
109 .\" を 0 にして、どのシグナルもブロックされないようにする」
118 .BR feature_test_macros (7)