Debian Codegraph @

templates/man3/pthread_sigmask.3.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:38+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "pthread_sigmask"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2025-09-21"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "pthread_sigmask - examine and change mask of blocked signals"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "POSIX threads library (I<libpthread>,\\ I<-lpthread>)"
63 msgstr ""
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr ""
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "B<#include E<lt>signal.hE<gt>>\n"
77 msgstr ""
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "B<int pthread_sigmask(int >I<how>B<, const sigset_t *>I<set>B<, sigset_t *>I<oldset>B<);>\n"
84 msgstr ""
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 msgid ""
90 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
91 msgstr ""
92
93 #. type: Plain text
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 msgid "B<pthread_sigmask>():"
97 msgstr ""
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 #, no-wrap
103 msgid " _POSIX_C_SOURCE E<gt>= 199506L || _XOPEN_SOURCE E<gt>= 500\n"
104 msgstr ""
105
106 #. type: SH
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 #, no-wrap
110 msgid "DESCRIPTION"
111 msgstr ""
112
113 #. type: Plain text
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 msgid ""
117 "The B<pthread_sigmask>() function is just like B<sigprocmask>(2), with the "
118 "difference that its use in multithreaded programs is explicitly specified by "
119 "POSIX.1. Other differences are noted in this page."
120 msgstr ""
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 msgid ""
126 "For a description of the arguments and operation of this function, see "
127 "B<sigprocmask>(2)."
128 msgstr ""
129
130 #. type: SH
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 #, no-wrap
134 msgid "RETURN VALUE"
135 msgstr ""
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 msgid ""
141 "On success, B<pthread_sigmask>() returns 0; on error, it returns an error "
142 "number."
143 msgstr ""
144
145 #. type: SH
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 #, no-wrap
149 msgid "ERRORS"
150 msgstr ""
151
152 #. type: Plain text
153 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
154 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
155 msgid "See B<sigprocmask>(2)."
156 msgstr ""
157
158 #. type: SH
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 #, no-wrap
162 msgid "ATTRIBUTES"
163 msgstr ""
164
165 #. type: Plain text
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 msgid ""
169 "For an explanation of the terms used in this section, see B<attributes>(7)."
170 msgstr ""
171
172 #. type: tbl table
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 #, no-wrap
176 msgid "Interface"
177 msgstr ""
178
179 #. type: tbl table
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 #, no-wrap
183 msgid "Attribute"
184 msgstr ""
185
186 #. type: tbl table
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 #, no-wrap
190 msgid "Value"
191 msgstr ""
192
193 #. type: tbl table
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 #, no-wrap
197 msgid ".na\n"
198 msgstr ""
199
200 #. type: tbl table
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 #, no-wrap
204 msgid ".nh\n"
205 msgstr ""
206
207 #. type: tbl table
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 #, no-wrap
211 msgid "B<pthread_sigmask>()"
212 msgstr ""
213
214 #. type: tbl table
215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
217 #, no-wrap
218 msgid "Thread safety"
219 msgstr ""
220
221 #. type: tbl table
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 #, no-wrap
225 msgid "MT-Safe"
226 msgstr ""
227
228 #. type: SH
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 #, no-wrap
232 msgid "STANDARDS"
233 msgstr ""
234
235 #. type: Plain text
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 msgid "POSIX.1-2008."
239 msgstr ""
240
241 #. type: SH
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 #, no-wrap
245 msgid "HISTORY"
246 msgstr ""
247
248 #. type: Plain text
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 msgid "POSIX.1-2001."
252 msgstr ""
253
254 #. type: SH
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 #, no-wrap
258 msgid "NOTES"
259 msgstr ""
260
261 #. type: Plain text
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 msgid "A new thread inherits a copy of its creator's signal mask."
265 msgstr ""
266
267 #. type: Plain text
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 msgid ""
271 "The glibc B<pthread_sigmask>() function silently ignores attempts to block "
272 "the two real-time signals that are used internally by the NPTL threading "
273 "implementation. See B<nptl>(7) for details."
274 msgstr ""
275
276 #. type: SH
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 #, no-wrap
280 msgid "EXAMPLES"
281 msgstr ""
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 msgid ""
287 "The program below blocks some signals in the main thread, and then creates a "
288 "dedicated thread to fetch those signals via B<sigwait>(3). The following "
289 "shell session demonstrates its use:"
290 msgstr ""
291
292 #. type: Plain text
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 #, no-wrap
296 msgid ""
297 "$B< ./a.out &>\n"
298 "[1] 5423\n"
299 "$B< kill -QUIT %1>\n"
300 "Signal handling thread got signal 3\n"
301 "$B< kill -USR1 %1>\n"
302 "Signal handling thread got signal 10\n"
303 "$B< kill -TERM %1>\n"
304 "[1]+ Terminated ./a.out\n"
305 msgstr ""
306
307 #. type: SS
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 #, no-wrap
311 msgid "Program source"
312 msgstr ""
313
314 #. type: Plain text
315 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
316 #: opensuse-tumbleweed
317 #, no-wrap
318 msgid ""
319 "#include E<lt>err.hE<gt>\n"
320 "#include E<lt>errno.hE<gt>\n"
321 "#include E<lt>pthread.hE<gt>\n"
322 "#include E<lt>signal.hE<gt>\n"
323 "#include E<lt>stdio.hE<gt>\n"
324 "#include E<lt>stdlib.hE<gt>\n"
325 "#include E<lt>unistd.hE<gt>\n"
326 "\\&\n"
327 "/* Simple error handling functions */\n"
328 "\\&\n"
329 "static void *\n"
330 "sig_thread(void *arg)\n"
331 "{\n"
332 " sigset_t *set = arg;\n"
333 " int s, sig;\n"
334 "\\&\n"
335 " for (;;) {\n"
336 " s = sigwait(set, &sig);\n"
337 " if (s != 0)\n"
338 " errc(EXIT_FAILURE, s, \"sigwait\");\n"
339 " printf(\"Signal handling thread got signal %d\\[rs]n\", sig);\n"
340 " }\n"
341 "}\n"
342 "\\&\n"
343 "int\n"
344 "main(void)\n"
345 "{\n"
346 " pthread_t thread;\n"
347 " sigset_t set;\n"
348 " int s;\n"
349 "\\&\n"
350 " /* Block SIGQUIT and SIGUSR1; other threads created by main()\n"
351 " will inherit a copy of the signal mask. */\n"
352 "\\&\n"
353 " sigemptyset(&set);\n"
354 " sigaddset(&set, SIGQUIT);\n"
355 " sigaddset(&set, SIGUSR1);\n"
356 " s = pthread_sigmask(SIG_BLOCK, &set, NULL);\n"
357 " if (s != 0)\n"
358 " errc(EXIT_FAILURE, s, \"pthread_sigmask\");\n"
359 "\\&\n"
360 " s = pthread_create(&thread, NULL, &sig_thread, &set);\n"
361 " if (s != 0)\n"
362 " errc(EXIT_FAILURE, s, \"pthread_create\");\n"
363 "\\&\n"
364 " /* Main thread carries on to create other threads and/or do\n"
365 " other work. */\n"
366 "\\&\n"
367 " pause(); /* Dummy pause so we can test program */\n"
368 "}\n"
369 msgstr ""
370
371 #. SRC END
372 #. type: SH
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 #, no-wrap
376 msgid "SEE ALSO"
377 msgstr ""
378
379 #. type: Plain text
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 msgid ""
383 "B<sigaction>(2), B<sigpending>(2), B<sigprocmask>(2), "
384 "B<pthread_attr_setsigmask_np>(3), B<pthread_create>(3), B<pthread_kill>(3), "
385 "B<sigsetops>(3), B<pthreads>(7), B<signal>(7)"
386 msgstr ""
387
388 #. type: TH
389 #: debian-trixie
390 #, no-wrap
391 msgid "2024-06-15"
392 msgstr ""
393
394 #. type: TH
395 #: debian-trixie
396 #, no-wrap
397 msgid "Linux man-pages 6.9.1"
398 msgstr ""
399
400 #. type: Plain text
401 #: debian-trixie
402 msgid "POSIX threads library (I<libpthread>, I<-lpthread>)"
403 msgstr ""
404
405 #. type: Plain text
406 #: debian-trixie fedora-44 fedora-rawhide
407 #, no-wrap
408 msgid ""
409 "#include E<lt>errno.hE<gt>\n"
410 "#include E<lt>pthread.hE<gt>\n"
411 "#include E<lt>signal.hE<gt>\n"
412 "#include E<lt>stdio.hE<gt>\n"
413 "#include E<lt>stdlib.hE<gt>\n"
414 "#include E<lt>unistd.hE<gt>\n"
415 "\\&\n"
416 "/* Simple error handling functions */\n"
417 "\\&\n"
418 "#define handle_error_en(en, msg) \\[rs]\n"
419 " do { errno = en; perror(msg); exit(EXIT_FAILURE); } while (0)\n"
420 "\\&\n"
421 "static void *\n"
422 "sig_thread(void *arg)\n"
423 "{\n"
424 " sigset_t *set = arg;\n"
425 " int s, sig;\n"
426 "\\&\n"
427 " for (;;) {\n"
428 " s = sigwait(set, &sig);\n"
429 " if (s != 0)\n"
430 " handle_error_en(s, \"sigwait\");\n"
431 " printf(\"Signal handling thread got signal %d\\[rs]n\", sig);\n"
432 " }\n"
433 "}\n"
434 "\\&\n"
435 "int\n"
436 "main(void)\n"
437 "{\n"
438 " pthread_t thread;\n"
439 " sigset_t set;\n"
440 " int s;\n"
441 "\\&\n"
442 " /* Block SIGQUIT and SIGUSR1; other threads created by main()\n"
443 " will inherit a copy of the signal mask. */\n"
444 "\\&\n"
445 " sigemptyset(&set);\n"
446 " sigaddset(&set, SIGQUIT);\n"
447 " sigaddset(&set, SIGUSR1);\n"
448 " s = pthread_sigmask(SIG_BLOCK, &set, NULL);\n"
449 " if (s != 0)\n"
450 " handle_error_en(s, \"pthread_sigmask\");\n"
451 "\\&\n"
452 " s = pthread_create(&thread, NULL, &sig_thread, &set);\n"
453 " if (s != 0)\n"
454 " handle_error_en(s, \"pthread_create\");\n"
455 "\\&\n"
456 " /* Main thread carries on to create other threads and/or do\n"
457 " other work. */\n"
458 "\\&\n"
459 " pause(); /* Dummy pause so we can test program */\n"
460 "}\n"
461 msgstr ""
462
463 #. type: TH
464 #: fedora-44 fedora-rawhide
465 #, no-wrap
466 msgid "2024-07-23"
467 msgstr ""
468
469 #. type: TH
470 #: fedora-44 fedora-rawhide
471 #, no-wrap
472 msgid "Linux man-pages 6.13"
473 msgstr ""
474
475 #. type: TH
476 #: mageia-cauldron
477 #, no-wrap
478 msgid "Linux man-pages 6.17"
479 msgstr ""
480
481 #. type: TH
482 #: opensuse-leap-16-1 opensuse-tumbleweed
483 #, no-wrap
484 msgid "Linux man-pages (unreleased)"
485 msgstr ""