Debian Codegraph @

templates/man2/signal.2.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:43+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 "signal"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
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 "signal - ANSI C signal handling"
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 "Standard C library (I<libc>,\\ I<-lc>)"
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-unstable fedora-44 fedora-rawhide mageia-cauldron
81 #: opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "B<typedef typeof(void (int)) *sighandler_t;>\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 #, no-wrap
90 msgid "B<sighandler_t signal(int >I<signum>B<, sighandler_t >I<handler>B<);>\n"
91 msgstr ""
92
93 #. type: SH
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 #, no-wrap
97 msgid "DESCRIPTION"
98 msgstr ""
99
100 #. type: Plain text
101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
102 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
103 msgid ""
104 "B<WARNING>: the behavior of B<signal>() varies across UNIX versions, and "
105 "has also varied historically across different versions of Linux. B<Avoid "
106 "its use>: use B<sigaction>(2) instead. See I<Portability> below."
107 msgstr ""
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 msgid ""
113 "B<signal>() sets the disposition of the signal I<signum> to I<handler>, "
114 "which is either B<SIG_IGN>, B<SIG_DFL>, or the address of a programmer-"
115 "defined function (a \"signal handler\")."
116 msgstr ""
117
118 #. type: Plain text
119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
121 msgid ""
122 "If the signal I<signum> is delivered to the process, then one of the "
123 "following happens:"
124 msgstr ""
125
126 #. type: TP
127 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
128 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
129 #, no-wrap
130 msgid "*"
131 msgstr ""
132
133 #. type: Plain text
134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
136 msgid "If the disposition is set to B<SIG_IGN>, then the signal is ignored."
137 msgstr ""
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 msgid ""
143 "If the disposition is set to B<SIG_DFL>, then the default action associated "
144 "with the signal (see B<signal>(7)) occurs."
145 msgstr ""
146
147 #. type: Plain text
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 msgid ""
151 "If the disposition is set to a function, then first either the disposition "
152 "is reset to B<SIG_DFL>, or the signal is blocked (see I<Portability> below), "
153 "and then I<handler> is called with argument I<signum>. If invocation of the "
154 "handler caused the signal to be blocked, then the signal is unblocked upon "
155 "return from the handler."
156 msgstr ""
157
158 #. type: Plain text
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 msgid "The signals B<SIGKILL> and B<SIGSTOP> cannot be caught or ignored."
162 msgstr ""
163
164 #. type: SH
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 #, no-wrap
168 msgid "RETURN VALUE"
169 msgstr ""
170
171 #. type: Plain text
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 msgid ""
175 "B<signal>() returns the previous value of the signal handler. On failure, "
176 "it returns B<SIG_ERR>, and I<errno> is set to indicate the error."
177 msgstr ""
178
179 #. type: SH
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 #, no-wrap
183 msgid "ERRORS"
184 msgstr ""
185
186 #. type: TP
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 #, no-wrap
190 msgid "B<EINVAL>"
191 msgstr ""
192
193 #. type: Plain text
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 msgid "I<signum> is invalid."
197 msgstr ""
198
199 #. type: SH
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 #, no-wrap
203 msgid "VERSIONS"
204 msgstr ""
205
206 #. libc4 and libc5 define
207 #. .IR SignalHandler ;
208 #. type: Plain text
209 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
210 #: opensuse-leap-16-1 opensuse-tumbleweed
211 msgid ""
212 "The use of I<sighandler_t> is a GNU extension, exposed if B<_GNU_SOURCE> is "
213 "defined; glibc also defines (the BSD-derived) I<sig_t> if B<_BSD_SOURCE> "
214 "(glibc 2.19 and earlier) or B<_DEFAULT_SOURCE> (glibc 2.19 and later) is "
215 "defined. The standard definition of B<signal>() is:"
216 msgstr ""
217
218 #. type: Plain text
219 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
220 #: opensuse-leap-16-1 opensuse-tumbleweed
221 #, no-wrap
222 msgid "B<typeof(void (int)) *signal(int >I<signum>B<, typeof(void (int)) *>I<handler>B<);>\n"
223 msgstr ""
224
225 #. type: SS
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 #, no-wrap
229 msgid "Portability"
230 msgstr ""
231
232 #. type: Plain text
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 msgid ""
236 "The only portable use of B<signal>() is to set a signal's disposition to "
237 "B<SIG_DFL> or B<SIG_IGN>. The semantics when using B<signal>() to "
238 "establish a signal handler vary across systems (and POSIX.1 explicitly "
239 "permits this variation); B<do not use it for this purpose.>"
240 msgstr ""
241
242 #. type: Plain text
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 msgid ""
246 "POSIX.1 solved the portability mess by specifying B<sigaction>(2), which "
247 "provides explicit control of the semantics when a signal handler is invoked; "
248 "use that interface instead of B<signal>()."
249 msgstr ""
250
251 #. type: SH
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 #, no-wrap
255 msgid "STANDARDS"
256 msgstr ""
257
258 #. type: Plain text
259 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
260 #: opensuse-tumbleweed
261 msgid "C11, POSIX.1-2024."
262 msgstr ""
263
264 #. type: SH
265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
267 #, no-wrap
268 msgid "HISTORY"
269 msgstr ""
270
271 #. type: Plain text
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 msgid "C89, POSIX.1-2001."
275 msgstr ""
276
277 #. type: Plain text
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 msgid ""
281 "In the original UNIX systems, when a handler that was established using "
282 "B<signal>() was invoked by the delivery of a signal, the disposition of the "
283 "signal would be reset to B<SIG_DFL>, and the system did not block delivery "
284 "of further instances of the signal. This is equivalent to calling "
285 "B<sigaction>(2) with the following flags:"
286 msgstr ""
287
288 #. type: Plain text
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 #, no-wrap
292 msgid "sa.sa_flags = SA_RESETHAND | SA_NODEFER;\n"
293 msgstr ""
294
295 #. type: Plain text
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 msgid ""
299 "System\\ V also provides these semantics for B<signal>(). This was bad "
300 "because the signal might be delivered again before the handler had a chance "
301 "to reestablish itself. Furthermore, rapid deliveries of the same signal "
302 "could result in recursive invocations of the handler."
303 msgstr ""
304
305 #. type: Plain text
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 msgid ""
309 "BSD improved on this situation, but unfortunately also changed the semantics "
310 "of the existing B<signal>() interface while doing so. On BSD, when a "
311 "signal handler is invoked, the signal disposition is not reset, and further "
312 "instances of the signal are blocked from being delivered while the handler "
313 "is executing. Furthermore, certain blocking system calls are automatically "
314 "restarted if interrupted by a signal handler (see B<signal>(7)). The BSD "
315 "semantics are equivalent to calling B<sigaction>(2) with the following "
316 "flags:"
317 msgstr ""
318
319 #. type: Plain text
320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
322 #, no-wrap
323 msgid "sa.sa_flags = SA_RESTART;\n"
324 msgstr ""
325
326 #. type: Plain text
327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
329 msgid "The situation on Linux is as follows:"
330 msgstr ""
331
332 #. type: IP
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 #, no-wrap
336 msgid "\\[bu]"
337 msgstr ""
338
339 #. type: Plain text
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 msgid "The kernel's B<signal>() system call provides System\\ V semantics."
343 msgstr ""
344
345 #
346 #. System V semantics are also provided if one uses the separate
347 #. .BR sysv_signal (3)
348 #. function.
349 #. .IP \[bu]
350 #. The
351 #. .BR signal ()
352 #. function in Linux libc4 and libc5 provide System\ V semantics.
353 #. If one on a libc5 system includes
354 #. .I <bsd/signal.h>
355 #. instead of
356 #. .IR <signal.h> ,
357 #. then
358 #. .BR signal ()
359 #. provides BSD semantics.
360 #. type: Plain text
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 msgid ""
364 "By default, in glibc 2 and later, the B<signal>() wrapper function does not "
365 "invoke the kernel system call. Instead, it calls B<sigaction>(2) using "
366 "flags that supply BSD semantics. This default behavior is provided as long "
367 "as a suitable feature test macro is defined: B<_BSD_SOURCE> on glibc 2.19 "
368 "and earlier or B<_DEFAULT_SOURCE> in glibc 2.19 and later. (By default, "
369 "these macros are defined; see B<feature_test_macros>(7) for details.) If "
370 "such a feature test macro is not defined, then B<signal>() provides "
371 "System\\ V semantics."
372 msgstr ""
373
374 #. type: SH
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 #, no-wrap
378 msgid "NOTES"
379 msgstr ""
380
381 #. type: Plain text
382 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
383 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
384 msgid "The effects of B<signal>() in a multithreaded process are unspecified."
385 msgstr ""
386
387 #. type: Plain text
388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
390 msgid ""
391 "According to POSIX, the behavior of a process is undefined after it ignores "
392 "a B<SIGFPE>, B<SIGILL>, or B<SIGSEGV> signal that was not generated by "
393 "B<kill>(2) or B<raise>(3). Integer division by zero has undefined result. "
394 "On some architectures it will generate a B<SIGFPE> signal. (Also dividing "
395 "the most negative integer by -1 may generate B<SIGFPE>.) Ignoring this "
396 "signal might lead to an endless loop."
397 msgstr ""
398
399 #. type: Plain text
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 msgid ""
403 "See B<sigaction>(2) for details on what happens when the disposition "
404 "B<SIGCHLD> is set to B<SIG_IGN>."
405 msgstr ""
406
407 #. type: Plain text
408 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
409 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
410 msgid ""
411 "See B<signal-safety>(7) for a list of the async-signal-safe functions that "
412 "can be safely called from inside a signal handler."
413 msgstr ""
414
415 #. type: SH
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 #, no-wrap
419 msgid "SEE ALSO"
420 msgstr ""
421
422 #. type: Plain text
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 msgid ""
426 "B<kill>(1), B<alarm>(2), B<kill>(2), B<pause>(2), B<sigaction>(2), "
427 "B<signalfd>(2), B<sigpending>(2), B<sigprocmask>(2), B<sigsuspend>(2), "
428 "B<bsd_signal>(3), B<killpg>(3), B<raise>(3), B<siginterrupt>(3), "
429 "B<sigqueue>(3), B<sigsetops>(3), B<sigvec>(3), B<sysv_signal>(3), "
430 "B<signal>(7)"
431 msgstr ""
432
433 #. type: TH
434 #: debian-trixie
435 #, no-wrap
436 msgid "2024-05-02"
437 msgstr ""
438
439 #. type: TH
440 #: debian-trixie
441 #, no-wrap
442 msgid "Linux man-pages 6.9.1"
443 msgstr ""
444
445 #. type: Plain text
446 #: debian-trixie
447 msgid "Standard C library (I<libc>, I<-lc>)"
448 msgstr ""
449
450 #. type: Plain text
451 #: debian-trixie
452 #, no-wrap
453 msgid "B<typedef void (*sighandler_t)(int);>\n"
454 msgstr ""
455
456 #. libc4 and libc5 define
457 #. .IR SignalHandler ;
458 #. type: Plain text
459 #: debian-trixie
460 msgid ""
461 "The use of I<sighandler_t> is a GNU extension, exposed if B<_GNU_SOURCE> is "
462 "defined; glibc also defines (the BSD-derived) I<sig_t> if B<_BSD_SOURCE> "
463 "(glibc 2.19 and earlier) or B<_DEFAULT_SOURCE> (glibc 2.19 and later) is "
464 "defined. Without use of such a type, the declaration of B<signal>() is the "
465 "somewhat harder to read:"
466 msgstr ""
467
468 #. type: Plain text
469 #: debian-trixie
470 #, no-wrap
471 msgid "B<void ( *>I<signal>B<(int >I<signum>B<, void (*>I<handler>B<)(int)) ) (int);>\n"
472 msgstr ""
473
474 #. type: Plain text
475 #: debian-trixie fedora-44 fedora-rawhide
476 msgid "C11, POSIX.1-2008."
477 msgstr ""
478
479 #. type: TH
480 #: fedora-44 fedora-rawhide
481 #, no-wrap
482 msgid "2025-01-05"
483 msgstr ""
484
485 #. type: TH
486 #: fedora-44 fedora-rawhide
487 #, no-wrap
488 msgid "Linux man-pages 6.13"
489 msgstr ""
490
491 #. type: TH
492 #: mageia-cauldron
493 #, no-wrap
494 msgid "Linux man-pages 6.17"
495 msgstr ""
496
497 #. type: TH
498 #: opensuse-leap-16-1 opensuse-tumbleweed
499 #, no-wrap
500 msgid "Linux man-pages (unreleased)"
501 msgstr ""