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 Mon Mar 3 23:33:12 JST 1997
26 .\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
29 .\"WORD: interrupt 割り込み
33 .TH SIGPAUSE 2 2004-05-10 "Linux 2.6" "Linux Programmer's Manual"
36 .\"O sigpause \- atomically release blocked signals and wait for interrupt
37 sigpause \- ブロックされたシグナルをアトミックに解放 (release) して割り込み (interrupt) を待つ
41 .B #include <signal.h>
43 .BI "int sigpause(int " sigmask "); /* BSD */"
45 .BI "int sigpause(int " sig "); /* Unix95 */"
49 .\"O Don't use this function. Use
50 .\"O .BR sigsuspend (2)
59 .\"O is designed to wait for some signal.
63 .\"O It changes the process' signal mask (set of blocked signals),
64 .\"O and then waits for a signal to arrive.
65 この関数はプロセスのシグナルマスク (ブロックされたシグナルのセット) を変更し、
67 .\"O Upon arrival of a signal, the original signal mask is restored.
68 シグナルが到着すると、シグナルマスクは元に戻される。
69 .\"O .SH "RETURN VALUE"
73 .\"O returns, it was interrupted by a signal and the return value is \-1
79 が返った場合、この関数はシグナルによって割り込まれており、
87 .\"O The classical BSD version of this function appeared in 4.2BSD.
88 .\"O It sets the process' signal mask to
90 この関数の古典的な BSD 版は 4.2BSD で登場した。
94 .\"O When the number of signals was increased above 32, this version
95 .\"O was replaced by the incompatible Unix95 one, which removes only the
98 .\"O from the process' signal mask.
99 シグナルの数が 32 以上に増加したときに、
100 BSD 版は互換性のない Unix95 版に置き換えられた。
103 をプロセスのシグナルマスクから削除するだけである。
104 .\" __xpg_sigpause: Unix 95, spec 1170, SVID, SVR4, XPG
105 .\"O The unfortunate situation with two incompatible functions with the
106 .\"O same name was solved by the
107 .\"O .BR \%sigsuspend (2)
108 .\"O function, that takes a
110 .\"O parameter (instead of an int).
111 同じ名前で互換性のない 2 つの関数があるという不幸な事態は、
118 .\"O On Linux, this routine is a system call only on the Sparc (sparc64)
119 .\"O architecture. Libc4 and libc5 only know about the BSD version.
120 .\"O Glibc uses the BSD version unless _XOPEN_SOURCE is defined.
121 Linux では、このルーチンは Sparc (sparc64) アーキテクチャでのみ
123 libc4 と libc5 には BSD 版しかない。
124 glibc では _XOPEN_SOURCE が定義されない限り、BSD 版を使う。
126 .\"O .\" For the BSD version, one usually uses a zero
128 .\"O .\" to indicate that no signals are to be blocked.
132 .\" を 0 にして、どのシグナルもブロックされないようにする」