diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:43:11 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:43:11 +0000 |
commit | fc22b3d6507c6745911b9dfcc68f1e665ae13dbc (patch) | |
tree | ce1e3bce06471410239a6f41282e328770aa404a /templates/man3/mallopt.3.pot | |
parent | Initial commit. (diff) | |
download | manpages-l10n-fc22b3d6507c6745911b9dfcc68f1e665ae13dbc.tar.xz manpages-l10n-fc22b3d6507c6745911b9dfcc68f1e665ae13dbc.zip |
Adding upstream version 4.22.0.upstream/4.22.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'templates/man3/mallopt.3.pot')
-rw-r--r-- | templates/man3/mallopt.3.pot | 1274 |
1 files changed, 1274 insertions, 0 deletions
diff --git a/templates/man3/mallopt.3.pot b/templates/man3/mallopt.3.pot new file mode 100644 index 00000000..148b182d --- /dev/null +++ b/templates/man3/mallopt.3.pot @@ -0,0 +1,1274 @@ +# SOME DESCRIPTIVE TITLE +# Copyright (C) YEAR Free Software Foundation, Inc. +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2024-03-01 17:01+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. type: TH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "mallopt" +msgstr "" + +#. type: TH +#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#, no-wrap +msgid "2023-10-31" +msgstr "" + +#. type: TH +#: archlinux fedora-40 fedora-rawhide mageia-cauldron +#, no-wrap +msgid "Linux man-pages 6.06" +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "NAME" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "mallopt - set memory allocation parameters" +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "LIBRARY" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Standard C library (I<libc>, I<-lc>)" +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "SYNOPSIS" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<#include E<lt>malloc.hE<gt>>\n" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<int mallopt(int >I<param>B<, int >I<value>B<);>\n" +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "DESCRIPTION" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The B<mallopt>() function adjusts parameters that control the behavior of " +"the memory-allocation functions (see B<malloc>(3)). The I<param> argument " +"specifies the parameter to be modified, and I<value> specifies the new value " +"for that parameter." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "The following values can be specified for I<param>:" +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<M_ARENA_MAX>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"If this parameter has a nonzero value, it defines a hard limit on the " +"maximum number of arenas that can be created. An arena represents a pool of " +"memory that can be used by B<malloc>(3) (and similar) calls to service " +"allocation requests. Arenas are thread safe and therefore may have multiple " +"concurrent memory requests. The trade-off is between the number of threads " +"and the number of arenas. The more arenas you have, the lower the per-" +"thread contention, but the higher the memory usage." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The default value of this parameter is 0, meaning that the limit on the " +"number of arenas is determined according to the setting of B<M_ARENA_TEST>." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"This parameter has been available since glibc 2.10 via B<--enable-" +"experimental-malloc>, and since glibc 2.15 by default. In some versions of " +"the allocator there was no limit on the number of created arenas (e.g., " +"CentOS 5, RHEL 5)." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"When employing newer glibc versions, applications may in some cases exhibit " +"high contention when accessing arenas. In these cases, it may be beneficial " +"to increase B<M_ARENA_MAX> to match the number of threads. This is similar " +"in behavior to strategies taken by tcmalloc and jemalloc (e.g., per-thread " +"allocation pools)." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<M_ARENA_TEST>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"This parameter specifies a value, in number of arenas created, at which " +"point the system configuration will be examined to determine a hard limit on " +"the number of created arenas. (See B<M_ARENA_MAX> for the definition of an " +"arena.)" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The computation of the arena hard limit is implementation-defined and is " +"usually calculated as a multiple of the number of available CPUs. Once the " +"hard limit is computed, the result is final and constrains the total number " +"of arenas." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The default value for the B<M_ARENA_TEST> parameter is 2 on systems where " +"I<sizeof(long)> is 4; otherwise the default value is 8." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"This parameter has been available since glibc 2.10 via B<--enable-" +"experimental-malloc>, and since glibc 2.15 by default." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The value of B<M_ARENA_TEST> is not used when B<M_ARENA_MAX> has a nonzero " +"value." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<M_CHECK_ACTION>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Setting this parameter controls how glibc responds when various kinds of " +"programming errors are detected (e.g., freeing the same pointer twice). The " +"3 least significant bits (2, 1, and 0) of the value assigned to this " +"parameter determine the glibc behavior, as follows:" +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "Bit 0" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"If this bit is set, then print a one-line message on I<stderr> that provides " +"details about the error. The message starts with the string \"***\\ glibc " +"detected\\ ***\", followed by the program name, the name of the memory-" +"allocation function in which the error was detected, a brief description of " +"the error, and the memory address where the error was detected." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "Bit 1" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"If this bit is set, then, after printing any error message specified by bit " +"0, the program is terminated by calling B<abort>(3). Since glibc 2.4, if " +"bit 0 is also set, then, between printing the error message and aborting, " +"the program also prints a stack trace in the manner of B<backtrace>(3), and " +"prints the process's memory mapping in the style of I</proc/>pidI</maps> " +"(see B<proc>(5))." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "Bit 2 (since glibc 2.4)" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"This bit has an effect only if bit 0 is also set. If this bit is set, then " +"the one-line message describing the error is simplified to contain just the " +"name of the function where the error was detected and the brief description " +"of the error." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "The remaining bits in I<value> are ignored." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Combining the above details, the following numeric values are meaningful for " +"B<M_CHECK_ACTION>:" +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<0>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Ignore error conditions; continue execution (with undefined results)." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<1>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Print a detailed error message and continue execution." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<2>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Abort the program." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<3>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Print detailed error message, stack trace, and memory mappings, and abort " +"the program." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<5>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Print a simple error message and continue execution." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<7>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Print simple error message, stack trace, and memory mappings, and abort the " +"program." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Since glibc 2.3.4, the default value for the B<M_CHECK_ACTION> parameter is " +"3. In glibc 2.3.3 and earlier, the default value is 1." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Using a nonzero B<M_CHECK_ACTION> value can be useful because otherwise a " +"crash may happen much later, and the true cause of the problem is then very " +"hard to track down." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<M_MMAP_MAX>" +msgstr "" + +#. The following text adapted from comments in the glibc source: +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"This parameter specifies the maximum number of allocation requests that may " +"be simultaneously serviced using B<mmap>(2). This parameter exists because " +"some systems have a limited number of internal tables for use by B<mmap>(2), " +"and using more than a few of them may degrade performance." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The default value is 65,536, a value which has no special significance and " +"which serves only as a safeguard. Setting this parameter to 0 disables the " +"use of B<mmap>(2) for servicing large allocation requests." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<M_MMAP_THRESHOLD>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"For allocations greater than or equal to the limit specified (in bytes) by " +"B<M_MMAP_THRESHOLD> that can't be satisfied from the free list, the memory-" +"allocation functions employ B<mmap>(2) instead of increasing the program " +"break using B<sbrk>(2)." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Allocating memory using B<mmap>(2) has the significant advantage that the " +"allocated memory blocks can always be independently released back to the " +"system. (By contrast, the heap can be trimmed only if memory is freed at " +"the top end.) On the other hand, there are some disadvantages to the use of " +"B<mmap>(2): deallocated space is not placed on the free list for reuse by " +"later allocations; memory may be wasted because B<mmap>(2) allocations must " +"be page-aligned; and the kernel must perform the expensive task of zeroing " +"out memory allocated via B<mmap>(2). Balancing these factors leads to a " +"default setting of 128*1024 for the B<M_MMAP_THRESHOLD> parameter." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The lower limit for this parameter is 0. The upper limit is " +"B<DEFAULT_MMAP_THRESHOLD_MAX>: 512*1024 on 32-bit systems or " +"I<4*1024*1024*sizeof(long)> on 64-bit systems." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"I<Note>: Nowadays, glibc uses a dynamic mmap threshold by default. The " +"initial value of the threshold is 128*1024, but when blocks larger than the " +"current threshold and less than or equal to B<DEFAULT_MMAP_THRESHOLD_MAX> " +"are freed, the threshold is adjusted upward to the size of the freed block. " +"When dynamic mmap thresholding is in effect, the threshold for trimming the " +"heap is also dynamically adjusted to be twice the dynamic mmap threshold. " +"Dynamic adjustment of the mmap threshold is disabled if any of the " +"B<M_TRIM_THRESHOLD>, B<M_TOP_PAD>, B<M_MMAP_THRESHOLD>, or B<M_MMAP_MAX> " +"parameters is set." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<M_MXFAST> (since glibc 2.3)" +msgstr "" + +#. The following text adapted from comments in the glibc sources: +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Set the upper limit for memory allocation requests that are satisfied using " +"\"fastbins\". (The measurement unit for this parameter is bytes.) Fastbins " +"are storage areas that hold deallocated blocks of memory of the same size " +"without merging adjacent free blocks. Subsequent reallocation of blocks of " +"the same size can be handled very quickly by allocating from the fastbin, " +"although memory fragmentation and the overall memory footprint of the " +"program can increase." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The default value for this parameter is I<64*sizeof(size_t)/4> (i.e., 64 on " +"32-bit architectures). The range for this parameter is 0 to " +"I<80*sizeof(size_t)/4>. Setting B<M_MXFAST> to 0 disables the use of " +"fastbins." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<M_PERTURB> (since glibc 2.4)" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"If this parameter is set to a nonzero value, then bytes of allocated memory " +"(other than allocations via B<calloc>(3)) are initialized to the complement " +"of the value in the least significant byte of I<value>, and when allocated " +"memory is released using B<free>(3), the freed bytes are set to the least " +"significant byte of I<value>. This can be useful for detecting errors where " +"programs incorrectly rely on allocated memory being initialized to zero, or " +"reuse values in memory that has already been freed." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "The default value for this parameter is 0." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<M_TOP_PAD>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"This parameter defines the amount of padding to employ when calling " +"B<sbrk>(2) to modify the program break. (The measurement unit for this " +"parameter is bytes.) This parameter has an effect in the following " +"circumstances:" +msgstr "" + +#. type: IP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "\\[bu]" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"When the program break is increased, then B<M_TOP_PAD> bytes are added to " +"the B<sbrk>(2) request." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"When the heap is trimmed as a consequence of calling B<free>(3) (see the " +"discussion of B<M_TRIM_THRESHOLD>) this much free space is preserved at the " +"top of the heap." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"In either case, the amount of padding is always rounded to a system page " +"boundary." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Modifying B<M_TOP_PAD> is a trade-off between increasing the number of " +"system calls (when the parameter is set low) and wasting unused memory at " +"the top of the heap (when the parameter is set high)." +msgstr "" + +#. DEFAULT_TOP_PAD in glibc source +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "The default value for this parameter is 128*1024." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<M_TRIM_THRESHOLD>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"When the amount of contiguous free memory at the top of the heap grows " +"sufficiently large, B<free>(3) employs B<sbrk>(2) to release this memory " +"back to the system. (This can be useful in programs that continue to " +"execute for a long period after freeing a significant amount of memory.) " +"The B<M_TRIM_THRESHOLD> parameter specifies the minimum size (in bytes) that " +"this block of memory must reach before B<sbrk>(2) is used to trim the heap." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The default value for this parameter is 128*1024. Setting " +"B<M_TRIM_THRESHOLD> to -1 disables trimming completely." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"Modifying B<M_TRIM_THRESHOLD> is a trade-off between increasing the number " +"of system calls (when the parameter is set low) and wasting unused memory " +"at the top of the heap (when the parameter is set high)." +msgstr "" + +#. type: SS +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "Environment variables" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"A number of environment variables can be defined to modify some of the same " +"parameters as are controlled by B<mallopt>(). Using these variables has the " +"advantage that the source code of the program need not be changed. To be " +"effective, these variables must be defined before the first call to a memory-" +"allocation function. (If the same parameters are adjusted via B<mallopt>(), " +"then the B<mallopt>() settings take precedence.) For security reasons, " +"these variables are ignored in set-user-ID and set-group-ID programs." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The environment variables are as follows (note the trailing underscore at " +"the end of the name of some variables):" +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<MALLOC_ARENA_MAX>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Controls the same parameter as B<mallopt>() B<M_ARENA_MAX>." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<MALLOC_ARENA_TEST>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Controls the same parameter as B<mallopt>() B<M_ARENA_TEST>." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<MALLOC_CHECK_>" +msgstr "" + +#. On glibc 2.12/x86, a simple malloc()+free() loop is about 70% slower +#. when MALLOC_CHECK_ was set. +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"This environment variable controls the same parameter as B<mallopt>() " +"B<M_CHECK_ACTION>. If this variable is set to a nonzero value, then a " +"special implementation of the memory-allocation functions is used. (This is " +"accomplished using the B<malloc_hook>(3) feature.) This implementation " +"performs additional error checking, but is slower than the standard set of " +"memory-allocation functions. (This implementation does not detect all " +"possible errors; memory leaks can still occur.)" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The value assigned to this environment variable should be a single digit, " +"whose meaning is as described for B<M_CHECK_ACTION>. Any characters beyond " +"the initial digit are ignored." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"For security reasons, the effect of B<MALLOC_CHECK_> is disabled by default " +"for set-user-ID and set-group-ID programs. However, if the file I</etc/suid-" +"debug> exists (the content of the file is irrelevant), then B<MALLOC_CHECK_> " +"also has an effect for set-user-ID and set-group-ID programs." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<MALLOC_MMAP_MAX_>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Controls the same parameter as B<mallopt>() B<M_MMAP_MAX>." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<MALLOC_MMAP_THRESHOLD_>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Controls the same parameter as B<mallopt>() B<M_MMAP_THRESHOLD>." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<MALLOC_PERTURB_>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Controls the same parameter as B<mallopt>() B<M_PERTURB>." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<MALLOC_TRIM_THRESHOLD_>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Controls the same parameter as B<mallopt>() B<M_TRIM_THRESHOLD>." +msgstr "" + +#. type: TP +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "B<MALLOC_TOP_PAD_>" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Controls the same parameter as B<mallopt>() B<M_TOP_PAD>." +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "RETURN VALUE" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "On success, B<mallopt>() returns 1. On error, it returns 0." +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "ERRORS" +msgstr "" + +#. #-#-#-#-# archlinux: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. type: Plain text +#. #-#-#-#-# debian-bookworm: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. .SH VERSIONS +#. Available already in glibc 2.0, possibly earlier +#. type: Plain text +#. #-#-#-#-# debian-unstable: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. type: Plain text +#. #-#-#-#-# fedora-40: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. type: Plain text +#. #-#-#-#-# fedora-rawhide: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. type: Plain text +#. #-#-#-#-# mageia-cauldron: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. type: Plain text +#. #-#-#-#-# opensuse-leap-15-6: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. type: Plain text +#. #-#-#-#-# opensuse-tumbleweed: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "On error, I<errno> is I<not> set." +msgstr "" + +#. type: SH +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "VERSIONS" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"A similar function exists on many System V derivatives, but the range of " +"values for I<param> varies across systems. The SVID defined options " +"B<M_MXFAST>, B<M_NLBLKS>, B<M_GRAIN>, and B<M_KEEP>, but only the first of " +"these is implemented in glibc." +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "STANDARDS" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +msgid "None." +msgstr "" + +#. type: SH +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "HISTORY" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-leap-15-6 opensuse-tumbleweed +msgid "glibc 2.0." +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "BUGS" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "Specifying an invalid value for I<param> does not generate an error." +msgstr "" + +#. #-#-#-#-# archlinux: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. FIXME . This looks buggy: +#. setting the M_MXFAST limit rounds up: (s + SIZE_SZ) & ~MALLOC_ALIGN_MASK) +#. malloc requests are rounded up: +#. (req) + SIZE_SZ + MALLOC_ALIGN_MASK) & ~MALLOC_ALIGN_MASK +#. https://www.sourceware.org/bugzilla/show_bug.cgi?id=12129 +#. type: Plain text +#. #-#-#-#-# debian-bookworm: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. FIXME . This looks buggy: +#. setting the M_MXFAST limit rounds up: (s + SIZE_SZ) & ~MALLOC_ALIGN_MASK) +#. malloc requests are rounded up: +#. (req) + SIZE_SZ + MALLOC_ALIGN_MASK) & ~MALLOC_ALIGN_MASK +#. http://sources.redhat.com/bugzilla/show_bug.cgi?id=12129 +#. type: Plain text +#. #-#-#-#-# debian-unstable: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. FIXME . This looks buggy: +#. setting the M_MXFAST limit rounds up: (s + SIZE_SZ) & ~MALLOC_ALIGN_MASK) +#. malloc requests are rounded up: +#. (req) + SIZE_SZ + MALLOC_ALIGN_MASK) & ~MALLOC_ALIGN_MASK +#. https://www.sourceware.org/bugzilla/show_bug.cgi?id=12129 +#. type: Plain text +#. #-#-#-#-# fedora-40: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. FIXME . This looks buggy: +#. setting the M_MXFAST limit rounds up: (s + SIZE_SZ) & ~MALLOC_ALIGN_MASK) +#. malloc requests are rounded up: +#. (req) + SIZE_SZ + MALLOC_ALIGN_MASK) & ~MALLOC_ALIGN_MASK +#. https://www.sourceware.org/bugzilla/show_bug.cgi?id=12129 +#. type: Plain text +#. #-#-#-#-# fedora-rawhide: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. FIXME . This looks buggy: +#. setting the M_MXFAST limit rounds up: (s + SIZE_SZ) & ~MALLOC_ALIGN_MASK) +#. malloc requests are rounded up: +#. (req) + SIZE_SZ + MALLOC_ALIGN_MASK) & ~MALLOC_ALIGN_MASK +#. https://www.sourceware.org/bugzilla/show_bug.cgi?id=12129 +#. type: Plain text +#. #-#-#-#-# mageia-cauldron: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. FIXME . This looks buggy: +#. setting the M_MXFAST limit rounds up: (s + SIZE_SZ) & ~MALLOC_ALIGN_MASK) +#. malloc requests are rounded up: +#. (req) + SIZE_SZ + MALLOC_ALIGN_MASK) & ~MALLOC_ALIGN_MASK +#. https://www.sourceware.org/bugzilla/show_bug.cgi?id=12129 +#. type: Plain text +#. #-#-#-#-# opensuse-leap-15-6: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. FIXME . This looks buggy: +#. setting the M_MXFAST limit rounds up: (s + SIZE_SZ) & ~MALLOC_ALIGN_MASK) +#. malloc requests are rounded up: +#. (req) + SIZE_SZ + MALLOC_ALIGN_MASK) & ~MALLOC_ALIGN_MASK +#. https://www.sourceware.org/bugzilla/show_bug.cgi?id=12129 +#. type: Plain text +#. #-#-#-#-# opensuse-tumbleweed: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. FIXME . This looks buggy: +#. setting the M_MXFAST limit rounds up: (s + SIZE_SZ) & ~MALLOC_ALIGN_MASK) +#. malloc requests are rounded up: +#. (req) + SIZE_SZ + MALLOC_ALIGN_MASK) & ~MALLOC_ALIGN_MASK +#. https://www.sourceware.org/bugzilla/show_bug.cgi?id=12129 +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"A calculation error within the glibc implementation means that a call of the " +"form:" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "mallopt(M_MXFAST, n)\n" +msgstr "" + +#. Bins are multiples of 2 * sizeof(size_t) + sizeof(size_t) +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"does not result in fastbins being employed for all allocations of size up to " +"I<n>. To ensure desired results, I<n> should be rounded up to the next " +"multiple greater than or equal to I<(2k+1)*sizeof(size_t)>, where I<k> is an " +"integer." +msgstr "" + +#. #-#-#-#-# archlinux: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12140 +#. type: Plain text +#. #-#-#-#-# debian-bookworm: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. FIXME . http://sources.redhat.com/bugzilla/show_bug.cgi?id=12140 +#. type: Plain text +#. #-#-#-#-# debian-unstable: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12140 +#. type: Plain text +#. #-#-#-#-# fedora-40: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12140 +#. type: Plain text +#. #-#-#-#-# fedora-rawhide: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12140 +#. type: Plain text +#. #-#-#-#-# mageia-cauldron: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12140 +#. type: Plain text +#. #-#-#-#-# opensuse-leap-15-6: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12140 +#. type: Plain text +#. #-#-#-#-# opensuse-tumbleweed: mallopt.3.pot (PACKAGE VERSION) #-#-#-#-# +#. FIXME . https://www.sourceware.org/bugzilla/show_bug.cgi?id=12140 +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"If B<mallopt>() is used to set B<M_PERTURB>, then, as expected, the bytes " +"of allocated memory are initialized to the complement of the byte in " +"I<value>, and when that memory is freed, the bytes of the region are " +"initialized to the byte specified in I<value>. However, there is an off-by-" +"I<sizeof(size_t)> error in the implementation: instead of initializing " +"precisely the block of memory being freed by the call I<free(p)>, the block " +"starting at I<p+sizeof(size_t)> is initialized." +msgstr "" + +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "EXAMPLES" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The program below demonstrates the use of B<M_CHECK_ACTION>. If the program " +"is supplied with an (integer) command-line argument, then that argument is " +"used to set the B<M_CHECK_ACTION> parameter. The program then allocates a " +"block of memory, and frees it twice (an error)." +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The following shell session shows what happens when we run this program " +"under glibc, with the default value for B<M_CHECK_ACTION>:" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +"$ B<./a.out>\n" +"main(): returned from first free() call\n" +"*** glibc detected *** ./a.out: double free or corruption (top): 0x09d30008 ***\n" +"======= Backtrace: =========\n" +"/lib/libc.so.6(+0x6c501)[0x523501]\n" +"/lib/libc.so.6(+0x6dd70)[0x524d70]\n" +"/lib/libc.so.6(cfree+0x6d)[0x527e5d]\n" +"\\&./a.out[0x80485db]\n" +"/lib/libc.so.6(__libc_start_main+0xe7)[0x4cdce7]\n" +"\\&./a.out[0x8048471]\n" +"======= Memory map: ========\n" +"001e4000-001fe000 r-xp 00000000 08:06 1083555 /lib/libgcc_s.so.1\n" +"001fe000-001ff000 r--p 00019000 08:06 1083555 /lib/libgcc_s.so.1\n" +"[some lines omitted]\n" +"b7814000-b7817000 rw-p 00000000 00:00 0\n" +"bff53000-bff74000 rw-p 00000000 00:00 0 [stack]\n" +"Aborted (core dumped)\n" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The following runs show the results when employing other values for " +"B<M_CHECK_ACTION>:" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +"$ B<./a.out 1> # Diagnose error and continue\n" +"main(): returned from first free() call\n" +"*** glibc detected *** ./a.out: double free or corruption (top): 0x09cbe008 ***\n" +"main(): returned from second free() call\n" +"$ B<./a.out 2> # Abort without error message\n" +"main(): returned from first free() call\n" +"Aborted (core dumped)\n" +"$ B<./a.out 0> # Ignore error and continue\n" +"main(): returned from first free() call\n" +"main(): returned from second free() call\n" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"The next run shows how to set the same parameter using the B<MALLOC_CHECK_> " +"environment variable:" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "" +"$ B<MALLOC_CHECK_=1 ./a.out>\n" +"main(): returned from first free() call\n" +"*** glibc detected *** ./a.out: free(): invalid pointer: 0x092c2008 ***\n" +"main(): returned from second free() call\n" +msgstr "" + +#. type: SS +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "Program source" +msgstr "" + +#. type: Plain text +#: archlinux debian-unstable fedora-40 fedora-rawhide mageia-cauldron +#: opensuse-tumbleweed +#, no-wrap +msgid "" +"#include E<lt>malloc.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" +"\\&\n" +"int\n" +"main(int argc, char *argv[])\n" +"{\n" +" char *p;\n" +"\\&\n" +" if (argc E<gt> 1) {\n" +" if (mallopt(M_CHECK_ACTION, atoi(argv[1])) != 1) {\n" +" fprintf(stderr, \"mallopt() failed\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +" }\n" +"\\&\n" +" p = malloc(1000);\n" +" if (p == NULL) {\n" +" fprintf(stderr, \"malloc() failed\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +"\\&\n" +" free(p);\n" +" printf(\"%s(): returned from first free() call\\en\", __func__);\n" +"\\&\n" +" free(p);\n" +" printf(\"%s(): returned from second free() call\\en\", __func__);\n" +"\\&\n" +" exit(EXIT_SUCCESS);\n" +"}\n" +msgstr "" + +#. SRC END +#. type: SH +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +#, no-wrap +msgid "SEE ALSO" +msgstr "" + +#. type: Plain text +#: archlinux debian-bookworm debian-unstable fedora-40 fedora-rawhide +#: mageia-cauldron opensuse-leap-15-6 opensuse-tumbleweed +msgid "" +"B<mmap>(2), B<sbrk>(2), B<mallinfo>(3), B<malloc>(3), B<malloc_hook>(3), " +"B<malloc_info>(3), B<malloc_stats>(3), B<malloc_trim>(3), B<mcheck>(3), " +"B<mtrace>(3), B<posix_memalign>(3)" +msgstr "" + +#. type: TH +#: debian-bookworm +#, no-wrap +msgid "2023-02-05" +msgstr "" + +#. type: TH +#: debian-bookworm +#, no-wrap +msgid "Linux man-pages 6.03" +msgstr "" + +#. .SH NOTES +#. type: Plain text +#: debian-bookworm +msgid "" +"This function is not specified by POSIX or the C standards. A similar " +"function exists on many System V derivatives, but the range of values for " +"I<param> varies across systems. The SVID defined options B<M_MXFAST>, " +"B<M_NLBLKS>, B<M_GRAIN>, and B<M_KEEP>, but only the first of these is " +"implemented in glibc." +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +"#include E<lt>malloc.hE<gt>\n" +"#include E<lt>stdio.hE<gt>\n" +"#include E<lt>stdlib.hE<gt>\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +"int\n" +"main(int argc, char *argv[])\n" +"{\n" +" char *p;\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +" if (argc E<gt> 1) {\n" +" if (mallopt(M_CHECK_ACTION, atoi(argv[1])) != 1) {\n" +" fprintf(stderr, \"mallopt() failed\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +" }\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +" p = malloc(1000);\n" +" if (p == NULL) {\n" +" fprintf(stderr, \"malloc() failed\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +" free(p);\n" +" printf(\"%s(): returned from first free() call\\en\", __func__);\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +" free(p);\n" +" printf(\"%s(): returned from second free() call\\en\", __func__);\n" +msgstr "" + +#. type: Plain text +#: debian-bookworm opensuse-leap-15-6 +#, no-wrap +msgid "" +" exit(EXIT_SUCCESS);\n" +"}\n" +msgstr "" + +#. type: TH +#: debian-unstable opensuse-tumbleweed +#, no-wrap +msgid "2023-05-03" +msgstr "" + +#. type: TH +#: debian-unstable opensuse-tumbleweed +#, no-wrap +msgid "Linux man-pages 6.05.01" +msgstr "" + +#. type: TH +#: opensuse-leap-15-6 +#, no-wrap +msgid "2023-03-30" +msgstr "" + +#. type: TH +#: opensuse-leap-15-6 +#, no-wrap +msgid "Linux man-pages 6.04" +msgstr "" |