OSDN Git Service

31714f3a640401f9e33b0741732654a1ad41bfb0
[linuxjm/LDP_man-pages.git] / release / man2 / sigprocmask.2
1 .\" Copyright (c) 2005 Michael Kerrisk
2 .\" based on earlier work by faith@cs.unc.edu and
3 .\" Mike Battersby <mib@deakin.edu.au>
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" 2005-09-15, mtk, Created new page by splitting off from sigaction.2
26 .\"
27 .\" Japanese Version Copyright (c) 2005 Akihiro MOTOKI all rights reserved.
28 .\" Translated 2005-10-03, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
29 .\"
30 .TH SIGPROCMASK 2 2008-10-17 "Linux" "Linux Programmer's Manual"
31 .SH Ì¾Á°
32 sigprocmask \- ¶Ø»ß¤¹¤ë¥·¥°¥Ê¥ë¤Î³Îǧ¤ÈÊѹ¹
33 .SH ½ñ¼°
34 .B #include <signal.h>
35 .sp
36 .BI "int sigprocmask(int " how ", const sigset_t *" set ,
37 .BI "sigset_t *" oldset );
38 .sp
39 .in -4n
40 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
41 .RB ( feature_test_macros (7)
42 »²¾È):
43 .in
44 .sp
45 .ad l
46 .BR sigprocmask ():
47 _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
48 .ad b
49 .SH ÀâÌÀ
50 .BR sigprocmask ()
51 ¤ò»È¤¦¤È¡¢¸Æ¤Ó½Ð¤·¤¿¥¹¥ì¥Ã¥É¤Î¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤Î¼èÆÀ/Êѹ¹¤¬¤Ç¤­¤ë¡£
52 ¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤Ï¡¢¸Æ¤Ó½Ð¤·¸µ¤ËÂФ·¤Æ¸½ºßÇÛÁ÷¤¬¶Ø»ß¤µ¤ì¤Æ¤¤¤ë¥·¥°¥Ê¥ë¤Î
53 ½¸¹ç¤Î¤³¤È¤Ç¤¢¤ë (¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï
54 .BR signal (7)
55 ¤â»²¾È¤Î¤³¤È)¡£
56
57 ¤³¤Î¥³¡¼¥ë¤ÎÆ°ºî¤Ï
58 .I how
59 ¤ÎÃͤˤè¤Ã¤Æ·è¤Þ¤ë:
60 .TP
61 .B SIG_BLOCK
62 ¶Ø»ß¤µ¤ì¤¿¥·¥°¥Ê¥ë¤Î½¸¹ç¤Ï¸½ºß¤ÎÃͤÈ
63 .I set
64 °ú¤­¿ô¤ò·ë¹ç¤·¤¿¤â¤Î¤È¤Ê¤ë¡£
65 .TP
66 .B SIG_UNBLOCK
67 ¸½ºß¶Ø»ß¤µ¤ì¤Æ¤¤¤ë¥·¥°¥Ê¥ë¤Î½¸¹ç¤«¤é
68 .I set
69 ¤Ë¤¢¤ë¥·¥°¥Ê¥ë¤ò¼è¤ê½ü¤¯¡£¶Ø»ß¤µ¤ì¤Æ¤¤¤Ê¤¤¥·¥°¥Ê¥ë¤ò¼è¤ê½ü¤³¤¦¤È
70 ¤¹¤ë¤³¤È¤âǧ¤á¤é¤ì¤Æ¤¤¤ë¡£
71 .TP
72 .B SIG_SETMASK
73 ¶Ø»ß¤µ¤ì¤Æ¤¤¤ë¥·¥°¥Ê¥ë¤Î½¸¹ç¤Ë
74 .I set
75 °ú¤­¿ô¤òÀßÄꤹ¤ë¡£
76 .PP
77 .I oldset
78 ¤¬ NULL ¤Ç¤Ê¤±¤ì¤Ð¡¢¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤Îº£¤Þ¤Ç¤ÎÃͤò
79 .I oldset
80 ¤Ë³ÊǼ¤¹¤ë¡£
81
82 .I set
83 ¤¬ NULL ¤Ç¤¢¤ì¤Ð¡¢¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤ÏÊѹ¹¤µ¤ì¤Ê¤¤ (¤¹¤Ê¤ï¤Á¡¢
84 .I how
85 ¤Ï̵»ë¤µ¤ì¤ë)¡£
86 .I set
87 ¤ÎÃͤˤ«¤«¤ï¤é¤º¡¢¸½ºß¤Î¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤ÎÃͤÏ
88 .I oldset
89 ¤ËÆþ¤ì¤ÆÊÖ¤µ¤ì¤ë (⤷¡¢
90 .I oldset
91 ¤¬ NULL ¤Ç¤Ê¤¤¾ì¹ç)¡£
92
93 ¥Þ¥ë¥Á¥¹¥ì¥Ã¥É¤Î¥×¥í¥»¥¹¤Ç
94 .BR sigprocmask ()
95 ¤ò»ÈÍѤ·¤¿¾ì¹ç¤ÎÆ°ºî¤Ïµ¬Äꤵ¤ì¤Æ¤¤¤Ê¤¤¡£
96 .BR pthread_sigmask (3)
97 ¤ò»²¾È¤Î¤³¤È¡£
98 .SH ÊÖ¤êÃÍ
99 .BR sigprocmask ()
100 ¤ÏÀ®¸ù¤¹¤ì¤Ð 0 ¤òÊÖ¤·¡¢¥¨¥é¡¼¤Ê¤é¤Ð \-1 ¤òÊÖ¤¹¡£
101 .SH ¥¨¥é¡¼
102 .B EINVAL
103 .I how
104 ¤Ë»ØÄꤵ¤ì¤¿Ãͤ¬Í­¸ú¤Ç¤Ï¤Ê¤¤¡£
105 .SH ½àµò
106 POSIX.1-2001.
107 .SH Ãí°Õ
108 .B SIGKILL
109 ¤ä
110 .B SIGSTOP
111 ¤ò¶Ø»ß¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Ê¤¤¡£
112 ¶Ø»ß¤·¤è¤¦¤È¤·¤Æ¤âÌۤäÆ̵»ë¤µ¤ì¤ë¡£
113
114 ¥×¥í¥»¥¹Æâ¤Î³Æ¥¹¥ì¥Ã¥É¤Ï¤½¤ì¤¾¤ìÀìÍѤΥ·¥°¥Ê¥ë¥Þ¥¹¥¯¤ò»ý¤Ä¡£
115
116 .BR fork (2)
117 ·Ðͳ¤ÇºîÀ®¤µ¤ì¤¿»Ò¥×¥í¥»¥¹¤Ï¿Æ¥×¥í¥»¥¹¤Î¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤Î¥³¥Ô¡¼¤ò·Ñ¾µ¤¹¤ë¡£
118 .BR execve (2)
119 ¤ÎÁ°¸å¤Ç¥·¥°¥Ê¥ë¥Þ¥¹¥¯¤ÏÊÝ»ý¤µ¤ì¤ë¡£
120
121 ¥·¥°¥Ê¥ë
122 .BR SIGBUS ,
123 .BR SIGFPE ,
124 .BR SIGILL ,
125 .B SIGSEGV
126 ¤¬¶Ø»ß¤µ¤ì¤Æ¤¤¤ë´Ö¤ËÀ¸À®¤µ¤ì¤¿¾ì¹ç¤Ç¡¢
127 ¤½¤Î¥·¥°¥Ê¥ë¤¬
128 .BR kill (2),
129 .BR sigqueue (2),
130 .BR raise (3)
131 ¤Ë¤è¤Ã¤ÆÀ¸À®¤µ¤ì¤¿¤â¤Î¤Ç¤Ê¤¤¤È¤­¤Ë¤Ï¡¢
132 ¤½¤Î¸å¤ÎÆ°ºî¤Ï̤ÄêµÁ¤Ç¤¢¤ë¡£
133 .PP
134 ¥·¥°¥Ê¥ë½¸¹ç¤ÎÁàºî¤Ë´Ø¤¹¤ë¾ÜºÙ¤Ï
135 .BR sigsetops (3)
136 ¤ò»²¾È¤Î¤³¤È¡£
137 .SH ´ØÏ¢¹àÌÜ
138 .BR kill (2),
139 .BR pause (2),
140 .BR sigaction (2),
141 .BR signal (2),
142 .BR sigpending (2),
143 .BR sigqueue (2),
144 .BR sigsuspend (2),
145 .BR pthread_sigmask (3),
146 .BR sigsetops (3),
147 .BR signal (7)