Debian Codegraph @

templates/man3/getcontext.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:25+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 "getcontext"
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 "getcontext, setcontext - get or set the user context"
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>ucontext.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 ""
84 "B<int getcontext(ucontext_t *>I<ucp>B<);>\n"
85 "B<int setcontext(const ucontext_t *>I<ucp>B<);>\n"
86 msgstr ""
87
88 #. type: SH
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid "DESCRIPTION"
93 msgstr ""
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 msgid ""
99 "In a System V-like environment, one has the two types I<mcontext_t> and "
100 "I<ucontext_t> defined in I<E<lt>ucontext.hE<gt>> and the four functions "
101 "B<getcontext>(), B<setcontext>(), B<makecontext>(3), and B<swapcontext>(3) "
102 "that allow user-level context switching between multiple threads of control "
103 "within a process."
104 msgstr ""
105
106 #. type: Plain text
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 msgid ""
110 "The I<mcontext_t> type is machine-dependent and opaque. The I<ucontext_t> "
111 "type is a structure that has at least the following fields:"
112 msgstr ""
113
114 #. type: Plain text
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 #, no-wrap
118 msgid ""
119 "typedef struct ucontext_t {\n"
120 " struct ucontext_t *uc_link;\n"
121 " sigset_t uc_sigmask;\n"
122 " stack_t uc_stack;\n"
123 " mcontext_t uc_mcontext;\n"
124 " ...\n"
125 "} ucontext_t;\n"
126 msgstr ""
127
128 #. type: Plain text
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 msgid ""
132 "with I<sigset_t> and I<stack_t> defined in I<E<lt>signal.hE<gt>>. Here "
133 "I<uc_link> points to the context that will be resumed when the current "
134 "context terminates (in case the current context was created using "
135 "B<makecontext>(3)), I<uc_sigmask> is the set of signals blocked in this "
136 "context (see B<sigprocmask>(2)), I<uc_stack> is the stack used by this "
137 "context (see B<sigaltstack>(2)), and I<uc_mcontext> is the machine-specific "
138 "representation of the saved context, that includes the calling thread's "
139 "machine registers."
140 msgstr ""
141
142 #. type: Plain text
143 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
144 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
145 msgid ""
146 "The function B<getcontext>() initializes the structure pointed to by I<ucp> "
147 "to the currently active context."
148 msgstr ""
149
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 msgid ""
154 "The function B<setcontext>() restores the user context pointed to by "
155 "I<ucp>. A successful call does not return. The context should have been "
156 "obtained by a call of B<getcontext>(), or B<makecontext>(3), or received as "
157 "the third argument to a signal handler (see the discussion of the "
158 "B<SA_SIGINFO> flag in B<sigaction>(2))."
159 msgstr ""
160
161 #. type: Plain text
162 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
163 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
164 msgid ""
165 "If the context was obtained by a call of B<getcontext>(), program execution "
166 "continues as if this call just returned."
167 msgstr ""
168
169 #. type: Plain text
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 msgid ""
173 "If the context was obtained by a call of B<makecontext>(3), program "
174 "execution continues by a call to the function I<func> specified as the "
175 "second argument of that call to B<makecontext>(3). When the function "
176 "I<func> returns, we continue with the I<uc_link> member of the structure "
177 "I<ucp> specified as the first argument of that call to B<makecontext>(3). "
178 "When this member is NULL, the thread exits."
179 msgstr ""
180
181 #. type: Plain text
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 msgid ""
185 "If the context was obtained by a call to a signal handler, then old standard "
186 "text says that \"program execution continues with the program instruction "
187 "following the instruction interrupted by the signal\". However, this "
188 "sentence was removed in SUSv2, and the present verdict is \"the result is "
189 "unspecified\"."
190 msgstr ""
191
192 #. type: SH
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 #, no-wrap
196 msgid "RETURN VALUE"
197 msgstr ""
198
199 #. type: Plain text
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 msgid ""
203 "When successful, B<getcontext>() returns 0 and B<setcontext>() does not "
204 "return. On error, both return -1 and set I<errno> to indicate the error."
205 msgstr ""
206
207 #. type: SH
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 #, no-wrap
211 msgid "ERRORS"
212 msgstr ""
213
214 #. type: Plain text
215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
217 msgid "None defined."
218 msgstr ""
219
220 #. type: SH
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 #, no-wrap
224 msgid "ATTRIBUTES"
225 msgstr ""
226
227 #. type: Plain text
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 msgid ""
231 "For an explanation of the terms used in this section, see B<attributes>(7)."
232 msgstr ""
233
234 #. type: tbl table
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 #, no-wrap
238 msgid "Interface"
239 msgstr ""
240
241 #. type: tbl table
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 #, no-wrap
245 msgid "Attribute"
246 msgstr ""
247
248 #. type: tbl table
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 #, no-wrap
252 msgid "Value"
253 msgstr ""
254
255 #. type: tbl table
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 #, no-wrap
259 msgid ".na\n"
260 msgstr ""
261
262 #. type: tbl table
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 #, no-wrap
266 msgid ".nh\n"
267 msgstr ""
268
269 #. type: tbl table
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 #, no-wrap
273 msgid ""
274 "B<getcontext>(),\n"
275 "B<setcontext>()"
276 msgstr ""
277
278 #. type: tbl table
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 #, no-wrap
282 msgid "Thread safety"
283 msgstr ""
284
285 #. type: tbl table
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 #, no-wrap
289 msgid "MT-Safe race:ucp"
290 msgstr ""
291
292 #. type: SH
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 #, no-wrap
296 msgid "STANDARDS"
297 msgstr ""
298
299 #. type: Plain text
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 msgid "None."
303 msgstr ""
304
305 #. type: SH
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 #, no-wrap
309 msgid "HISTORY"
310 msgstr ""
311
312 #. type: Plain text
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 msgid "SUSv2, POSIX.1-2001."
316 msgstr ""
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 msgid ""
322 "POSIX.1-2008 removes these functions, citing portability issues, and "
323 "recommending that applications be rewritten to use POSIX threads instead."
324 msgstr ""
325
326 #. type: SH
327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
329 #, no-wrap
330 msgid "NOTES"
331 msgstr ""
332
333 #. type: Plain text
334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
336 msgid ""
337 "The earliest incarnation of this mechanism was the B<setjmp>(3)/ "
338 "B<longjmp>(3) mechanism. Since that does not define the handling of the "
339 "signal context, the next stage was the B<sigsetjmp>(3)/ B<siglongjmp>(3) "
340 "pair. The present mechanism gives much more control. On the other hand, "
341 "there is no easy way to detect whether a return from B<getcontext>() is "
342 "from the first call, or via a B<setcontext>() call. The user has to invent "
343 "their own bookkeeping device, and a register variable won't do since "
344 "registers are restored."
345 msgstr ""
346
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 msgid ""
351 "When a signal occurs, the current user context is saved and a new context is "
352 "created by the kernel for the signal handler. Do not leave the handler "
353 "using B<longjmp>(3): it is undefined what would happen with contexts. Use "
354 "B<siglongjmp>(3) or B<setcontext>() instead."
355 msgstr ""
356
357 #. type: SH
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 #, no-wrap
361 msgid "SEE ALSO"
362 msgstr ""
363
364 #. type: Plain text
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 msgid ""
368 "B<sigaction>(2), B<sigaltstack>(2), B<sigprocmask>(2), B<longjmp>(3), "
369 "B<makecontext>(3), B<sigsetjmp>(3), B<signal>(7)"
370 msgstr ""
371
372 #. type: TH
373 #: debian-trixie
374 #, no-wrap
375 msgid "2024-05-02"
376 msgstr ""
377
378 #. type: TH
379 #: debian-trixie
380 #, no-wrap
381 msgid "Linux man-pages 6.9.1"
382 msgstr ""
383
384 #. type: Plain text
385 #: debian-trixie
386 msgid "Standard C library (I<libc>, I<-lc>)"
387 msgstr ""
388
389 #. type: TH
390 #: fedora-44 fedora-rawhide
391 #, no-wrap
392 msgid "2024-07-23"
393 msgstr ""
394
395 #. type: TH
396 #: fedora-44 fedora-rawhide
397 #, no-wrap
398 msgid "Linux man-pages 6.13"
399 msgstr ""
400
401 #. type: TH
402 #: mageia-cauldron
403 #, no-wrap
404 msgid "Linux man-pages 6.17"
405 msgstr ""
406
407 #. type: TH
408 #: opensuse-leap-16-1 opensuse-tumbleweed
409 #, no-wrap
410 msgid "Linux man-pages (unreleased)"
411 msgstr ""