Debian Codegraph @

templates/man2/modify_ldt.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:31+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 "modify_ldt"
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 "modify_ldt - get or set a per-process LDT entry"
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 ""
77 "B<#include E<lt>asm/ldt.hE<gt>> /* Definition of B<struct user_desc> */\n"
78 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
79 "B<#include E<lt>unistd.hE<gt>>\n"
80 msgstr ""
81
82 #. type: Plain text
83 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
84 #: opensuse-tumbleweed
85 #, no-wrap
86 msgid ""
87 "B<int syscall(>unsigned long bytecount;\n"
88 "B< SYS_modify_ldt, int >I<func>B<, void >I<ptr>B<[>I<bytecount>B<],>\n"
89 "B< unsigned long >I<bytecount>B<);>\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 msgid ""
96 "I<Note>: glibc provides no wrapper for B<modify_ldt>(), necessitating the "
97 "use of B<syscall>(2)."
98 msgstr ""
99
100 #. type: SH
101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
102 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
103 #, no-wrap
104 msgid "DESCRIPTION"
105 msgstr ""
106
107 #. type: Plain text
108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
110 msgid ""
111 "B<modify_ldt>() reads or writes the local descriptor table (LDT) for a "
112 "process. The LDT is an array of segment descriptors that can be referenced "
113 "by user code. Linux allows processes to configure a per-process (actually "
114 "per-mm) LDT. For more information about the LDT, see the Intel Software "
115 "Developer's Manual or the AMD Architecture Programming Manual."
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 "When I<func> is 0, B<modify_ldt>() reads the LDT into the memory pointed to "
123 "by I<ptr>. The number of bytes read is the smaller of I<bytecount> and the "
124 "actual size of the LDT, although the kernel may act as though the LDT is "
125 "padded with additional trailing zero bytes. On success, B<modify_ldt>() "
126 "will return the number of bytes read."
127 msgstr ""
128
129 #. type: Plain text
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 msgid ""
133 "When I<func> is 1 or 0x11, B<modify_ldt>() modifies the LDT entry indicated "
134 "by I<ptr-E<gt>entry_number>. I<ptr> points to a I<user_desc> structure and "
135 "I<bytecount> must equal the size of this structure."
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 "The I<user_desc> structure is defined in I<E<lt>asm/ldt.hE<gt>> as:"
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 #, no-wrap
148 msgid ""
149 "struct user_desc {\n"
150 " unsigned int entry_number;\n"
151 " unsigned int base_addr;\n"
152 " unsigned int limit;\n"
153 " unsigned int seg_32bit:1;\n"
154 " unsigned int contents:2;\n"
155 " unsigned int read_exec_only:1;\n"
156 " unsigned int limit_in_pages:1;\n"
157 " unsigned int seg_not_present:1;\n"
158 " unsigned int useable:1;\n"
159 "};\n"
160 msgstr ""
161
162 #. type: Plain text
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 msgid "In Linux 2.4 and earlier, this structure was named I<modify_ldt_ldt_s>."
166 msgstr ""
167
168 #. type: Plain text
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 msgid ""
172 "The I<contents> field is the segment type (data, expand-down data, non-"
173 "conforming code, or conforming code). The other fields match their "
174 "descriptions in the CPU manual, although B<modify_ldt>() cannot set the "
175 "hardware-defined \"accessed\" bit described in the CPU manual."
176 msgstr ""
177
178 #. type: Plain text
179 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
180 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
181 msgid ""
182 "A I<user_desc> is considered \"empty\" if I<read_exec_only> and "
183 "I<seg_not_present> are set to 1 and all of the other fields are 0. An LDT "
184 "entry can be cleared by setting it to an \"empty\" I<user_desc> or, if "
185 "I<func> is 1, by setting both I<base> and I<limit> to 0."
186 msgstr ""
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 msgid ""
192 "A conforming code segment (i.e., one with I<contents==3>) will be rejected "
193 "if I<func> is 1 or if I<seg_not_present> is 0."
194 msgstr ""
195
196 #. type: Plain text
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 msgid ""
200 "When I<func> is 2, B<modify_ldt>() will read zeros. This appears to be a "
201 "leftover from Linux 2.4."
202 msgstr ""
203
204 #. type: SH
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 #, no-wrap
208 msgid "RETURN VALUE"
209 msgstr ""
210
211 #. type: Plain text
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 msgid ""
215 "On success, B<modify_ldt>() returns either the actual number of bytes read "
216 "(for reading) or 0 (for writing). On failure, B<modify_ldt>() returns -1 "
217 "and sets I<errno> to indicate the error."
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 "ERRORS"
225 msgstr ""
226
227 #. type: TP
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 #, no-wrap
231 msgid "B<EFAULT>"
232 msgstr ""
233
234 #. type: Plain text
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 msgid "I<ptr> points outside the address space."
238 msgstr ""
239
240 #. type: TP
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 #, no-wrap
244 msgid "B<EINVAL>"
245 msgstr ""
246
247 #. type: Plain text
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 msgid ""
251 "I<ptr> is 0, or I<func> is 1 and I<bytecount> is not equal to the size of "
252 "the structure I<user_desc>, or I<func> is 1 or 0x11 and the new LDT entry "
253 "has invalid values."
254 msgstr ""
255
256 #. type: TP
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 #, no-wrap
260 msgid "B<ENOSYS>"
261 msgstr ""
262
263 #. type: Plain text
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 msgid "I<func> is neither 0, 1, 2, nor 0x11."
267 msgstr ""
268
269 #. type: SH
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 #, no-wrap
273 msgid "STANDARDS"
274 msgstr ""
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 msgid "Linux."
280 msgstr ""
281
282 #. type: SH
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 #, no-wrap
286 msgid "NOTES"
287 msgstr ""
288
289 #. type: Plain text
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 msgid ""
293 "B<modify_ldt>() should not be used for thread-local storage, as it slows "
294 "down context switches and only supports a limited number of threads. "
295 "Threading libraries should use B<set_thread_area>(2) or B<arch_prctl>(2) "
296 "instead, except on extremely old kernels that do not support those system "
297 "calls."
298 msgstr ""
299
300 #. type: Plain text
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 msgid ""
304 "The normal use for B<modify_ldt>() is to run legacy 16-bit or segmented 32-"
305 "bit code. Not all kernels allow 16-bit segments to be installed, however."
306 msgstr ""
307
308 #. type: Plain text
309 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
310 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
311 msgid ""
312 "Even on 64-bit kernels, B<modify_ldt>() cannot be used to create a long "
313 "mode (i.e., 64-bit) code segment. The undocumented field \"lm\" in "
314 "I<user_desc> is not useful, and, despite its name, does not result in a long "
315 "mode segment."
316 msgstr ""
317
318 #. type: SH
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 #, no-wrap
322 msgid "BUGS"
323 msgstr ""
324
325 #. commit e30ab185c490e9a9381385529e0fd32f0a399495
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 ""
330 "On 64-bit kernels before Linux 3.19, setting the \"lm\" bit in I<user_desc> "
331 "prevents the descriptor from being considered empty. Keep in mind that the "
332 "\"lm\" bit does not exist in the 32-bit headers, but these buggy kernels "
333 "will still notice the bit even when set in a 32-bit process."
334 msgstr ""
335
336 #. type: SH
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 #, no-wrap
340 msgid "SEE ALSO"
341 msgstr ""
342
343 #. type: Plain text
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 msgid "B<arch_prctl>(2), B<set_thread_area>(2), B<vm86>(2)"
347 msgstr ""
348
349 #. type: TH
350 #: debian-trixie
351 #, no-wrap
352 msgid "2024-05-02"
353 msgstr ""
354
355 #. type: TH
356 #: debian-trixie
357 #, no-wrap
358 msgid "Linux man-pages 6.9.1"
359 msgstr ""
360
361 #. type: Plain text
362 #: debian-trixie
363 msgid "Standard C library (I<libc>, I<-lc>)"
364 msgstr ""
365
366 #. type: Plain text
367 #: debian-trixie fedora-44 fedora-rawhide
368 #, no-wrap
369 msgid ""
370 "B<int syscall(SYS_modify_ldt, int >I<func>B<, void >I<ptr>B<[.>I<bytecount>B<],>\n"
371 "B< unsigned long >I<bytecount>B<);>\n"
372 msgstr ""
373
374 #. type: TH
375 #: fedora-44 fedora-rawhide
376 #, no-wrap
377 msgid "2024-07-23"
378 msgstr ""
379
380 #. type: TH
381 #: fedora-44 fedora-rawhide
382 #, no-wrap
383 msgid "Linux man-pages 6.13"
384 msgstr ""
385
386 #. type: TH
387 #: mageia-cauldron
388 #, no-wrap
389 msgid "Linux man-pages 6.17"
390 msgstr ""
391
392 #. type: TH
393 #: opensuse-leap-16-1 opensuse-tumbleweed
394 #, no-wrap
395 msgid "Linux man-pages (unreleased)"
396 msgstr ""