OSDN Git Service

127b7b4faf858cad40c940c1f60e7f0532950dea
[linuxjm/LDP_man-pages.git] / draft / man3 / sigpause.3
1 .\" Copyright (C) 2004 Andries Brouwer (aeb@cwi.nl)
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\"*******************************************************************
26 .\"
27 .\" This file was generated with po4a. Translate the source file.
28 .\"
29 .\"*******************************************************************
30 .TH SIGPAUSE 3 2010\-09\-12 Linux "Linux Programmer's Manual"
31 .SH 名前
32 sigpause \- ブロックされたシグナルをアトミックに解放して割り込みを待つ
33 .SH 書式
34 .nf
35 \fB#include <signal.h>\fP
36 .sp
37 \fBint sigpause(int \fP\fIsigmask\fP\fB);  /* BSD */\fP
38 .sp
39 \fBint sigpause(int \fP\fIsig\fP\fB);      /* System V / UNIX 95 */\fP
40 .fi
41 .SH 説明
42 この関数を使わないこと。 代わりに \fBsigsuspend\fP(2)  を使うこと。
43 .LP
44 関数 \fBsigpause\fP()  はシグナルを待つように設計されている。 この関数はプロセスのシグナルマスク (ブロックされたシグナルのセット)
45 を変更し、 シグナルが到着するのを待つ。 シグナルが到着すると、シグナルマスクは元に戻される。
46 .SH 返り値
47 \fBsigpause\fP()  が返った場合、この関数はシグナルによって割り込まれている。 返り値は \-1 で、 \fIerrno\fP は \fBEINTR\fP
48 に設定される。
49 .SH 準拠
50 System V 版の \fBsigpause\fP()  は POSIX.1\-2001 で標準化されている。
51 .SH 注意
52 .SS 歴史
53 .\" __xpg_sigpause: UNIX 95, spec 1170, SVID, SVr4, XPG
54 The classical BSD version of this function appeared in 4.2BSD.  It sets the
55 process's signal mask to \fIsigmask\fP.  UNIX 95 standardized the incompatible
56 System V version of this function, which removes only the specified signal
57 \fIsig\fP from the process's signal mask.  The unfortunate situation with two
58 incompatible functions with the same name was solved by the
59 \fB\%sigsuspend\fP(2)  function, that takes a \fIsigset_t\ *\fP argument (instead
60 of an \fIint\fP).
61 .SS "Linux での注意"
62 Linux では、このルーチンは Sparc (sparc64) アーキテクチャでのみ システムコールとなっている。
63
64 libc4 と libc5 には BSD 版しかない。
65
66 .\"
67 .\" For the BSD version, one usually uses a zero
68 .\" .I sigmask
69 .\" to indicate that no signals are to be blocked.
70 機能検査マクロ \fB_BSD_SOURCE\fP が定義され、 \fB_POSIX_SOURCE\fP, \fB_POSIX_C_SOURCE\fP,
71 \fB_XOPEN_SOURCE\fP, \fB_GNU_SOURCE\fP, \fB_SVID_SOURCE\fP のいずれも定義されていない場合、 glibc は
72 BSD 版を使う。 それ以外の場合には、System V 版を使用する。
73 .SH 関連項目
74 \fBkill\fP(2), \fBsigaction\fP(2), \fBsigprocmask\fP(2), \fBsigsuspend\fP(2),
75 \fBsigblock\fP(3), \fBsigvec\fP(3), \fBfeature_test_macros\fP(7)
76 .SH この文書について
77 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
78 である。プロジェクトの説明とバグ報告に関する情報は
79 http://www.kernel.org/doc/man\-pages/ に書かれている。