Debian Codegraph @

templates/man2/sigreturn.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 "sigreturn"
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 ""
50 "sigreturn, rt_sigreturn - return from signal handler and cleanup stack frame"
51 msgstr ""
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "LIBRARY"
58 msgstr ""
59
60 #. type: Plain text
61 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
62 #: opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "Standard C library (I<libc>,\\ I<-lc>)"
64 msgstr ""
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "SYNOPSIS"
71 msgstr ""
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "B<int sigreturn(...);>\n"
78 msgstr ""
79
80 #. type: SH
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid "DESCRIPTION"
85 msgstr ""
86
87 #. See arch/x86/kernel/signal.c::__setup_frame() [in Linux 3.17 source code]
88 #. type: Plain text
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 msgid ""
92 "If the Linux kernel determines that an unblocked signal is pending for a "
93 "process, then, at the next transition back to user mode in that process "
94 "(e.g., upon return from a system call or when the process is rescheduled "
95 "onto the CPU), it creates a new frame on the user-space stack where it saves "
96 "various pieces of process context (processor status word, registers, signal "
97 "mask, and signal stack settings)."
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 "The kernel also arranges that, during the transition back to user mode, the "
105 "signal handler is called, and that, upon return from the handler, control "
106 "passes to a piece of user-space code commonly called the \"signal "
107 "trampoline\". The signal trampoline code in turn calls B<sigreturn>()."
108 msgstr ""
109
110 #. type: Plain text
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 msgid ""
114 "This B<sigreturn>() call undoes everything that was done\\[em]changing the "
115 "process's signal mask, switching signal stacks (see B<sigaltstack>(2))\\"
116 "[em]in order to invoke the signal handler. Using the information that was "
117 "earlier saved on the user-space stack B<sigreturn>() restores the process's "
118 "signal mask, switches stacks, and restores the process's context (processor "
119 "flags and registers, including the stack pointer and instruction pointer), "
120 "so that the process resumes execution at the point where it was interrupted "
121 "by the signal."
122 msgstr ""
123
124 #. type: SH
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 #, no-wrap
128 msgid "RETURN VALUE"
129 msgstr ""
130
131 #. type: Plain text
132 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
133 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
134 msgid "B<sigreturn>() never returns."
135 msgstr ""
136
137 #. type: SH
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 #, no-wrap
141 msgid "VERSIONS"
142 msgstr ""
143
144 #. type: Plain text
145 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
146 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
147 msgid ""
148 "Many UNIX-type systems have a B<sigreturn>() system call or near "
149 "equivalent. However, this call is not specified in POSIX, and details of "
150 "its behavior vary across systems."
151 msgstr ""
152
153 #. type: SH
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 #, no-wrap
157 msgid "STANDARDS"
158 msgstr ""
159
160 #. type: Plain text
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 msgid "None."
164 msgstr ""
165
166 #. type: SH
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 #, no-wrap
170 msgid "NOTES"
171 msgstr ""
172
173 #. See sysdeps/unix/sysv/linux/sigreturn.c and
174 #. signal/sigreturn.c in the glibc source
175 #. type: Plain text
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 msgid ""
179 "B<sigreturn>() exists only to allow the implementation of signal handlers. "
180 "It should B<never> be called directly. (Indeed, a simple B<sigreturn>() "
181 "wrapper in the GNU C library simply returns -1, with I<errno> set to "
182 "B<ENOSYS>.) Details of the arguments (if any) passed to B<sigreturn>() "
183 "vary depending on the architecture. (On some architectures, such as x86-64, "
184 "B<sigreturn>() takes no arguments, since all of the information that it "
185 "requires is available in the stack frame that was previously created by the "
186 "kernel on the user-space stack.)"
187 msgstr ""
188
189 #. See, for example, sysdeps/unix/sysv/linux/i386/sigaction.c and
190 #. sysdeps/unix/sysv/linux/x86_64/sigaction.c in the glibc (2.20) source.
191 #. type: Plain text
192 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
193 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
194 msgid ""
195 "Once upon a time, UNIX systems placed the signal trampoline code onto the "
196 "user stack. Nowadays, pages of the user stack are protected so as to "
197 "disallow code execution. Thus, on contemporary Linux systems, depending on "
198 "the architecture, the signal trampoline code lives either in the B<vdso>(7) "
199 "or in the C library. In the latter case, the C library's B<sigaction>(2) "
200 "wrapper function informs the kernel of the location of the trampoline code "
201 "by placing its address in the I<sa_restorer> field of the I<sigaction> "
202 "structure, and sets the B<SA_RESTORER> flag in the I<sa_flags> field."
203 msgstr ""
204
205 #. type: Plain text
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 msgid ""
209 "The saved process context information is placed in a I<ucontext_t> structure "
210 "(see I<E<lt>sys/ucontext.hE<gt>>). That structure is visible within the "
211 "signal handler as the third argument of a handler established via "
212 "B<sigaction>(2) with the B<SA_SIGINFO> flag."
213 msgstr ""
214
215 #. type: Plain text
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 msgid ""
219 "On some other UNIX systems, the operation of the signal trampoline differs a "
220 "little. In particular, on some systems, upon transitioning back to user "
221 "mode, the kernel passes control to the trampoline (rather than the signal "
222 "handler), and the trampoline code calls the signal handler (and then calls "
223 "B<sigreturn>() once the handler returns)."
224 msgstr ""
225
226 #. type: SS
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 #, no-wrap
230 msgid "C library/kernel differences"
231 msgstr ""
232
233 #. type: Plain text
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 msgid ""
237 "The original Linux system call was named B<sigreturn>(). However, with the "
238 "addition of real-time signals in Linux 2.2, a new system call, "
239 "B<rt_sigreturn>() was added to support an enlarged I<sigset_t> type. The "
240 "GNU C library hides these details from us, transparently employing "
241 "B<rt_sigreturn>() when the kernel provides it."
242 msgstr ""
243
244 #. type: SH
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 #, no-wrap
248 msgid "SEE ALSO"
249 msgstr ""
250
251 #. type: Plain text
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 msgid ""
255 "B<kill>(2), B<restart_syscall>(2), B<sigaltstack>(2), B<signal>(2), "
256 "B<getcontext>(3), B<signal>(7), B<vdso>(7)"
257 msgstr ""
258
259 #. type: TH
260 #: debian-trixie
261 #, no-wrap
262 msgid "2024-05-02"
263 msgstr ""
264
265 #. type: TH
266 #: debian-trixie
267 #, no-wrap
268 msgid "Linux man-pages 6.9.1"
269 msgstr ""
270
271 #. type: Plain text
272 #: debian-trixie
273 msgid "Standard C library (I<libc>, I<-lc>)"
274 msgstr ""
275
276 #. type: TH
277 #: fedora-44 fedora-rawhide
278 #, no-wrap
279 msgid "2024-07-23"
280 msgstr ""
281
282 #. type: TH
283 #: fedora-44 fedora-rawhide
284 #, no-wrap
285 msgid "Linux man-pages 6.13"
286 msgstr ""
287
288 #. type: TH
289 #: mageia-cauldron
290 #, no-wrap
291 msgid "Linux man-pages 6.17"
292 msgstr ""
293
294 #. type: TH
295 #: opensuse-leap-16-1 opensuse-tumbleweed
296 #, no-wrap
297 msgid "Linux man-pages (unreleased)"
298 msgstr ""