Debian Codegraph @

po/ru/man3/mallopt.3.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # aereiae <[email protected]>, 2014.
5 # Alexey <[email protected]>, 2015.
6 # Azamat Hackimov <[email protected]>, 2013-2017.
7 # Dmitriy S. Seregin <[email protected]>, 2013.
8 # Dmitry Bolkhovskikh <[email protected]>, 2017.
9 # ITriskTI <[email protected]>, 2013.
10 # Max Is <[email protected]>, 2016.
11 # Yuri Kozlov <[email protected]>, 2011-2019.
12 # Иван Павлов <[email protected]>, 2017.
13 # Малянов Евгений Викторович <[email protected]>, 2014.
14 msgid ""
15 msgstr ""
16 "Project-Id-Version: manpages-l10n\n"
17 "POT-Creation-Date: 2026-06-05 06:30+0200\n"
18 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
19 "Last-Translator: Yuri Kozlov <[email protected]>\n"
20 "Language-Team: Russian <[email protected]>\n"
21 "Language: ru\n"
22 "MIME-Version: 1.0\n"
23 "Content-Type: text/plain; charset=UTF-8\n"
24 "Content-Transfer-Encoding: 8bit\n"
25 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
26 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
27 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
28 "X-Generator: Lokalize 2.0\n"
29
30 #. type: TH
31 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
32 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
33 #, no-wrap
34 msgid "mallopt"
35 msgstr ""
36
37 #. type: TH
38 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
39 #: opensuse-tumbleweed
40 #, no-wrap
41 msgid "2026-02-08"
42 msgstr "8 февраля 2026 г."
43
44 #. type: TH
45 #: archlinux debian-unstable
46 #, fuzzy, no-wrap
47 #| msgid "Linux man-pages 6.17"
48 msgid "Linux man-pages 6.18"
49 msgstr "Справочные страницы Linux 6.17"
50
51 #. type: SH
52 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
53 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
54 #, no-wrap
55 msgid "NAME"
56 msgstr "НАИМЕНОВАНИЕ"
57
58 #. type: Plain text
59 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
60 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
61 msgid "mallopt - set memory allocation parameters"
62 msgstr "mallopt - задаёт параметры выделения памяти"
63
64 #. type: SH
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 #, no-wrap
68 msgid "LIBRARY"
69 msgstr "БИБЛИОТЕКА"
70
71 #. type: Plain text
72 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
73 #: opensuse-leap-16-1 opensuse-tumbleweed
74 msgid "Standard C library (I<libc>,\\ I<-lc>)"
75 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
76
77 #. type: SH
78 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
79 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
80 #, no-wrap
81 msgid "SYNOPSIS"
82 msgstr "СИНТАКСИС"
83
84 #. type: Plain text
85 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
86 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
87 #, no-wrap
88 msgid "B<#include E<lt>malloc.hE<gt>>\n"
89 msgstr "B<#include E<lt>malloc.hE<gt>>\n"
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, fuzzy, no-wrap
95 #| msgid "B<int mallopt(int >I<param>B<, int >I<value>B<);>"
96 msgid "B<int mallopt(int >I<param>B<, int >I<value>B<);>\n"
97 msgstr "B<int mallopt(int >I<param>B<, int >I<value>B<);>"
98
99 #. type: SH
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 #, no-wrap
103 msgid "DESCRIPTION"
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 B<mallopt>() function adjusts parameters that control the behavior of "
111 "the memory-allocation functions (see B<malloc>(3)). The I<param> argument "
112 "specifies the parameter to be modified, and I<value> specifies the new value "
113 "for that parameter."
114 msgstr ""
115 "Функция B<mallopt>() подстраивает параметры, которые управляют поведением "
116 "функций выделения памяти (смотрите B<malloc>(3)). В аргументе I<param> "
117 "указывается изменяемый параметр, а в I<value> — новое значение этого "
118 "параметра."
119
120 #. type: Plain text
121 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
122 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
123 msgid "The following values can be specified for I<param>:"
124 msgstr "В I<param> можно указать следующие значения:"
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 "B<M_ARENA_MAX>"
131 msgstr "B<M_ARENA_MAX>"
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 ""
137 "If this parameter has a nonzero value, it defines a hard limit on the "
138 "maximum number of arenas that can be created. An arena represents a pool of "
139 "memory that can be used by B<malloc>(3) (and similar) calls to service "
140 "allocation requests. Arenas are thread safe and therefore may have multiple "
141 "concurrent memory requests. The trade-off is between the number of threads "
142 "and the number of arenas. The more arenas you have, the lower the per-"
143 "thread contention, but the higher the memory usage."
144 msgstr ""
145 "Если этот параметр не равен нулю, то он определяет жёсткое ограничение на "
146 "максимальное количество площадок (arenas), которое можно создать. Площадка "
147 "представляет собой общий набор буферов (pool) памяти, который может "
148 "использовать вызов B<malloc>(3) (и подобные) для обслуживания запросов "
149 "выделения. Площадки безопасны в нитях и поэтому могут использоваться при "
150 "одновременных запросах выделения. Нужно соблюдать соотношение между "
151 "количеством нитей и количеством площадок. Чем больше площадок, тем меньше "
152 "состязаний между нитями, но большее потребление памяти."
153
154 #. type: Plain text
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 msgid ""
158 "The default value of this parameter is 0, meaning that the limit on the "
159 "number of arenas is determined according to the setting of B<M_ARENA_TEST>."
160 msgstr ""
161 "Значение по умолчанию данного параметра равно 0, то есть ограничение на "
162 "количество площадок будет определяться по B<M_ARENA_TEST>."
163
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 msgid ""
168 "This parameter has been available since glibc 2.10 via B<--enable-"
169 "experimental-malloc>, and since glibc 2.15 by default. In some versions of "
170 "the allocator there was no limit on the number of created arenas (e.g., "
171 "CentOS 5, RHEL 5)."
172 msgstr ""
173 "Этот параметр доступен начиная с glibc 2.10 при указании B<--enable-"
174 "experimental-malloc>, и начиная с glibc 2.15 — по умолчанию. В некоторых "
175 "версиях механизм выделения не имел ограничения на количество создаваемых "
176 "площадок (например, в CentOS 5, RHEL 5)."
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 "When employing newer glibc versions, applications may in some cases exhibit "
183 "high contention when accessing arenas. In these cases, it may be beneficial "
184 "to increase B<M_ARENA_MAX> to match the number of threads. This is similar "
185 "in behavior to strategies taken by tcmalloc and jemalloc (e.g., per-thread "
186 "allocation pools)."
187 msgstr ""
188 "При использовании более новых версий glibc приложения могут, в некоторых "
189 "случаях, встретить высокую состязательность при доступе к площадкам. В этих "
190 "случаях может быть выгодно увеличить B<M_ARENA_MAX> для соответствия "
191 "количеству нитей. Такое поведение подобно стратегиям, используемым tcmalloc "
192 "и jemalloc (например, общие наборы буферов выделения для каждой нити)."
193
194 #. type: TP
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 #, no-wrap
198 msgid "B<M_ARENA_TEST>"
199 msgstr "B<M_ARENA_TEST>"
200
201 #. type: Plain text
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 msgid ""
205 "This parameter specifies a value, in number of arenas created, at which "
206 "point the system configuration will be examined to determine a hard limit on "
207 "the number of created arenas. (See B<M_ARENA_MAX> for the definition of an "
208 "arena.)"
209 msgstr ""
210 "Этим параметром определяется значение на количество создаваемых площадок; в "
211 "соответствии с ним будут исследоваться системные настройки для оценки "
212 "жёсткого ограничения на количество создаваемых площадок (определение "
213 "площадки смотрите в описании B<M_ARENA_MAX>)."
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 "The computation of the arena hard limit is implementation-defined and is "
220 "usually calculated as a multiple of the number of available CPUs. Once the "
221 "hard limit is computed, the result is final and constrains the total number "
222 "of arenas."
223 msgstr ""
224 "Вычисленное жёсткое ограничение на площадки определяется реализацией и, "
225 "обычно, кратно количеству доступных ЦП. После вычисления жёсткого "
226 "ограничения, результат окончательный и ограничивает общее количество "
227 "площадок."
228
229 #. type: Plain text
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 msgid ""
233 "The default value for the B<M_ARENA_TEST> parameter is 2 on systems where "
234 "I<sizeof(long)> is 4; otherwise the default value is 8."
235 msgstr ""
236 "Значение по умолчанию для параметра B<M_ARENA_TEST> равно 2 в системах, где "
237 "I<sizeof(long)> равно 4; в противном случае значение по умолчанию равно 8."
238
239 #. type: Plain text
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 msgid ""
243 "This parameter has been available since glibc 2.10 via B<--enable-"
244 "experimental-malloc>, and since glibc 2.15 by default."
245 msgstr ""
246 "Этот параметр доступен начиная с glibc 2.10 при указании B<--enable-"
247 "experimental-malloc>, и начиная с glibc 2.15 — по умолчанию."
248
249 #. type: Plain text
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 msgid ""
253 "The value of B<M_ARENA_TEST> is not used when B<M_ARENA_MAX> has a nonzero "
254 "value."
255 msgstr ""
256 "Значение B<M_ARENA_TEST> не используется, если B<M_ARENA_MAX> не равно нулю."
257
258 #. type: TP
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 #, no-wrap
262 msgid "B<M_CHECK_ACTION>"
263 msgstr "B<M_CHECK_ACTION>"
264
265 #. type: Plain text
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 msgid ""
269 "Setting this parameter controls how glibc responds when various kinds of "
270 "programming errors are detected (e.g., freeing the same pointer twice). The "
271 "3 least significant bits (2, 1, and 0) of the value assigned to this "
272 "parameter determine the glibc behavior, as follows:"
273 msgstr ""
274 "Значение данного параметра управляет тем, как glibc действует при "
275 "обнаружении различных программных ошибок (например, освобождение одного "
276 "указателя дважды). Поведение glibc задаётся тремя битами (2, 1 и 0) "
277 "указанного значения:"
278
279 #. type: TP
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 #, no-wrap
283 msgid "Bit 0"
284 msgstr "Бит 0"
285
286 #. type: Plain text
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 msgid ""
290 "If this bit is set, then print a one-line message on I<stderr> that provides "
291 "details about the error. The message starts with the string \"***\\ glibc "
292 "detected\\ ***\", followed by the program name, the name of the memory-"
293 "allocation function in which the error was detected, a brief description of "
294 "the error, and the memory address where the error was detected."
295 msgstr ""
296 "Если этот бит установлен, то печатается сообщение в I<stderr> с "
297 "подробностями ошибки. Сообщение начинается со строки «***\\ glibc detected\\ "
298 "***», далее идёт имя программы, имя функции выделения памяти, в которой "
299 "возникла ошибка, краткое описание ошибки и адрес памяти, где обнаружена "
300 "ошибка."
301
302 #. type: TP
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 #, no-wrap
306 msgid "Bit 1"
307 msgstr "Бит 1"
308
309 #. type: Plain text
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, fuzzy
313 #| msgid ""
314 #| "If this bit is set, then, after printing any error message specified by "
315 #| "bit 0, the program is terminated by calling B<abort>(3). In glibc "
316 #| "versions since 2.4, if bit 0 is also set, then, between printing the "
317 #| "error message and aborting, the program also prints a stack trace in the "
318 #| "manner of B<backtrace>(3), and prints the process's memory mapping in the "
319 #| "style of I</proc/[pid]/maps> (see B<proc>(5))."
320 msgid ""
321 "If this bit is set, then, after printing any error message specified by bit "
322 "0, the program is terminated by calling B<abort>(3). Since glibc 2.4, if "
323 "bit 0 is also set, then, between printing the error message and aborting, "
324 "the program also prints a stack trace in the manner of B<backtrace>(3), and "
325 "prints the process's memory mapping in the style of I</proc/>pidI</maps> "
326 "(see B<proc>(5))."
327 msgstr ""
328 "Если этот бит установлен, то после печати сообщения об ошибке, если указано "
329 "битом 0, программа завершается вызовом B<abort>(3). В glibc с версии 2.4, "
330 "если также установлен бит 0, то между печатью сообщения об ошибке и "
331 "завершением программа также печатает трассировку стека подобную "
332 "B<backtrace>(3), и печатает отображение памяти процесса в стиле I</proc/"
333 "[pid]/maps> (смотрите B<proc>(5))."
334
335 #. type: TP
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 #, no-wrap
339 msgid "Bit 2 (since glibc 2.4)"
340 msgstr "Бит 2 (начиная с glibc 2.4)"
341
342 #. type: Plain text
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 msgid ""
346 "This bit has an effect only if bit 0 is also set. If this bit is set, then "
347 "the one-line message describing the error is simplified to contain just the "
348 "name of the function where the error was detected and the brief description "
349 "of the error."
350 msgstr ""
351 "Этот бит учитывается только если установлен бит 0. Если данный бит "
352 "установлен, то выдаваемое сообщение об ошибке упрощается до имени функции, "
353 "где обнаружена ошибка и короткого описания ошибки."
354
355 #. type: Plain text
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 msgid "The remaining bits in I<value> are ignored."
359 msgstr "Оставшиеся биты в I<value> игнорируются."
360
361 #. type: Plain text
362 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
363 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
364 msgid ""
365 "Combining the above details, the following numeric values are meaningful for "
366 "B<M_CHECK_ACTION>:"
367 msgstr ""
368 "Объединяя выше описанное, получаются следующие числовые значения, влияющие "
369 "на B<M_CHECK_ACTION>:"
370
371 #. type: TP
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 #, no-wrap
375 msgid "B<0>"
376 msgstr "B<0>"
377
378 #. type: Plain text
379 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
380 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
381 msgid "Ignore error conditions; continue execution (with undefined results)."
382 msgstr ""
383 "Игнорировать условия ошибки; продолжить выполнение (с неопределенными "
384 "результатами)."
385
386 #. type: TP
387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
389 #, no-wrap
390 msgid "B<1>"
391 msgstr "B<1>"
392
393 #. type: Plain text
394 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
395 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
396 msgid "Print a detailed error message and continue execution."
397 msgstr "Вывести подробное сообщение об ошибке и продолжить выполнение."
398
399 #. type: TP
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 #, no-wrap
403 msgid "B<2>"
404 msgstr "B<2>"
405
406 #. type: Plain text
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 msgid "Abort the program."
410 msgstr "Прервать программу."
411
412 #. type: TP
413 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
414 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
415 #, no-wrap
416 msgid "B<3>"
417 msgstr "B<3>"
418
419 #. type: Plain text
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 msgid ""
423 "Print detailed error message, stack trace, and memory mappings, and abort "
424 "the program."
425 msgstr ""
426 "Вывести подробное сообщение об ошибке, трассировку стека и отображения "
427 "памяти, а затем прервать программу."
428
429 #. type: TP
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid "B<5>"
434 msgstr "B<5>"
435
436 #. type: Plain text
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 msgid "Print a simple error message and continue execution."
440 msgstr "Вывести простое сообщение об ошибке и продолжить выполнение."
441
442 #. type: TP
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 #, no-wrap
446 msgid "B<7>"
447 msgstr "B<7>"
448
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 "Print simple error message, stack trace, and memory mappings, and abort the "
454 "program."
455 msgstr ""
456 "Вывести простое сообщение об ошибке, трассировку стека и отображения памяти, "
457 "и прервать программу."
458
459 #. type: Plain text
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 #, fuzzy
463 #| msgid ""
464 #| "Since glibc 2.3.4, the default value for the B<M_CHECK_ACTION> parameter "
465 #| "is 3. In glibc version 2.3.3 and earlier, the default value is 1."
466 msgid ""
467 "Since glibc 2.3.4, the default value for the B<M_CHECK_ACTION> parameter is "
468 "3. In glibc 2.3.3 and earlier, the default value is 1."
469 msgstr ""
470 "Начиная с glibc 2.3.4, значение параметра B<M_CHECK_ACTION> по умолчанию "
471 "равно 3. В glibc версии 2.3.3 и старее значением по умолчанию было 1."
472
473 #. type: Plain text
474 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
475 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
476 msgid ""
477 "Using a nonzero B<M_CHECK_ACTION> value can be useful because otherwise a "
478 "crash may happen much later, and the true cause of the problem is then very "
479 "hard to track down."
480 msgstr ""
481 "Использование ненулевого значения B<M_CHECK_ACTION> может быть полезно, так "
482 "как в противном случае падение может случиться позднее и будет сложно "
483 "отследить реальную причину проблемы."
484
485 #. type: TP
486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
488 #, no-wrap
489 msgid "B<M_MMAP_MAX>"
490 msgstr "B<M_MMAP_MAX>"
491
492 #. The following text adapted from comments in the glibc source:
493 #. type: Plain text
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 msgid ""
497 "This parameter specifies the maximum number of allocation requests that may "
498 "be simultaneously serviced using B<mmap>(2). This parameter exists because "
499 "some systems have a limited number of internal tables for use by B<mmap>(2), "
500 "and using more than a few of them may degrade performance."
501 msgstr ""
502 "Данным параметром задаётся максимальное количество запросов выделения, "
503 "которые может одновременно выполнить B<mmap>(2). Этот параметр существует, "
504 "так как в некоторых системах ограничено количество внутренних таблиц, "
505 "используемых B<mmap>(2), и использование больше определённого количество "
506 "снижает производительность."
507
508 #. type: Plain text
509 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
510 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
511 msgid ""
512 "The default value is 65,536, a value which has no special significance and "
513 "which serves only as a safeguard. Setting this parameter to 0 disables the "
514 "use of B<mmap>(2) for servicing large allocation requests."
515 msgstr ""
516 "По умолчанию значение равно 65536; оно не имеет какого-то специального "
517 "обоснования и служит только как предохранитель. Присвоение этому параметру 0 "
518 "отключает использование B<mmap>(2) для обслуживания запросов больших "
519 "выделений."
520
521 #. type: TP
522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
524 #, no-wrap
525 msgid "B<M_MMAP_THRESHOLD>"
526 msgstr "B<M_MMAP_THRESHOLD>"
527
528 #. type: Plain text
529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
531 msgid ""
532 "For allocations greater than or equal to the limit specified (in bytes) by "
533 "B<M_MMAP_THRESHOLD> that can't be satisfied from the free list, the memory-"
534 "allocation functions employ B<mmap>(2) instead of increasing the program "
535 "break using B<sbrk>(2)."
536 msgstr ""
537 "Для выделений, которые больше или равны B<M_MMAP_THRESHOLD> (в байтах) и не "
538 "могут быть получены из списка свободных, то функции выделения памяти вместо "
539 "B<mmap>(2) используют B<sbrk>(2) для увеличения пространства данных "
540 "программы."
541
542 #. type: Plain text
543 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
544 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
545 msgid ""
546 "Allocating memory using B<mmap>(2) has the significant advantage that the "
547 "allocated memory blocks can always be independently released back to the "
548 "system. (By contrast, the heap can be trimmed only if memory is freed at "
549 "the top end.) On the other hand, there are some disadvantages to the use of "
550 "B<mmap>(2): deallocated space is not placed on the free list for reuse by "
551 "later allocations; memory may be wasted because B<mmap>(2) allocations must "
552 "be page-aligned; and the kernel must perform the expensive task of zeroing "
553 "out memory allocated via B<mmap>(2). Balancing these factors leads to a "
554 "default setting of 128*1024 for the B<M_MMAP_THRESHOLD> parameter."
555 msgstr ""
556 "Выделяемая с помощью B<mmap>(2) память имеет значительное преимущество в "
557 "том, что выделенные блоки памяти можно всегда независимо освободить и "
558 "вернуть системе (по сравнению с кучей, которую можно обрезать только, если "
559 "память свободна в конце). С другой стороны, есть несколько отрицательных "
560 "моментов при использовании B<mmap>(2): освобождённое пространство не "
561 "возвращается в список свободного для повторного выделения позже; память "
562 "может траться впустую, так как выделения B<mmap>(2) должны быть кратны "
563 "размеру страницы; ядро должно выполнять ресурсоёмкую задачу по обнулению "
564 "памяти, выделяемой через B<mmap>(2). Баланс этих факторов учтён в значении "
565 "по умолчанию для параметра B<M_MMAP_THRESHOLD> — 128*1024."
566
567 #. type: Plain text
568 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
569 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
570 msgid ""
571 "The lower limit for this parameter is 0. The upper limit is "
572 "B<DEFAULT_MMAP_THRESHOLD_MAX>: 512*1024 on 32-bit systems or "
573 "I<4*1024*1024*sizeof(long)> on 64-bit systems."
574 msgstr ""
575 "Нижний предел данного параметра равен 0. Верхний предел "
576 "B<DEFAULT_MMAP_THRESHOLD_MAX>: 512*1024 в 32-битных системах и "
577 "I<4*1024*1024*sizeof(long)> в 64-битных системах."
578
579 #. type: Plain text
580 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
581 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
582 #, fuzzy
583 #| msgid ""
584 #| "I<Note:> Nowadays, glibc uses a dynamic mmap threshold by default. The "
585 #| "initial value of the threshold is 128*1024, but when blocks larger than "
586 #| "the current threshold and less than or equal to "
587 #| "B<DEFAULT_MMAP_THRESHOLD_MAX> are freed, the threshold is adjusted upward "
588 #| "to the size of the freed block. When dynamic mmap thresholding is in "
589 #| "effect, the threshold for trimming the heap is also dynamically adjusted "
590 #| "to be twice the dynamic mmap threshold. Dynamic adjustment of the mmap "
591 #| "threshold is disabled if any of the B<M_TRIM_THRESHOLD>, B<M_TOP_PAD>, "
592 #| "B<M_MMAP_THRESHOLD>, or B<M_MMAP_MAX> parameters is set."
593 msgid ""
594 "I<Note>: Nowadays, glibc uses a dynamic mmap threshold by default. The "
595 "initial value of the threshold is 128*1024, but when blocks larger than the "
596 "current threshold and less than or equal to B<DEFAULT_MMAP_THRESHOLD_MAX> "
597 "are freed, the threshold is adjusted upward to the size of the freed block. "
598 "When dynamic mmap thresholding is in effect, the threshold for trimming the "
599 "heap is also dynamically adjusted to be twice the dynamic mmap threshold. "
600 "Dynamic adjustment of the mmap threshold is disabled if any of the "
601 "B<M_TRIM_THRESHOLD>, B<M_TOP_PAD>, B<M_MMAP_THRESHOLD>, or B<M_MMAP_MAX> "
602 "parameters is set."
603 msgstr ""
604 "I<Замечание:> В настоящее время по умолчанию в glibc используется "
605 "динамический порог mmap. Начальное значение порога — 128*1024, но когда "
606 "освобождаются блоки больше текущего порога и меньше или равны "
607 "B<DEFAULT_MMAP_THRESHOLD_MAX>, то порог увеличивается до размера свободного "
608 "блока. Когда срабатывает динамический порог mmap, порог обрезки кучи также "
609 "динамически корректируется на двукратное значение динамического порога "
610 "mmap.Динамическая корректировка порога mmap отключается, если задан "
611 "параметр B<M_TRIM_THRESHOLD>, B<M_TOP_PAD>, B<M_MMAP_THRESHOLD> или "
612 "B<M_MMAP_MAX>."
613
614 #. type: TP
615 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
616 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
617 #, no-wrap
618 msgid "B<M_MXFAST> (since glibc 2.3)"
619 msgstr "B<M_MXFAST> (начиная с glibc 2.3)"
620
621 #. The following text adapted from comments in the glibc sources:
622 #. type: Plain text
623 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
624 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
625 msgid ""
626 "Set the upper limit for memory allocation requests that are satisfied using "
627 "\"fastbins\". (The measurement unit for this parameter is bytes.) Fastbins "
628 "are storage areas that hold deallocated blocks of memory of the same size "
629 "without merging adjacent free blocks. Subsequent reallocation of blocks of "
630 "the same size can be handled very quickly by allocating from the fastbin, "
631 "although memory fragmentation and the overall memory footprint of the "
632 "program can increase."
633 msgstr ""
634 "Задаёт верхний порог запросов выделения памяти, которые обрабатываются с "
635 "помощью «fastbins» (значение параметра измеряется в байтах). Fastbins — это "
636 "области хранилища, которые содержат освобождённые блоки памяти одного "
637 "размера и не объединяют смежные свободные блоки. Последующее "
638 "перераспределение блоков одного размера при выделении из fastbin может "
639 "обрабатываться очень быстро, хотя из-за этого может увеличиться фрагментация "
640 "памяти и общее количество памяти программы."
641
642 #. type: Plain text
643 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
644 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
645 msgid ""
646 "The default value for this parameter is I<64*sizeof(size_t)/4> (i.e., 64 on "
647 "32-bit architectures). The range for this parameter is 0 to "
648 "I<80*sizeof(size_t)/4>. Setting B<M_MXFAST> to 0 disables the use of "
649 "fastbins."
650 msgstr ""
651 "По умолчанию значение параметра равно I<64*sizeof(size_t)/4> (т. е., 64 на "
652 "32-битных архитектурах). Диапазон значений параметра: 0 - "
653 "I<80*sizeof(size_t)/4>. Присваивание B<M_MXFAST> значения 0 отключает "
654 "использование fastbins."
655
656 #. type: TP
657 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
658 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
659 #, no-wrap
660 msgid "B<M_PERTURB> (since glibc 2.4)"
661 msgstr "B<M_PERTURB> (начиная с glibc 2.4)"
662
663 #. type: Plain text
664 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
665 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
666 msgid ""
667 "If this parameter is set to a nonzero value, then bytes of allocated memory "
668 "(other than allocations via B<calloc>(3)) are initialized to the complement "
669 "of the value in the least significant byte of I<value>, and when allocated "
670 "memory is released using B<free>(3), the freed bytes are set to the least "
671 "significant byte of I<value>. This can be useful for detecting errors where "
672 "programs incorrectly rely on allocated memory being initialized to zero, or "
673 "reuse values in memory that has already been freed."
674 msgstr ""
675 "Если этому параметру присвоено ненулевое значение, то байты выделенной "
676 "памяти (кроме выделенных через B<calloc>(3)) инициализируются дополнением "
677 "значения в наименее значимом байте I<value>, и при освобождении памяти с "
678 "помощью B<free>(3) освобождённым байтам присваивается значение наименее "
679 "значимого байта I<value>. Это может быть полезно для обнаружения ошибок, "
680 "когда программа некорректно полагается на то, что выделенная памяти "
681 "инициализируется нулями или повторно использует значения уже освобождённой "
682 "памяти."
683
684 #. type: Plain text
685 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
686 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
687 msgid "The default value for this parameter is 0."
688 msgstr "Значение по умолчанию для этого параметра равно 0."
689
690 #. type: TP
691 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
692 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
693 #, no-wrap
694 msgid "B<M_TOP_PAD>"
695 msgstr "B<M_TOP_PAD>"
696
697 #. type: Plain text
698 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
699 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
700 msgid ""
701 "This parameter defines the amount of padding to employ when calling "
702 "B<sbrk>(2) to modify the program break. (The measurement unit for this "
703 "parameter is bytes.) This parameter has an effect in the following "
704 "circumstances:"
705 msgstr ""
706 "Данным параметром определяется количество заполнения при вызове B<sbrk>(2) "
707 "для изменения пространства данных программы (измеряется в байтах). Данный "
708 "параметр полезен в следующих случаях:"
709
710 #. type: IP
711 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
712 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
713 #, no-wrap
714 msgid "\\[bu]"
715 msgstr "\\[bu]"
716
717 #. type: Plain text
718 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
719 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
720 msgid ""
721 "When the program break is increased, then B<M_TOP_PAD> bytes are added to "
722 "the B<sbrk>(2) request."
723 msgstr ""
724 "Когда пространство данных программы увеличивается, то B<M_TOP_PAD> байт "
725 "добавляется к запросу B<sbrk>(2)."
726
727 #. type: Plain text
728 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
729 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
730 msgid ""
731 "When the heap is trimmed as a consequence of calling B<free>(3) (see the "
732 "discussion of B<M_TRIM_THRESHOLD>) this much free space is preserved at the "
733 "top of the heap."
734 msgstr ""
735 "Когда обрезается куча в следствии вызова B<free>(3) (смотрите описание "
736 "B<M_TRIM_THRESHOLD>), то это количество пространства предохраняется вверху "
737 "кучи."
738
739 #. type: Plain text
740 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
741 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
742 msgid ""
743 "In either case, the amount of padding is always rounded to a system page "
744 "boundary."
745 msgstr ""
746 "В обоих случаях, количество заполнения всегда округляется до границы "
747 "системной страницы."
748
749 #. type: Plain text
750 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
751 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
752 msgid ""
753 "Modifying B<M_TOP_PAD> is a trade-off between increasing the number of "
754 "system calls (when the parameter is set low) and wasting unused memory at "
755 "the top of the heap (when the parameter is set high)."
756 msgstr ""
757 "Изменение B<M_TOP_PAD> — компромисс между увеличением количества системных "
758 "вызовов (если значение параметра занижено) и тратой неиспользуемой памяти "
759 "сверху кучи (если значение параметра завышено)."
760
761 #. DEFAULT_TOP_PAD in glibc source
762 #. type: Plain text
763 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
764 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
765 msgid "The default value for this parameter is 128*1024."
766 msgstr "Значение по умолчанию этого параметра равно 128*1024."
767
768 #. type: TP
769 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
770 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
771 #, no-wrap
772 msgid "B<M_TRIM_THRESHOLD>"
773 msgstr "B<M_TRIM_THRESHOLD>"
774
775 #. type: Plain text
776 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
777 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
778 msgid ""
779 "When the amount of contiguous free memory at the top of the heap grows "
780 "sufficiently large, B<free>(3) employs B<sbrk>(2) to release this memory "
781 "back to the system. (This can be useful in programs that continue to "
782 "execute for a long period after freeing a significant amount of memory.) "
783 "The B<M_TRIM_THRESHOLD> parameter specifies the minimum size (in bytes) that "
784 "this block of memory must reach before B<sbrk>(2) is used to trim the heap."
785 msgstr ""
786 "Когда количество непрерывной свободной памяти сверху кучи вырастает до "
787 "значительных размеров функция B<free>(3) вызывает B<sbrk>(2) для "
788 "освобождения этой памяти обратно в систему (это может быть полезно в "
789 "программах, которые работают длительное время после освобождения "
790 "значительного количества памяти). Параметром B<M_TRIM_THRESHOLD> задаётся "
791 "минимальный размер (в байтах), которого должен достигнуть блок памяти, чтобы "
792 "вызвался B<sbrk>(2) для обрезания кучи."
793
794 #. type: Plain text
795 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
796 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
797 msgid ""
798 "The default value for this parameter is 128*1024. Setting "
799 "B<M_TRIM_THRESHOLD> to -1 disables trimming completely."
800 msgstr ""
801 "Значение по умолчанию этого параметра равно 128*1024. Установка "
802 "B<M_TRIM_THRESHOLD> равным -1 отключает обрезку."
803
804 #. type: Plain text
805 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
806 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
807 msgid ""
808 "Modifying B<M_TRIM_THRESHOLD> is a trade-off between increasing the number "
809 "of system calls (when the parameter is set low) and wasting unused memory "
810 "at the top of the heap (when the parameter is set high)."
811 msgstr ""
812 "Изменение B<M_TRIM_THRESHOLD> — компромисс между увеличением количества "
813 "системных вызовов (если значение параметра занижено) и тратой неиспользуемой "
814 "памяти сверху кучи (если значение параметра завышено)."
815
816 #. type: SS
817 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
818 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
819 #, no-wrap
820 msgid "Environment variables"
821 msgstr "Переменные окружения"
822
823 #. type: Plain text
824 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
825 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
826 msgid ""
827 "A number of environment variables can be defined to modify some of the same "
828 "parameters as are controlled by B<mallopt>(). Using these variables has the "
829 "advantage that the source code of the program need not be changed. To be "
830 "effective, these variables must be defined before the first call to a memory-"
831 "allocation function. (If the same parameters are adjusted via B<mallopt>(), "
832 "then the B<mallopt>() settings take precedence.) For security reasons, "
833 "these variables are ignored in set-user-ID and set-group-ID programs."
834 msgstr ""
835 "Параметры, управляющие B<mallopt>(), можно изменить и через переменные "
836 "окружения. Использование этих переменных позволяет изменять работу программы "
837 "без пересборки из исходного кода. В целях эффективной работы эти переменные "
838 "должны быть определены до первого вызова функции выделения памяти (если этот "
839 "же параметр изменяется через B<mallopt>(), то вызов B<mallopt>() имеет "
840 "приоритет). В целях безопасности, эти переменные игнорируются для программ с "
841 "установленными битами set-user-ID и set-group-ID."
842
843 #. type: Plain text
844 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
845 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
846 msgid ""
847 "The environment variables are as follows (note the trailing underscore at "
848 "the end of the name of some variables):"
849 msgstr ""
850 "Используются следующие переменные окружения (обратите внимание на "
851 "подчёркивание в конце некоторых переменных):"
852
853 #. type: TP
854 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
855 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
856 #, no-wrap
857 msgid "B<MALLOC_ARENA_MAX>"
858 msgstr "B<MALLOC_ARENA_MAX>"
859
860 #. type: Plain text
861 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
862 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
863 msgid "Controls the same parameter as B<mallopt>() B<M_ARENA_MAX>."
864 msgstr "Управляет параметром B<M_ARENA_MAX>, аналогично вызову B<mallopt>()."
865
866 #. type: TP
867 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
868 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
869 #, no-wrap
870 msgid "B<MALLOC_ARENA_TEST>"
871 msgstr "B<MALLOC_ARENA_TEST>"
872
873 #. type: Plain text
874 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
875 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
876 msgid "Controls the same parameter as B<mallopt>() B<M_ARENA_TEST>."
877 msgstr "Управляет параметром B<M_ARENA_TEST>, аналогично вызову B<mallopt>()."
878
879 #. type: TP
880 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
881 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
882 #, no-wrap
883 msgid "B<MALLOC_CHECK_>"
884 msgstr "B<MALLOC_CHECK_>"
885
886 #. On glibc 2.12/x86, a simple malloc()+free() loop is about 70% slower
887 #. when MALLOC_CHECK_ was set.
888 #. type: Plain text
889 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
890 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
891 msgid ""
892 "This environment variable controls the same parameter as B<mallopt>() "
893 "B<M_CHECK_ACTION>. If this variable is set to a nonzero value, then a "
894 "special implementation of the memory-allocation functions is used. (This is "
895 "accomplished using the B<malloc_hook>(3) feature.) This implementation "
896 "performs additional error checking, but is slower than the standard set of "
897 "memory-allocation functions. (This implementation does not detect all "
898 "possible errors; memory leaks can still occur.)"
899 msgstr ""
900 "Эта переменная окружения управляет тем же параметром что и B<mallopt>() "
901 "B<M_CHECK_ACTION>. Если эта переменная установлена в ненулевое значение, то "
902 "будет использоваться особенная реализация функций выделения памяти (это "
903 "достигается использованием функции B<malloc_hook>(3)). Эта реализация "
904 "выполняет дополнительные проверки ошибок, но она медленнее чем стандартный "
905 "набор функций выделения памяти (эта реализация не способна обнаружить все "
906 "возможные ошибки; утечки памяти всё ещё возможны)."
907
908 #. type: Plain text
909 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
910 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
911 msgid ""
912 "The value assigned to this environment variable should be a single digit, "
913 "whose meaning is as described for B<M_CHECK_ACTION>. Any characters beyond "
914 "the initial digit are ignored."
915 msgstr ""
916 "Значение, назначенное этой переменной окружения должно быть одиночной "
917 "цифрой; их значения описаны в B<M_CHECK_ACTION>. Все символы кроме первой "
918 "цифры игнорируются."
919
920 #. type: Plain text
921 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
922 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
923 msgid ""
924 "For security reasons, the effect of B<MALLOC_CHECK_> is disabled by default "
925 "for set-user-ID and set-group-ID programs. However, if the file I</etc/suid-"
926 "debug> exists (the content of the file is irrelevant), then B<MALLOC_CHECK_> "
927 "also has an effect for set-user-ID and set-group-ID programs."
928 msgstr ""
929 "В целях безопасности по умолчанию переменная B<MALLOC_CHECK_> игнорируется "
930 "для программ с установленными битами set-user-ID и set-group-ID. Однако, "
931 "если существует файл I</etc/suid-debug> (содержимое файла не важно), то "
932 "B<MALLOC_CHECK_> учитывается и для программ с установленными битами set-user-"
933 "ID и set-group-ID."
934
935 #. type: TP
936 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
937 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
938 #, no-wrap
939 msgid "B<MALLOC_MMAP_MAX_>"
940 msgstr "B<MALLOC_MMAP_MAX_>"
941
942 #. type: Plain text
943 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
944 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
945 msgid "Controls the same parameter as B<mallopt>() B<M_MMAP_MAX>."
946 msgstr "Управляет параметром B<M_MMAP_MAX>, аналогично вызову B<mallopt>()."
947
948 #. type: TP
949 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
950 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
951 #, no-wrap
952 msgid "B<MALLOC_MMAP_THRESHOLD_>"
953 msgstr "B<MALLOC_MMAP_THRESHOLD_>"
954
955 #. type: Plain text
956 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
957 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
958 msgid "Controls the same parameter as B<mallopt>() B<M_MMAP_THRESHOLD>."
959 msgstr ""
960 "Управляет параметром B<M_MMAP_THRESHOLD>, аналогично вызову B<mallopt>()."
961
962 #. type: TP
963 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
964 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
965 #, no-wrap
966 msgid "B<MALLOC_PERTURB_>"
967 msgstr "B<MALLOC_PERTURB_>"
968
969 #. type: Plain text
970 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
971 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
972 msgid "Controls the same parameter as B<mallopt>() B<M_PERTURB>."
973 msgstr "Управляет параметром B<M_PERTURB>, аналогично вызову B<mallopt>()."
974
975 #. type: TP
976 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
977 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
978 #, no-wrap
979 msgid "B<MALLOC_TRIM_THRESHOLD_>"
980 msgstr "B<MALLOC_TRIM_THRESHOLD_>"
981
982 #. type: Plain text
983 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
984 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
985 msgid "Controls the same parameter as B<mallopt>() B<M_TRIM_THRESHOLD>."
986 msgstr ""
987 "Управляет параметром B<M_TRIM_THRESHOLD>, аналогично вызову B<mallopt>()."
988
989 #. type: TP
990 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
991 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
992 #, no-wrap
993 msgid "B<MALLOC_TOP_PAD_>"
994 msgstr "B<MALLOC_TOP_PAD_>"
995
996 #. type: Plain text
997 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
998 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
999 msgid "Controls the same parameter as B<mallopt>() B<M_TOP_PAD>."
1000 msgstr "Управляет параметром B<M_TOP_PAD>, аналогично вызову B<mallopt>()."
1001
1002 #. type: SH
1003 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1004 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1005 #, no-wrap
1006 msgid "RETURN VALUE"
1007 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
1008
1009 #. type: Plain text
1010 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1011 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1012 msgid "On success, B<mallopt>() returns 1. On error, it returns 0."
1013 msgstr ""
1014 "При успешном выполнении B<mallopt>() возвращается 1. При ошибке возвращается "
1015 "0."
1016
1017 #. type: SH
1018 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1019 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1020 #, no-wrap
1021 msgid "ERRORS"
1022 msgstr "ОШИБКИ"
1023
1024 #. type: Plain text
1025 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1026 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1027 msgid "On error, I<errno> is I<not> set."
1028 msgstr "При ошибке значение I<errno> I<не> изменяется."
1029
1030 #. type: SH
1031 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1032 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1033 #, no-wrap
1034 msgid "VERSIONS"
1035 msgstr "ВЕРСИИ"
1036
1037 #. type: Plain text
1038 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1039 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1040 #, fuzzy
1041 #| msgid ""
1042 #| "This function is not specified by POSIX or the C standards. A similar "
1043 #| "function exists on many System V derivatives, but the range of values for "
1044 #| "I<param> varies across systems. The SVID defined options B<M_MXFAST>, "
1045 #| "B<M_NLBLKS>, B<M_GRAIN>, and B<M_KEEP>, but only the first of these is "
1046 #| "implemented in glibc."
1047 msgid ""
1048 "A similar function exists on many System V derivatives, but the range of "
1049 "values for I<param> varies across systems. The SVID defined options "
1050 "B<M_MXFAST>, B<M_NLBLKS>, B<M_GRAIN>, and B<M_KEEP>, but only the first of "
1051 "these is implemented in glibc."
1052 msgstr ""
1053 "Данная функция не описана в POSIX или C. Подобная функция существует во "
1054 "многих ответвлениях System V, но значения I<param> не совпадают. В SVID "
1055 "определены параметры B<M_MXFAST>, B<M_NLBLKS>, B<M_GRAIN> и B<M_KEEP>, но "
1056 "только первый из них реализован в glibc."
1057
1058 #. type: SH
1059 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1060 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1061 #, no-wrap
1062 msgid "STANDARDS"
1063 msgstr "СТАНДАРТЫ"
1064
1065 #. type: Plain text
1066 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1067 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1068 msgid "None."
1069 msgstr "Отсутствуют."
1070
1071 #. type: SH
1072 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1073 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1074 #, no-wrap
1075 msgid "HISTORY"
1076 msgstr "ИСТОРИЯ"
1077
1078 #. type: Plain text
1079 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1080 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1081 msgid "glibc 2.0."
1082 msgstr "glibc 2.0."
1083
1084 #. type: SH
1085 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1086 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1087 #, no-wrap
1088 msgid "BUGS"
1089 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
1090
1091 #. type: Plain text
1092 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1093 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1094 msgid "Specifying an invalid value for I<param> does not generate an error."
1095 msgstr "Неправильное значение I<param> не вызывает ошибки."
1096
1097 #. FIXME . This looks buggy:
1098 #. setting the M_MXFAST limit rounds up: (s + SIZE_SZ) & ~MALLOC_ALIGN_MASK)
1099 #. malloc requests are rounded up:
1100 #. (req) + SIZE_SZ + MALLOC_ALIGN_MASK) & ~MALLOC_ALIGN_MASK
1101 #. https://www.sourceware.org/bugzilla/show_bug.cgi?id=12129
1102 #. type: Plain text
1103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1105 msgid ""
1106 "A calculation error within the glibc implementation means that a call of the "
1107 "form:"
1108 msgstr "Ошибка вычисления внутри реализации glibc означает, что вызов:"
1109
1110 #. type: Plain text
1111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1113 #, no-wrap
1114 msgid "mallopt(M_MXFAST, n)\n"
1115 msgstr "mallopt(M_MXFAST, n)\n"
1116
1117 #. Bins are multiples of 2 * sizeof(size_t) + sizeof(size_t)
1118 #. type: Plain text
1119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1121 msgid ""
1122 "does not result in fastbins being employed for all allocations of size up to "
1123 "I<n>. To ensure desired results, I<n> should be rounded up to the next "
1124 "multiple greater than or equal to I<(2k+1)*sizeof(size_t)>, where I<k> is an "
1125 "integer."
1126 msgstr ""
1127 "не приведёт к тому, что из fastbins будет выделяться память до размера I<n>. "
1128 "Чтобы это сработало, I<n> должно быть округлено до следующего множителя "
1129 "большего или равного I<(2k+1)*sizeof(size_t)>, где I<k> — целое число."
1130
1131 #. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12140
1132 #. type: Plain text
1133 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1134 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1135 msgid ""
1136 "If B<mallopt>() is used to set B<M_PERTURB>, then, as expected, the bytes "
1137 "of allocated memory are initialized to the complement of the byte in "
1138 "I<value>, and when that memory is freed, the bytes of the region are "
1139 "initialized to the byte specified in I<value>. However, there is an off-by-"
1140 "I<sizeof(size_t)> error in the implementation: instead of initializing "
1141 "precisely the block of memory being freed by the call I<free(p)>, the block "
1142 "starting at I<p+sizeof(size_t)> is initialized."
1143 msgstr ""
1144 "Если B<mallopt>() используется для установки B<M_PERTURB>, то, как и "
1145 "ожидалось, байты свободной памяти инициализируются дополнением байта из "
1146 "I<value>, и когда эта память освобождается, байты области инициализируются "
1147 "байтом, указанным в I<value>. Однако, в реализации есть ошибка выхода за "
1148 "I<sizeof(size_t)>: вместо инициализации точного блока памяти освобождаемом "
1149 "вызовом I<free(p)>, блок начинает инициализироваться с I<p+sizeof(size_t)>."
1150
1151 #. type: SH
1152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1154 #, no-wrap
1155 msgid "EXAMPLES"
1156 msgstr "ПРИМЕРЫ"
1157
1158 #. type: Plain text
1159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1161 msgid ""
1162 "The program below demonstrates the use of B<M_CHECK_ACTION>. If the program "
1163 "is supplied with an (integer) command-line argument, then that argument is "
1164 "used to set the B<M_CHECK_ACTION> parameter. The program then allocates a "
1165 "block of memory, and frees it twice (an error)."
1166 msgstr ""
1167 "Представленная далее программа показывает использование B<M_CHECK_ACTION>. "
1168 "Если программе передаётся аргумент командной строки (целое число), то этот "
1169 "аргумент используется для установки значения параметра B<M_CHECK_ACTION>. "
1170 "При этом программа выделяет блок памяти и освобождает его дважды (ошибка)."
1171
1172 #. type: Plain text
1173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1175 msgid ""
1176 "The following shell session shows what happens when we run this program "
1177 "under glibc, with the default value for B<M_CHECK_ACTION>:"
1178 msgstr ""
1179 "Следующий сеанс в оболочке показывает работу программы с glibc и значением "
1180 "по умолчанию для B<M_CHECK_ACTION>:"
1181
1182 #. type: Plain text
1183 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1184 #: opensuse-tumbleweed
1185 #, fuzzy, no-wrap
1186 #| msgid ""
1187 #| "$ B<./a.out>\n"
1188 #| "main(): returned from first free() call\n"
1189 #| "*** glibc detected *** ./a.out: double free or corruption (top): 0x09d30008 ***\n"
1190 #| "======= Backtrace: =========\n"
1191 #| "/lib/libc.so.6(+0x6c501)[0x523501]\n"
1192 #| "/lib/libc.so.6(+0x6dd70)[0x524d70]\n"
1193 #| "/lib/libc.so.6(cfree+0x6d)[0x527e5d]\n"
1194 #| "\\&./a.out[0x80485db]\n"
1195 #| "/lib/libc.so.6(__libc_start_main+0xe7)[0x4cdce7]\n"
1196 #| "\\&./a.out[0x8048471]\n"
1197 #| "======= Memory map: ========\n"
1198 #| "001e4000-001fe000 r-xp 00000000 08:06 1083555 /lib/libgcc_s.so.1\n"
1199 #| "001fe000-001ff000 r--p 00019000 08:06 1083555 /lib/libgcc_s.so.1\n"
1200 #| "[some lines omitted]\n"
1201 #| "b7814000-b7817000 rw-p 00000000 00:00 0\n"
1202 #| "bff53000-bff74000 rw-p 00000000 00:00 0 [stack]\n"
1203 #| "Aborted (core dumped)\n"
1204 msgid ""
1205 "$B< ./a.out>;\n"
1206 "main(): returned from first free() call\n"
1207 "*** glibc detected *** ./a.out: double free or corruption (top): 0x09d30008 ***\n"
1208 "======= Backtrace: =========\n"
1209 "/lib/libc.so.6(+0x6c501)[0x523501]\n"
1210 "/lib/libc.so.6(+0x6dd70)[0x524d70]\n"
1211 "/lib/libc.so.6(cfree+0x6d)[0x527e5d]\n"
1212 "\\&./a.out[0x80485db]\n"
1213 "/lib/libc.so.6(__libc_start_main+0xe7)[0x4cdce7]\n"
1214 "\\&./a.out[0x8048471]\n"
1215 "======= Memory map: ========\n"
1216 "001e4000-001fe000 r-xp 00000000 08:06 1083555 /lib/libgcc_s.so.1\n"
1217 "001fe000-001ff000 r--p 00019000 08:06 1083555 /lib/libgcc_s.so.1\n"
1218 "[some lines omitted]\n"
1219 "b7814000-b7817000 rw-p 00000000 00:00 0\n"
1220 "bff53000-bff74000 rw-p 00000000 00:00 0 [stack]\n"
1221 "Aborted (core dumped)\n"
1222 msgstr ""
1223 "$ B<./a.out>\n"
1224 "main(): возвращение из первого вызова free()\n"
1225 "*** glibc detected *** ./a.out: double free or corruption (top): 0x09d30008 ***\n"
1226 "======= Backtrace: =========\n"
1227 "/lib/libc.so.6(+0x6c501)[0x523501]\n"
1228 "/lib/libc.so.6(+0x6dd70)[0x524d70]\n"
1229 "/lib/libc.so.6(cfree+0x6d)[0x527e5d]\n"
1230 "\\&./a.out[0x80485db]\n"
1231 "/lib/libc.so.6(__libc_start_main+0xe7)[0x4cdce7]\n"
1232 "\\&./a.out[0x8048471]\n"
1233 "======= Memory map: ========\n"
1234 "001e4000-001fe000 r-xp 00000000 08:06 1083555 /lib/libgcc_s.so.1\n"
1235 "001fe000-001ff000 r--p 00019000 08:06 1083555 /lib/libgcc_s.so.1\n"
1236 "[some lines omitted]\n"
1237 "b7814000-b7817000 rw-p 00000000 00:00 0\n"
1238 "bff53000-bff74000 rw-p 00000000 00:00 0 [stack]\n"
1239 "Aborted (core dumped)\n"
1240
1241 #. type: Plain text
1242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1244 msgid ""
1245 "The following runs show the results when employing other values for "
1246 "B<M_CHECK_ACTION>:"
1247 msgstr ""
1248 "В этом запуске показаны результаты при других значениях B<M_CHECK_ACTION>:"
1249
1250 #. type: Plain text
1251 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1252 #: opensuse-tumbleweed
1253 #, fuzzy, no-wrap
1254 #| msgid ""
1255 #| "$ B<./a.out 1> # Diagnose error and continue\n"
1256 #| "main(): returned from first free() call\n"
1257 #| "*** glibc detected *** ./a.out: double free or corruption (top): 0x09cbe008 ***\n"
1258 #| "main(): returned from second free() call\n"
1259 #| "$ B<./a.out 2> # Abort without error message\n"
1260 #| "main(): returned from first free() call\n"
1261 #| "Aborted (core dumped)\n"
1262 #| "$ B<./a.out 0> # Ignore error and continue\n"
1263 #| "main(): returned from first free() call\n"
1264 #| "main(): returned from second free() call\n"
1265 msgid ""
1266 "$B< ./a.out 1>; # Diagnose error and continue\n"
1267 "main(): returned from first free() call\n"
1268 "*** glibc detected *** ./a.out: double free or corruption (top): 0x09cbe008 ***\n"
1269 "main(): returned from second free() call\n"
1270 "$B< ./a.out 2>; # Abort without error message\n"
1271 "main(): returned from first free() call\n"
1272 "Aborted (core dumped)\n"
1273 "$B< ./a.out 0>; # Ignore error and continue\n"
1274 "main(): returned from first free() call\n"
1275 "main(): returned from second free() call\n"
1276 msgstr ""
1277 "$ B<./a.out 1> # показ ошибки и продолжение\n"
1278 "main(): возвращение из первого вызова free()\n"
1279 "*** glibc detected *** ./a.out: double free or corruption (top): 0x09cbe008 ***\n"
1280 "main(): возвращение из второго вызова free()\n"
1281 "$ B<./a.out 2> # прерывание без показа ошибки\n"
1282 "main(): возвращение из первого вызова free()\n"
1283 "Aborted (core dumped)\n"
1284 "$ B<./a.out 0> # игнорирование ошибки и продолжение\n"
1285 "main(): возвращение из первого вызова free()\n"
1286 "main(): возвращение из второго вызова free()\n"
1287
1288 #. type: Plain text
1289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1291 msgid ""
1292 "The next run shows how to set the same parameter using the B<MALLOC_CHECK_> "
1293 "environment variable:"
1294 msgstr ""
1295 "При этом запуске показано как изменить тот же параметр с помощью переменной "
1296 "окружения B<MALLOC_CHECK_>:"
1297
1298 #. type: Plain text
1299 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1300 #: opensuse-tumbleweed
1301 #, fuzzy, no-wrap
1302 #| msgid ""
1303 #| "$ B<MALLOC_CHECK_=1 ./a.out>\n"
1304 #| "main(): returned from first free() call\n"
1305 #| "*** glibc detected *** ./a.out: free(): invalid pointer: 0x092c2008 ***\n"
1306 #| "main(): returned from second free() call\n"
1307 msgid ""
1308 "$B< MALLOC_CHECK_=1 ./a.out>;\n"
1309 "main(): returned from first free() call\n"
1310 "*** glibc detected *** ./a.out: free(): invalid pointer: 0x092c2008 ***\n"
1311 "main(): returned from second free() call\n"
1312 msgstr ""
1313 "$ B<MALLOC_CHECK_=1 ./a.out>\n"
1314 "main(): возвращение из первого вызова free()\n"
1315 "*** glibc detected *** ./a.out: free(): invalid pointer: 0x092c2008 ***\n"
1316 "main(): возвращение из второго вызова free()\n"
1317
1318 #. type: SS
1319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1321 #, no-wrap
1322 msgid "Program source"
1323 msgstr "Исходный код программы"
1324
1325 #. type: Plain text
1326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1328 #, no-wrap
1329 msgid ""
1330 "#include E<lt>malloc.hE<gt>\n"
1331 "#include E<lt>stdio.hE<gt>\n"
1332 "#include E<lt>stdlib.hE<gt>\n"
1333 "\\&\n"
1334 "int\n"
1335 "main(int argc, char *argv[])\n"
1336 "{\n"
1337 " char *p;\n"
1338 "\\&\n"
1339 " if (argc E<gt> 1) {\n"
1340 " if (mallopt(M_CHECK_ACTION, atoi(argv[1])) != 1) {\n"
1341 " fprintf(stderr, \"mallopt() failed\");\n"
1342 " exit(EXIT_FAILURE);\n"
1343 " }\n"
1344 " }\n"
1345 "\\&\n"
1346 " p = malloc(1000);\n"
1347 " if (p == NULL) {\n"
1348 " fprintf(stderr, \"malloc() failed\");\n"
1349 " exit(EXIT_FAILURE);\n"
1350 " }\n"
1351 "\\&\n"
1352 " free(p);\n"
1353 " printf(\"%s(): returned from first free() call\\[rs]n\", __func__);\n"
1354 "\\&\n"
1355 " free(p);\n"
1356 " printf(\"%s(): returned from second free() call\\[rs]n\", __func__);\n"
1357 "\\&\n"
1358 " exit(EXIT_SUCCESS);\n"
1359 "}\n"
1360 msgstr ""
1361
1362 #. SRC END
1363 #. type: SH
1364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1366 #, no-wrap
1367 msgid "SEE ALSO"
1368 msgstr "СМОТРИТЕ ТАКЖЕ"
1369
1370 #. type: Plain text
1371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1373 msgid ""
1374 "B<mmap>(2), B<sbrk>(2), B<mallinfo>(3), B<malloc>(3), B<malloc_hook>(3), "
1375 "B<malloc_info>(3), B<malloc_stats>(3), B<malloc_trim>(3), B<mcheck>(3), "
1376 "B<mtrace>(3), B<posix_memalign>(3)"
1377 msgstr ""
1378 "B<mmap>(2), B<sbrk>(2), B<mallinfo>(3), B<malloc>(3), B<malloc_hook>(3), "
1379 "B<malloc_info>(3), B<malloc_stats>(3), B<malloc_trim>(3), B<mcheck>(3), "
1380 "B<mtrace>(3), B<posix_memalign>(3)"
1381
1382 #. type: TH
1383 #: debian-trixie
1384 #, no-wrap
1385 msgid "2024-06-15"
1386 msgstr "15 июня 2024 г."
1387
1388 #. type: TH
1389 #: debian-trixie
1390 #, no-wrap
1391 msgid "Linux man-pages 6.9.1"
1392 msgstr "Страницы руководства Linux 6.9.1"
1393
1394 #. type: Plain text
1395 #: debian-trixie
1396 msgid "Standard C library (I<libc>, I<-lc>)"
1397 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
1398
1399 #. type: Plain text
1400 #: debian-trixie fedora-44 fedora-rawhide
1401 #, no-wrap
1402 msgid ""
1403 "$ B<./a.out>\n"
1404 "main(): returned from first free() call\n"
1405 "*** glibc detected *** ./a.out: double free or corruption (top): 0x09d30008 ***\n"
1406 "======= Backtrace: =========\n"
1407 "/lib/libc.so.6(+0x6c501)[0x523501]\n"
1408 "/lib/libc.so.6(+0x6dd70)[0x524d70]\n"
1409 "/lib/libc.so.6(cfree+0x6d)[0x527e5d]\n"
1410 "\\&./a.out[0x80485db]\n"
1411 "/lib/libc.so.6(__libc_start_main+0xe7)[0x4cdce7]\n"
1412 "\\&./a.out[0x8048471]\n"
1413 "======= Memory map: ========\n"
1414 "001e4000-001fe000 r-xp 00000000 08:06 1083555 /lib/libgcc_s.so.1\n"
1415 "001fe000-001ff000 r--p 00019000 08:06 1083555 /lib/libgcc_s.so.1\n"
1416 "[some lines omitted]\n"
1417 "b7814000-b7817000 rw-p 00000000 00:00 0\n"
1418 "bff53000-bff74000 rw-p 00000000 00:00 0 [stack]\n"
1419 "Aborted (core dumped)\n"
1420 msgstr ""
1421 "$ B<./a.out>\n"
1422 "main(): возвращение из первого вызова free()\n"
1423 "*** glibc detected *** ./a.out: double free or corruption (top): 0x09d30008 ***\n"
1424 "======= Backtrace: =========\n"
1425 "/lib/libc.so.6(+0x6c501)[0x523501]\n"
1426 "/lib/libc.so.6(+0x6dd70)[0x524d70]\n"
1427 "/lib/libc.so.6(cfree+0x6d)[0x527e5d]\n"
1428 "\\&./a.out[0x80485db]\n"
1429 "/lib/libc.so.6(__libc_start_main+0xe7)[0x4cdce7]\n"
1430 "\\&./a.out[0x8048471]\n"
1431 "======= Memory map: ========\n"
1432 "001e4000-001fe000 r-xp 00000000 08:06 1083555 /lib/libgcc_s.so.1\n"
1433 "001fe000-001ff000 r--p 00019000 08:06 1083555 /lib/libgcc_s.so.1\n"
1434 "[some lines omitted]\n"
1435 "b7814000-b7817000 rw-p 00000000 00:00 0\n"
1436 "bff53000-bff74000 rw-p 00000000 00:00 0 [stack]\n"
1437 "Aborted (core dumped)\n"
1438
1439 #. type: Plain text
1440 #: debian-trixie fedora-44 fedora-rawhide
1441 #, no-wrap
1442 msgid ""
1443 "$ B<./a.out 1> # Diagnose error and continue\n"
1444 "main(): returned from first free() call\n"
1445 "*** glibc detected *** ./a.out: double free or corruption (top): 0x09cbe008 ***\n"
1446 "main(): returned from second free() call\n"
1447 "$ B<./a.out 2> # Abort without error message\n"
1448 "main(): returned from first free() call\n"
1449 "Aborted (core dumped)\n"
1450 "$ B<./a.out 0> # Ignore error and continue\n"
1451 "main(): returned from first free() call\n"
1452 "main(): returned from second free() call\n"
1453 msgstr ""
1454 "$ B<./a.out 1> # показ ошибки и продолжение\n"
1455 "main(): возвращение из первого вызова free()\n"
1456 "*** glibc detected *** ./a.out: double free or corruption (top): 0x09cbe008 ***\n"
1457 "main(): возвращение из второго вызова free()\n"
1458 "$ B<./a.out 2> # прерывание без показа ошибки\n"
1459 "main(): возвращение из первого вызова free()\n"
1460 "Aborted (core dumped)\n"
1461 "$ B<./a.out 0> # игнорирование ошибки и продолжение\n"
1462 "main(): возвращение из первого вызова free()\n"
1463 "main(): возвращение из второго вызова free()\n"
1464
1465 #. type: Plain text
1466 #: debian-trixie fedora-44 fedora-rawhide
1467 #, no-wrap
1468 msgid ""
1469 "$ B<MALLOC_CHECK_=1 ./a.out>\n"
1470 "main(): returned from first free() call\n"
1471 "*** glibc detected *** ./a.out: free(): invalid pointer: 0x092c2008 ***\n"
1472 "main(): returned from second free() call\n"
1473 msgstr ""
1474 "$ B<MALLOC_CHECK_=1 ./a.out>\n"
1475 "main(): возвращение из первого вызова free()\n"
1476 "*** glibc detected *** ./a.out: free(): invalid pointer: 0x092c2008 ***\n"
1477 "main(): возвращение из второго вызова free()\n"
1478
1479 #. type: TH
1480 #: fedora-44 fedora-rawhide
1481 #, no-wrap
1482 msgid "2024-07-23"
1483 msgstr "23 июля 2024 г."
1484
1485 #. type: TH
1486 #: fedora-44 fedora-rawhide
1487 #, no-wrap
1488 msgid "Linux man-pages 6.13"
1489 msgstr "Страницы руководства Linux 6.13"
1490
1491 #. type: TH
1492 #: mageia-cauldron
1493 #, no-wrap
1494 msgid "Linux man-pages 6.17"
1495 msgstr "Страницы руководства Linux 6.17"
1496
1497 #. type: TH
1498 #: opensuse-leap-16-1 opensuse-tumbleweed
1499 #, no-wrap
1500 msgid "Linux man-pages (unreleased)"
1501 msgstr "Страницы руководства Linux (не выпущены)"