Debian Codegraph @

templates/man2/set_thread_area.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 "set_thread_area"
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 "get_thread_area, set_thread_area - manipulate thread-local storage "
51 "information"
52 msgstr ""
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "LIBRARY"
59 msgstr ""
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "Standard C library (I<libc>,\\ I<-lc>)"
65 msgstr ""
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "SYNOPSIS"
72 msgstr ""
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid ""
79 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
80 "B<#include E<lt>unistd.hE<gt>>\n"
81 msgstr ""
82
83 #. type: Plain text
84 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
85 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
86 #, no-wrap
87 msgid ""
88 "B<#if defined __i386__ || defined __x86_64__>\n"
89 "B<# include E<lt>asm/ldt.hE<gt>> /* Definition of B<struct user_desc> */\n"
90 msgstr ""
91
92 #. type: Plain text
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 #, no-wrap
96 msgid ""
97 "B<int syscall(SYS_get_thread_area, struct user_desc *>I<u_info>B<);>\n"
98 "B<int syscall(SYS_set_thread_area, struct user_desc *>I<u_info>B<);>\n"
99 msgstr ""
100
101 #. type: Plain text
102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
104 #, no-wrap
105 msgid "B<#elif defined __m68k__>\n"
106 msgstr ""
107
108 #. type: Plain text
109 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
110 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
111 #, no-wrap
112 msgid ""
113 "B<int syscall(SYS_get_thread_area);>\n"
114 "B<int syscall(SYS_set_thread_area, unsigned long >I<tp>B<);>\n"
115 msgstr ""
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 #, no-wrap
121 msgid "B<#elif defined __mips__ || defined __csky__>\n"
122 msgstr ""
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 #, no-wrap
128 msgid "B<int syscall(SYS_set_thread_area, unsigned long >I<addr>B<);>\n"
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 #, no-wrap
135 msgid "B<#endif>\n"
136 msgstr ""
137
138 #. type: Plain text
139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
141 msgid ""
142 "I<Note>: glibc provides no wrappers for these system calls, necessitating "
143 "the use of B<syscall>(2)."
144 msgstr ""
145
146 #. type: SH
147 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
148 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
149 #, no-wrap
150 msgid "DESCRIPTION"
151 msgstr ""
152
153 #. type: Plain text
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 msgid ""
157 "These calls provide architecture-specific support for a thread-local storage "
158 "implementation. At the moment, B<set_thread_area>() is available on m68k, "
159 "MIPS, C-SKY, and x86 (both 32-bit and 64-bit variants); "
160 "B<get_thread_area>() is available on m68k and x86."
161 msgstr ""
162
163 #. type: Plain text
164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
166 msgid ""
167 "On m68k, MIPS and C-SKY, B<set_thread_area>() allows storing an arbitrary "
168 "pointer (provided in the B<tp> argument on m68k and in the B<addr> argument "
169 "on MIPS and C-SKY) in the kernel data structure associated with the calling "
170 "thread; this pointer can later be retrieved using B<get_thread_area>() (see "
171 "also NOTES for information regarding obtaining the thread pointer on MIPS)."
172 msgstr ""
173
174 #. type: Plain text
175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
177 msgid ""
178 "On x86, Linux dedicates three global descriptor table (GDT) entries for "
179 "thread-local storage. For more information about the GDT, see the Intel "
180 "Software Developer's Manual or the AMD Architecture Programming Manual."
181 msgstr ""
182
183 #. type: Plain text
184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
186 msgid ""
187 "Both of these system calls take an argument that is a pointer to a structure "
188 "of the following type:"
189 msgstr ""
190
191 #. type: Plain text
192 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
193 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
194 #, no-wrap
195 msgid ""
196 "struct user_desc {\n"
197 " unsigned int entry_number;\n"
198 " unsigned int base_addr;\n"
199 " unsigned int limit;\n"
200 " unsigned int seg_32bit:1;\n"
201 " unsigned int contents:2;\n"
202 " unsigned int read_exec_only:1;\n"
203 " unsigned int limit_in_pages:1;\n"
204 " unsigned int seg_not_present:1;\n"
205 " unsigned int useable:1;\n"
206 "#ifdef __x86_64__\n"
207 " unsigned int lm:1;\n"
208 "#endif\n"
209 "};\n"
210 msgstr ""
211
212 #. type: Plain text
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 msgid ""
216 "B<get_thread_area>() reads the GDT entry indicated by I<u_info-"
217 "E<gt>entry_number> and fills in the rest of the fields in I<u_info>."
218 msgstr ""
219
220 #. type: Plain text
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 msgid "B<set_thread_area>() sets a TLS entry in the GDT."
224 msgstr ""
225
226 #. type: Plain text
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 msgid ""
230 "The TLS array entry set by B<set_thread_area>() corresponds to the value of "
231 "I<u_info-E<gt>entry_number> passed in by the user. If this value is in "
232 "bounds, B<set_thread_area>() writes the TLS descriptor pointed to by "
233 "I<u_info> into the thread's TLS array."
234 msgstr ""
235
236 #. type: Plain text
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 msgid ""
240 "When B<set_thread_area>() is passed an I<entry_number> of -1, it searches "
241 "for a free TLS entry. If B<set_thread_area>() finds a free TLS entry, the "
242 "value of I<u_info-E<gt>entry_number> is set upon return to show which entry "
243 "was changed."
244 msgstr ""
245
246 #. type: Plain text
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 msgid ""
250 "A I<user_desc> is considered \"empty\" if I<read_exec_only> and "
251 "I<seg_not_present> are set to 1 and all of the other fields are 0. If an "
252 "\"empty\" descriptor is passed to B<set_thread_area>(), the corresponding "
253 "TLS entry will be cleared. See BUGS for additional details."
254 msgstr ""
255
256 #. type: Plain text
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 msgid ""
260 "Since Linux 3.19, B<set_thread_area>() cannot be used to write non-present "
261 "segments, 16-bit segments, or code segments, although clearing a segment is "
262 "still acceptable."
263 msgstr ""
264
265 #. type: SH
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 #, no-wrap
269 msgid "RETURN VALUE"
270 msgstr ""
271
272 #. type: Plain text
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 msgid ""
276 "On x86, these system calls return 0 on success, and -1 on failure, with "
277 "I<errno> set to indicate the error."
278 msgstr ""
279
280 #. type: Plain text
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 msgid ""
284 "On C-SKY, MIPS and m68k, B<set_thread_area>() always returns 0. On m68k, "
285 "B<get_thread_area>() returns the thread area pointer value (previously set "
286 "via B<set_thread_area>())."
287 msgstr ""
288
289 #. type: SH
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid "ERRORS"
294 msgstr ""
295
296 #. type: TP
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 #, no-wrap
300 msgid "B<EFAULT>"
301 msgstr ""
302
303 #. type: Plain text
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 msgid "I<u_info> is an invalid pointer."
307 msgstr ""
308
309 #. type: TP
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, no-wrap
313 msgid "B<EINVAL>"
314 msgstr ""
315
316 #. type: Plain text
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 msgid "I<u_info-E<gt>entry_number> is out of bounds."
320 msgstr ""
321
322 #. type: TP
323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
325 #, no-wrap
326 msgid "B<ENOSYS>"
327 msgstr ""
328
329 #. type: Plain text
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 msgid ""
333 "B<get_thread_area>() or B<set_thread_area>() was invoked as a 64-bit "
334 "system call."
335 msgstr ""
336
337 #. type: TP
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 #, no-wrap
341 msgid "B<ESRCH>"
342 msgstr ""
343
344 #. type: Plain text
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 msgid "(B<set_thread_area>()) A free TLS entry could not be located."
348 msgstr ""
349
350 #. type: SH
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 #, no-wrap
354 msgid "STANDARDS"
355 msgstr ""
356
357 #. type: Plain text
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 msgid "Linux."
361 msgstr ""
362
363 #. type: SH
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 #, no-wrap
367 msgid "HISTORY"
368 msgstr ""
369
370 #. type: TP
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 #, no-wrap
374 msgid "B<set_thread_area>()"
375 msgstr ""
376
377 #. type: Plain text
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 msgid "Linux 2.5.29."
381 msgstr ""
382
383 #. type: TP
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 #, no-wrap
387 msgid "B<get_thread_area>()"
388 msgstr ""
389
390 #. type: Plain text
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 msgid "Linux 2.5.32."
394 msgstr ""
395
396 #. type: SH
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, no-wrap
400 msgid "NOTES"
401 msgstr ""
402
403 #. type: Plain text
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 msgid ""
407 "These system calls are generally intended for use only by threading "
408 "libraries."
409 msgstr ""
410
411 #. type: Plain text
412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
414 msgid ""
415 "B<arch_prctl>(2) can interfere with B<set_thread_area>() on x86. See "
416 "B<arch_prctl>(2) for more details. This is not normally a problem, as "
417 "B<arch_prctl>(2) is normally used only by 64-bit programs."
418 msgstr ""
419
420 #. type: Plain text
421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
423 msgid ""
424 "On MIPS, the current value of the thread area pointer can be obtained using "
425 "the instruction:"
426 msgstr ""
427
428 #. type: Plain text
429 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
430 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
431 #, no-wrap
432 msgid "rdhwr dest, $29\n"
433 msgstr ""
434
435 #. type: Plain text
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 msgid "This instruction traps and is handled by kernel."
439 msgstr ""
440
441 #. type: SH
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
444 #, no-wrap
445 msgid "BUGS"
446 msgstr ""
447
448 #. commit e30ab185c490e9a9381385529e0fd32f0a399495
449 #. type: Plain text
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 msgid ""
453 "On 64-bit kernels before Linux 3.19, one of the padding bits in "
454 "I<user_desc>, if set, would prevent the descriptor from being considered "
455 "empty (see B<modify_ldt>(2)). As a result, the only reliable way to clear a "
456 "TLS entry is to use B<memset>(3) to zero the entire I<user_desc> structure, "
457 "including padding bits, and then to set the I<read_exec_only> and "
458 "I<seg_not_present> bits. On Linux 3.19, a I<user_desc> consisting entirely "
459 "of zeros except for I<entry_number> will also be interpreted as a request to "
460 "clear a TLS entry, but this behaved differently on older kernels."
461 msgstr ""
462
463 #. type: Plain text
464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
466 msgid ""
467 "Prior to Linux 3.19, the DS and ES segment registers must not reference TLS "
468 "entries."
469 msgstr ""
470
471 #. type: SH
472 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
473 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
474 #, no-wrap
475 msgid "SEE ALSO"
476 msgstr ""
477
478 #. type: Plain text
479 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
480 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
481 msgid ""
482 "B<arch_prctl>(2), B<modify_ldt>(2), B<ptrace>(2) (B<PTRACE_GET_THREAD_AREA> "
483 "and B<PTRACE_SET_THREAD_AREA>)"
484 msgstr ""
485
486 #. type: TH
487 #: debian-trixie
488 #, no-wrap
489 msgid "2024-05-02"
490 msgstr ""
491
492 #. type: TH
493 #: debian-trixie
494 #, no-wrap
495 msgid "Linux man-pages 6.9.1"
496 msgstr ""
497
498 #. type: Plain text
499 #: debian-trixie
500 msgid "Standard C library (I<libc>, I<-lc>)"
501 msgstr ""
502
503 #. type: TH
504 #: fedora-44 fedora-rawhide
505 #, no-wrap
506 msgid "2024-07-23"
507 msgstr ""
508
509 #. type: TH
510 #: fedora-44 fedora-rawhide
511 #, no-wrap
512 msgid "Linux man-pages 6.13"
513 msgstr ""
514
515 #. type: TH
516 #: mageia-cauldron
517 #, no-wrap
518 msgid "Linux man-pages 6.17"
519 msgstr ""
520
521 #. type: TH
522 #: opensuse-leap-16-1 opensuse-tumbleweed
523 #, no-wrap
524 msgid "Linux man-pages (unreleased)"
525 msgstr ""