OSDN Git Service

(split) Import translated manuals from JM CVS Repository.
[linuxjm/LDP_man-pages.git] / obsolete / man2 / sigpause.2
1 .\" Copyright (C) 2004 Andries Brouwer (aeb@cwi.nl)
2 .\"
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.
6 .\"
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.
11 .\" 
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
18 .\" professionally.
19 .\" 
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
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>
27 .\"
28 .\"WORD:        signal                  ¥·¥°¥Ê¥ë
29 .\"WORD:        interrupt               ³ä¤ê¹þ¤ß
30 .\"WORD:        mask                    ¥Þ¥¹¥¯
31 .\"WORD:        block                   ¥Ö¥í¥Ã¥¯¤¹¤ë
32 .\"
33 .TH SIGPAUSE 2 2004-05-10 "Linux 2.6" "Linux Programmer's Manual"
34 .\"O .SH NAME
35 .SH Ì¾Á°
36 .\"O sigpause \- atomically release blocked signals and wait for interrupt
37 sigpause \- ¥Ö¥í¥Ã¥¯¤µ¤ì¤¿¥·¥°¥Ê¥ë¤ò¥¢¥È¥ß¥Ã¥¯¤Ë²òÊü (release) ¤·¤Æ³ä¤ê¹þ¤ß (interrupt) ¤òÂÔ¤Ä
38 .\"O .SH SYNOPSIS
39 .SH ½ñ¼°
40 .nf
41 .B #include <signal.h>
42 .sp
43 .BI "int sigpause(int " sigmask ");  /* BSD */"
44 .sp
45 .BI "int sigpause(int " sig ");      /* Unix95 */"
46 .fi
47 .\"O .SH DESCRIPTION
48 .SH ÀâÌÀ
49 .\"O Don't use this function. Use
50 .\"O .BR sigsuspend (2)
51 .\"O instead.
52 ¤³¤Î´Ø¿ô¤ò»È¤ï¤Ê¤¤¤³¤È¡£
53 Âå¤ï¤ê¤Ë
54 .BR sigsuspend (2)
55 ¤ò»È¤¦¤³¤È¡£
56 .LP
57 .\"O The function
58 .\"O .BR sigpause ()
59 .\"O is designed to wait for some signal.
60 ´Ø¿ô
61 .BR sigpause ()
62 ¤Ï¥·¥°¥Ê¥ë¤òÂԤĤ褦¤ËÀ߷פµ¤ì¤Æ¤¤¤ë¡£
63 .\"O It changes the process' signal mask (set of blocked signals),
64 .\"O and then waits for a signal to arrive.
65 ¤³¤Î´Ø¿ô¤Ï¥×¥í¥»¥¹¤Î¥·¥°¥Ê¥ë¥Þ¥¹¥¯ (¥Ö¥í¥Ã¥¯¤µ¤ì¤¿¥·¥°¥Ê¥ë¤Î¥»¥Ã¥È) ¤òÊѹ¹¤·¡¢
66 ¥·¥°¥Ê¥ë¤¬ÅþÃ夹¤ë¤Î¤òÂԤġ£
67 .\"O Upon arrival of a signal, the original signal mask is restored.
68 ¥·¥°¥Ê¥ë¤¬ÅþÃ夹¤ë¤È¡¢¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤Ï¸µ¤ËÌᤵ¤ì¤ë¡£
69 .\"O .SH "RETURN VALUE"
70 .SH ÊÖ¤êÃÍ
71 .\"O If
72 .\"O .BR sigpause ()
73 .\"O returns, it was interrupted by a signal and the return value is \-1
74 .\"O with
75 .\"O .I errno
76 .\"O set to
77 .\"O .BR EINTR .
78 .BR sigpause ()
79 ¤¬Ê֤俾ì¹ç¡¢¤³¤Î´Ø¿ô¤Ï¥·¥°¥Ê¥ë¤Ë¤è¤Ã¤Æ³ä¤ê¹þ¤Þ¤ì¤Æ¤ª¤ê¡¢
80 ÊÖ¤êÃͤϠ\-1 ¤Ç¡¢
81 .I errno
82 ¤Ï
83 .B EINTR
84 ¤ËÀßÄꤵ¤ì¤ë¡£
85 .\"O .SH HISTORY
86 .SH ÍúÎò
87 .\"O The classical BSD version of this function appeared in 4.2BSD.
88 .\"O It sets the process' signal mask to
89 .\"O .IR sigmask .
90 ¤³¤Î´Ø¿ô¤Î¸ÅŵŪ¤Ê BSD ÈǤϠ4.2BSD ¤ÇÅо줷¤¿¡£
91 ¤³¤Î´Ø¿ô¤Ï¥×¥í¥»¥¹¤Î¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤ò
92 .I sigmask
93 ¤ËÀßÄꤹ¤ë¡£
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
96 .\"O specified signal
97 .\"O .I sig
98 .\"O from the process' signal mask.
99 ¥·¥°¥Ê¥ë¤Î¿ô¤¬ 32 °Ê¾å¤ËÁý²Ã¤·¤¿¤È¤­¤Ë¡¢
100 BSD ÈǤϸߴ¹À­¤Î¤Ê¤¤ Unix95 ÈǤËÃÖ¤­´¹¤¨¤é¤ì¤¿¡£
101 Unix95 ÈǤϡ¢»ØÄꤵ¤ì¤¿¥·¥°¥Ê¥ë
102 .I sig
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
109 .\"O .B "sigset_t *"
110 .\"O parameter (instead of an int).
111 Ʊ¤¸Ì¾Á°¤Ç¸ß´¹À­¤Î¤Ê¤¤ 2 ¤Ä¤Î´Ø¿ô¤¬¤¢¤ë¤È¤¤¤¦ÉÔ¹¬¤Ê»öÂ֤ϡ¢
112 .BR \%sigsuspend (2)
113 ´Ø¿ô¤Ë¤è¤Ã¤Æ²ò¾Ã¤µ¤ì¤¿¡£
114 ¤³¤Î´Ø¿ô¤Ï (int ¤ÎÂå¤ï¤ê¤Ë)
115 .B "sigset_t *"
116 °ú¤­¿ô¤ò¤È¤ë¡£
117 .LP
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) ¥¢¡¼¥­¥Æ¥¯¥Á¥ã¤Ç¤Î¤ß
122 ¥·¥¹¥Æ¥à¥³¡¼¥ë¤È¤Ê¤Ã¤Æ¤¤¤ë¡£
123 libc4 ¤È libc5 ¤Ë¤Ï BSD ÈǤ·¤«¤Ê¤¤¡£
124 glibc ¤Ç¤Ï  _XOPEN_SOURCE ¤¬ÄêµÁ¤µ¤ì¤Ê¤¤¸Â¤ê¡¢BSD ÈǤò»È¤¦¡£
125 .\"O .\" .SH NOTE
126 .\"O .\" For the BSD version, one usually uses a zero
127 .\"O .\" .I sigmask
128 .\"O .\" to indicate that no signals are to be blocked.
129 .\" .SH Ãí°Õ
130 .\" BSD ÈǤǤϡ¢
131 .\" .RI ¡Ö sigmask
132 .\" ¤ò 0 ¤Ë¤·¤Æ¡¢¤É¤Î¥·¥°¥Ê¥ë¤â¥Ö¥í¥Ã¥¯¤µ¤ì¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¡×
133 .\" ¤È¤¤¤¦¤Î¤¬¤è¤¯»È¤ï¤ì¤ë¡£
134 .\"O .SH "SEE ALSO"
135 .SH ´ØÏ¢¹àÌÜ
136 .BR kill (2),
137 .BR sigaction (2),
138 .BR sigblock (2),
139 .BR sigprocmask (2),
140 .BR sigsuspend (2),
141 .BR sigvec (2)