| 1 |
# Polish translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Andrzej Krzysztofowicz <[email protected]>, 2001. |
| 5 |
# Robert Luberda <[email protected]>, 2013, 2017. |
| 6 |
# Michał Kułach <[email protected]>, 2014, 2016, 2024, 2025, 2026. |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: manpages-pl\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:30+0200\n" |
| 11 |
"PO-Revision-Date: 2026-03-25 06:01+0100\n" |
| 12 |
"Last-Translator: Michał Kułach <[email protected]>\n" |
| 13 |
"Language-Team: Polish <[email protected]>\n" |
| 14 |
"Language: pl\n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " |
| 19 |
"|| n%100>=20) ? 1 : 2);\n" |
| 20 |
"X-Generator: Lokalize 25.04.0\n" |
| 21 |
|
| 22 |
#. type: TH |
| 23 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 24 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 25 |
#, no-wrap |
| 26 |
msgid "malloc" |
| 27 |
msgstr "malloc" |
| 28 |
|
| 29 |
#. type: TH |
| 30 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 31 |
#: opensuse-tumbleweed |
| 32 |
#, no-wrap |
| 33 |
msgid "2026-02-08" |
| 34 |
msgstr "8 lutego 2026 r." |
| 35 |
|
| 36 |
#. type: TH |
| 37 |
#: archlinux debian-unstable |
| 38 |
#, no-wrap |
| 39 |
msgid "Linux man-pages 6.18" |
| 40 |
msgstr "Linux man-pages 6.18" |
| 41 |
|
| 42 |
#. type: SH |
| 43 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 44 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 45 |
#, no-wrap |
| 46 |
msgid "NAME" |
| 47 |
msgstr "NAZWA" |
| 48 |
|
| 49 |
#. type: Plain text |
| 50 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 51 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 52 |
msgid "" |
| 53 |
"malloc, free, calloc, realloc, reallocarray - allocate and free dynamic " |
| 54 |
"memory" |
| 55 |
msgstr "" |
| 56 |
"malloc, free, calloc, realloc, reallocarray - przydziela i zwalnia pamięć " |
| 57 |
"dynamiczną" |
| 58 |
|
| 59 |
#. type: SH |
| 60 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 61 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
#, no-wrap |
| 63 |
msgid "LIBRARY" |
| 64 |
msgstr "BIBLIOTEKA" |
| 65 |
|
| 66 |
#. type: Plain text |
| 67 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 68 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 69 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 70 |
msgstr "Standardowa biblioteka C (I<libc>,\\ I<-lc>)" |
| 71 |
|
| 72 |
#. type: SH |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
#, no-wrap |
| 76 |
msgid "SYNOPSIS" |
| 77 |
msgstr "SKŁADNIA" |
| 78 |
|
| 79 |
#. type: Plain text |
| 80 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 81 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 82 |
#, no-wrap |
| 83 |
msgid "B<#include E<lt>stdlib.hE<gt>>\n" |
| 84 |
msgstr "B<#include E<lt>stdlib.hE<gt>>\n" |
| 85 |
|
| 86 |
#. type: Plain text |
| 87 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 88 |
#: opensuse-tumbleweed |
| 89 |
#, no-wrap |
| 90 |
msgid "" |
| 91 |
"B<void *malloc(size_t >I<size>B<);>\n" |
| 92 |
"B<void free(void *_Nullable >I<p>B<);>\n" |
| 93 |
"B<void *calloc(size_t >I<n>B<, size_t >I<size>B<);>\n" |
| 94 |
"B<void *realloc(void *_Nullable >I<p>B<, size_t >I<size>B<);>\n" |
| 95 |
"B<void *reallocarray(void *_Nullable >I<p>B<, size_t >I<n>B<, size_t >I<size>B<);>\n" |
| 96 |
msgstr "" |
| 97 |
"B<void *malloc(size_t >I<size>B<);>\n" |
| 98 |
"B<void free(void *_Nullable >I<p>B<);>\n" |
| 99 |
"B<void *calloc(size_t >I<n>B<, size_t >I<size>B<);>\n" |
| 100 |
"B<void *realloc(void *_Nullable >I<p>B<, size_t >I<size>B<);>\n" |
| 101 |
"B<void *reallocarray(void *_Nullable >I<p>B<, size_t >I<n>B<, size_t >I<size>B<);>\n" |
| 102 |
|
| 103 |
#. type: Plain text |
| 104 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 105 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 106 |
msgid "" |
| 107 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 108 |
msgstr "" |
| 109 |
"Wymagane ustawienia makr biblioteki glibc (patrz B<feature_test_macros>(7)):" |
| 110 |
|
| 111 |
#. type: Plain text |
| 112 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 113 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 114 |
msgid "B<reallocarray>():" |
| 115 |
msgstr "B<reallocarray>():" |
| 116 |
|
| 117 |
#. type: Plain text |
| 118 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 119 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 120 |
#, no-wrap |
| 121 |
msgid "" |
| 122 |
" Since glibc 2.29:\n" |
| 123 |
" _DEFAULT_SOURCE\n" |
| 124 |
" glibc 2.28 and earlier:\n" |
| 125 |
" _GNU_SOURCE\n" |
| 126 |
msgstr "" |
| 127 |
" Od glibc 2.29:\n" |
| 128 |
" _DEFAULT_SOURCE\n" |
| 129 |
" glibc 2.28 i wcześniejsze:\n" |
| 130 |
" _GNU_SOURCE\n" |
| 131 |
|
| 132 |
#. type: SH |
| 133 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 134 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 135 |
#, no-wrap |
| 136 |
msgid "DESCRIPTION" |
| 137 |
msgstr "OPIS" |
| 138 |
|
| 139 |
#. type: SS |
| 140 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 141 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 142 |
#, no-wrap |
| 143 |
msgid "malloc()" |
| 144 |
msgstr "malloc()" |
| 145 |
|
| 146 |
#. type: Plain text |
| 147 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 148 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 149 |
msgid "" |
| 150 |
"The B<malloc>() function allocates I<size> bytes and returns a pointer to " |
| 151 |
"the allocated memory. I<The memory is not initialized>. If I<size> is 0, " |
| 152 |
"then B<malloc>() returns a unique pointer value that can later be " |
| 153 |
"successfully passed to B<free>(). (See \"Nonportable behavior\" for " |
| 154 |
"portability issues.)" |
| 155 |
msgstr "" |
| 156 |
"Funkcja B<malloc>() przydziela pamięć o rozmiarze I<size> bajtów i zwraca " |
| 157 |
"wskaźnik do przydzielonej pamięci. I<Pamięć nie jest inicjowana>. Jeśli " |
| 158 |
"I<size> wynosi 0, to B<malloc>() zwraca unikatową wartość wskaźnika, który " |
| 159 |
"potem można z powodzeniem przekazać do B<free>() (zob. \\[Bq]Nieprzenośne " |
| 160 |
"zachowanie\\[rq])." |
| 161 |
|
| 162 |
#. type: SS |
| 163 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 164 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 165 |
#, no-wrap |
| 166 |
msgid "free()" |
| 167 |
msgstr "free()" |
| 168 |
|
| 169 |
#. type: Plain text |
| 170 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 171 |
#: opensuse-tumbleweed |
| 172 |
msgid "" |
| 173 |
"The B<free>() function frees the memory space pointed to by I<p>, which " |
| 174 |
"must have been returned by a previous call to B<malloc>() or related " |
| 175 |
"functions. Otherwise, or if I<p> has already been freed, undefined behavior " |
| 176 |
"occurs. If I<p> is NULL, no operation is performed." |
| 177 |
msgstr "" |
| 178 |
"Funkcja B<free>() zwalnia obszar pamięci wskazywany przez I<p>, który został " |
| 179 |
"wcześniej przydzielony za pomocą wywołania B<malloc>() lub funkcji " |
| 180 |
"powiązanych. W przeciwnym przypadku lub gdy I<p> zostało już uwolnione, " |
| 181 |
"funkcja zachowa się w sposób nieokreślony. Jeśli I<p> jest równe NULL, nie " |
| 182 |
"zostanie wykonana żadna operacja." |
| 183 |
|
| 184 |
#. type: SS |
| 185 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 186 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 187 |
#, no-wrap |
| 188 |
msgid "calloc()" |
| 189 |
msgstr "calloc()" |
| 190 |
|
| 191 |
#. type: Plain text |
| 192 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 193 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 194 |
msgid "" |
| 195 |
"The B<calloc>() function allocates memory for an array of I<n> elements of " |
| 196 |
"I<size> bytes each and returns a pointer to the allocated memory. The " |
| 197 |
"memory is set to zero. If I<n> or I<size> is 0, then B<calloc>() returns a " |
| 198 |
"unique pointer value that can later be successfully passed to B<free>()." |
| 199 |
msgstr "" |
| 200 |
"Funkcja B<calloc>() przydziela pamięć dla tablicy o liczbie I<n> elementów o " |
| 201 |
"rozmiarze I<size> bajtów każdy i zwraca wskaźnik do przydzielonej pamięci. " |
| 202 |
"Pamięć jest ustawiana na zero. Jeśli I<n> lub I<size> wynosi 0, to " |
| 203 |
"B<calloc>() zwraca unikatową wartość wskaźnika, którą potem można z " |
| 204 |
"powodzeniem przekazać do B<free>()." |
| 205 |
|
| 206 |
#. type: Plain text |
| 207 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 208 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 209 |
msgid "" |
| 210 |
"If the multiplication of I<n> and I<size> would result in integer overflow, " |
| 211 |
"then B<calloc>() returns an error. By contrast, an integer overflow would " |
| 212 |
"not be detected in the following call to B<malloc>(), with the result that " |
| 213 |
"an incorrectly sized block of memory would be allocated:" |
| 214 |
msgstr "" |
| 215 |
"Jeśli przemnożenie I<n> i I<size> spowodowałoby przepełnienie liczby " |
| 216 |
"całkowitej, I<calloc>() zwróci błąd. Przepełnienie nie zostałoby natomiast " |
| 217 |
"wykryte w następującym wywołaniu do B<malloc>(), które spowodowałoby " |
| 218 |
"przydzielenie bloku pamięci o nieprawidłowym rozmiarze:" |
| 219 |
|
| 220 |
#. type: Plain text |
| 221 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 222 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 223 |
#, no-wrap |
| 224 |
msgid "malloc(n * size);\n" |
| 225 |
msgstr "malloc(n * size);\n" |
| 226 |
|
| 227 |
#. type: SS |
| 228 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 229 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 230 |
#, no-wrap |
| 231 |
msgid "realloc()" |
| 232 |
msgstr "realloc()" |
| 233 |
|
| 234 |
#. type: Plain text |
| 235 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 236 |
#: opensuse-tumbleweed |
| 237 |
msgid "" |
| 238 |
"The B<realloc>() function changes the size of the memory block pointed to " |
| 239 |
"by I<p> to I<size> bytes. The contents of the memory will be unchanged in " |
| 240 |
"the range from the start of the region up to the minimum of the old and new " |
| 241 |
"sizes. If the new size is larger than the old size, the added memory will " |
| 242 |
"I<not> be initialized." |
| 243 |
msgstr "" |
| 244 |
"Funkcja B<realloc>() zmienia rozmiar bloku pamięci wskazywanego przez I<p> " |
| 245 |
"na I<size> bajtów. Zawartość pamięci nie zostanie zmieniona w zakresie od " |
| 246 |
"początku obszaru do minimum ze starego i nowego rozmiaru. Jeśli nowy rozmiar " |
| 247 |
"jest większy od starego, to dodana pamięć I<nie> zostanie zainicjowana." |
| 248 |
|
| 249 |
#. type: Plain text |
| 250 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 251 |
#: opensuse-tumbleweed |
| 252 |
msgid "" |
| 253 |
"If I<p> is NULL, then the call is equivalent to I<malloc(size)>, for all " |
| 254 |
"values of I<size>." |
| 255 |
msgstr "" |
| 256 |
"Jeśli I<p> jest równe NULL, to wywołanie jest równoważne I<malloc(size)> dla " |
| 257 |
"wszystkich wartości I<size>." |
| 258 |
|
| 259 |
#. type: Plain text |
| 260 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 261 |
#: opensuse-tumbleweed |
| 262 |
msgid "" |
| 263 |
"If I<size> is equal to zero, and I<p> is not NULL, then the call is " |
| 264 |
"equivalent to I<free(p)> (but see \"Nonportable behavior\" for portability " |
| 265 |
"issues)." |
| 266 |
msgstr "" |
| 267 |
"jeśli I<size> jest równe zeru i I<p> jest różny od NULL, to wywołanie jest " |
| 268 |
"równoważne z I<free(p)> (lecz zob. \\[Bq]Nieprzenośne zachowanie\\[rq] w " |
| 269 |
"sprawie problemów z przenośnością)." |
| 270 |
|
| 271 |
#. type: Plain text |
| 272 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 273 |
#: opensuse-tumbleweed |
| 274 |
msgid "" |
| 275 |
"Unless I<p> is NULL, it must have been returned by an earlier call to " |
| 276 |
"B<malloc> or related functions. If the area pointed to was moved, a " |
| 277 |
"I<free(p)> is done." |
| 278 |
msgstr "" |
| 279 |
"Jeżeli I<p> jest różne od NULL, to musi on pochodzić z wcześniejszego " |
| 280 |
"wywołania B<malloc>() lub powiązanych funkcji. Jeśli wskazywany obszar " |
| 281 |
"został przemieszczony, to wykonywane jest I<free(p)>." |
| 282 |
|
| 283 |
#. type: SS |
| 284 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 285 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 286 |
#, no-wrap |
| 287 |
msgid "reallocarray()" |
| 288 |
msgstr "reallocarray()" |
| 289 |
|
| 290 |
#. type: Plain text |
| 291 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 292 |
#: opensuse-tumbleweed |
| 293 |
msgid "" |
| 294 |
"The B<reallocarray>() function changes the size of (and possibly moves) " |
| 295 |
"the memory block pointed to by I<p> to be large enough for an array of I<n> " |
| 296 |
"elements, each of which is I<size> bytes. It is equivalent to the call" |
| 297 |
msgstr "" |
| 298 |
"Funkcja B<reallocarray>() zmieni rozmiar (i ewentualnie przesunie) blok " |
| 299 |
"pamięci, na który wskazuje I<p>, do wielkości odpowiednio dużej dla tablicy " |
| 300 |
"I<n> elementów, każdy z których ma rozmiar I<size> bajtów. Jest to " |
| 301 |
"równoważne wywołaniu" |
| 302 |
|
| 303 |
#. type: Plain text |
| 304 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 305 |
#: opensuse-tumbleweed |
| 306 |
#, no-wrap |
| 307 |
msgid "realloc(p, n * size);\n" |
| 308 |
msgstr "realloc(p, n * size);\n" |
| 309 |
|
| 310 |
#. type: Plain text |
| 311 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 312 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 313 |
msgid "" |
| 314 |
"However, unlike that B<realloc>() call, B<reallocarray>() fails safely in " |
| 315 |
"the case where the multiplication would overflow. If such an overflow " |
| 316 |
"occurs, B<reallocarray>() returns an error." |
| 317 |
msgstr "" |
| 318 |
"Jednak w odróżnieniu od tego wywołania B<realloc>(), B<reallocarray>() " |
| 319 |
"bezpiecznie zawiedzie w przypadku, w którym mnożenie prowadziłoby do " |
| 320 |
"przepełnienia. Jeśli takie przepełnienie wystąpi, B<reallocarray>() zwróci " |
| 321 |
"błąd." |
| 322 |
|
| 323 |
#. type: SH |
| 324 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 325 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 326 |
#, no-wrap |
| 327 |
msgid "RETURN VALUE" |
| 328 |
msgstr "WARTOŚĆ ZWRACANA" |
| 329 |
|
| 330 |
#. type: Plain text |
| 331 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 332 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 333 |
msgid "" |
| 334 |
"The B<malloc>(), B<calloc>(), B<realloc>(), and B<reallocarray>() functions " |
| 335 |
"return a pointer to the allocated memory, which is suitably aligned for any " |
| 336 |
"type that fits into the requested size or less. On error, these functions " |
| 337 |
"return NULL and set I<errno>. Attempting to allocate more than " |
| 338 |
"B<PTRDIFF_MAX> bytes is considered an error, as an object that large could " |
| 339 |
"cause later pointer subtraction to overflow." |
| 340 |
msgstr "" |
| 341 |
"Funkcje B<malloc>(), B<calloc>(), B<realloc>() i B<reallocarray>() zwracają " |
| 342 |
"wskaźnik do przydzielonej pamięci, który jest odpowiednio wyrównany dla " |
| 343 |
"dowolnego typu, który mieści się w żądanym lub mniejszym rozmiarze. W razie " |
| 344 |
"błędu funkcje te zwracają NULL i ustawiają I<errno>. Próba przydzielenia " |
| 345 |
"więcej niż B<PTRDIFF_MAX> bajtów jest uważana za błąd, ponieważ tak duże " |
| 346 |
"obiekty mogą później spowodować przepełnienie przy odjęciu wskaźnika." |
| 347 |
|
| 348 |
#. type: Plain text |
| 349 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 350 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 351 |
msgid "The B<free>() function returns no value, and preserves I<errno>." |
| 352 |
msgstr "Funkcja B<free>() nie zwraca żadnej wartości i zachowuje I<errno>." |
| 353 |
|
| 354 |
#. type: Plain text |
| 355 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 356 |
#: opensuse-tumbleweed |
| 357 |
msgid "" |
| 358 |
"The B<realloc>() and B<reallocarray>() functions return NULL if I<p> is " |
| 359 |
"not NULL and the requested size is zero; this is not considered an error. " |
| 360 |
"(See \"Nonportable behavior\" for portability issues.) Otherwise, the " |
| 361 |
"returned pointer may be the same as I<p> if the allocation was not moved " |
| 362 |
"(e.g., there was room to expand the allocation in-place), or different from " |
| 363 |
"I<p> if the allocation was moved to a new address. If these functions fail, " |
| 364 |
"the original block is left untouched; it is not freed or moved." |
| 365 |
msgstr "" |
| 366 |
"Funkcje B<realloc>() i B<reallocarray>() zwracają NULL jeśli I<p> nie wynosi " |
| 367 |
"NULL, a żądany rozmiar wynosi zero; nie jest to uważane za błąd (problemy z " |
| 368 |
"przenośnością opisano w rozdziale \\[Bq]Nieprzenośne zachowanie\\[rq]). W " |
| 369 |
"innym przypadku, żądany wskaźnik może być taki sam jak I<p>, jeśli alokacja " |
| 370 |
"nie została przesunięta (np. było miejsce na poszerzenie alokacji w miejscu) " |
| 371 |
"lub inny od I<p>, jeśli alokację przeniesiono pod nowy adres. Jeśli funkcje " |
| 372 |
"te zawiodą, pierwotny blok pozostaje nienaruszony; nie jest zwalniany ani " |
| 373 |
"przesuwany." |
| 374 |
|
| 375 |
#. type: SH |
| 376 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 377 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 378 |
#, no-wrap |
| 379 |
msgid "ERRORS" |
| 380 |
msgstr "BŁĘDY" |
| 381 |
|
| 382 |
#. type: Plain text |
| 383 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 384 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 385 |
msgid "" |
| 386 |
"B<calloc>(), B<malloc>(), B<realloc>(), and B<reallocarray>() can fail with " |
| 387 |
"the following error:" |
| 388 |
msgstr "" |
| 389 |
"B<calloc>(), B<malloc>(), B<realloc>() i B<reallocarray>() mogą zawieść z " |
| 390 |
"następującym błędem:" |
| 391 |
|
| 392 |
#. type: TP |
| 393 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 394 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 395 |
#, no-wrap |
| 396 |
msgid "B<ENOMEM>" |
| 397 |
msgstr "B<ENOMEM>" |
| 398 |
|
| 399 |
#. type: Plain text |
| 400 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 401 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 402 |
msgid "" |
| 403 |
"Out of memory. Possibly, the application hit the B<RLIMIT_AS> or " |
| 404 |
"B<RLIMIT_DATA> limit described in B<getrlimit>(2). Another reason could be " |
| 405 |
"that the number of mappings created by the caller process exceeded the limit " |
| 406 |
"specified by I</proc/sys/vm/max_map_count>." |
| 407 |
msgstr "" |
| 408 |
"Brak wolnej pamięci. Prawdopodobnie aplikację dotknął limit B<RLIMIT_AS> lub " |
| 409 |
"B<RLIMIT_DATA> opisany w B<getrlimit>(2). Innym powodem, może być " |
| 410 |
"przekroczenie liczby mapowań określonej w I</proc/sys/vm/max_map_count> " |
| 411 |
"przez proces wywołujący." |
| 412 |
|
| 413 |
#. type: SH |
| 414 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 415 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 416 |
#, no-wrap |
| 417 |
msgid "ATTRIBUTES" |
| 418 |
msgstr "ATRYBUTY" |
| 419 |
|
| 420 |
#. type: Plain text |
| 421 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 422 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 423 |
msgid "" |
| 424 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 425 |
msgstr "" |
| 426 |
"Informacje o pojęciach używanych w tym rozdziale można znaleźć w podręczniku " |
| 427 |
"B<attributes>(7)." |
| 428 |
|
| 429 |
#. type: tbl table |
| 430 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 431 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 432 |
#, no-wrap |
| 433 |
msgid "Interface" |
| 434 |
msgstr "Interfejs" |
| 435 |
|
| 436 |
#. type: tbl table |
| 437 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 438 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 439 |
#, no-wrap |
| 440 |
msgid "Attribute" |
| 441 |
msgstr "Atrybut" |
| 442 |
|
| 443 |
#. type: tbl table |
| 444 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 445 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 446 |
#, no-wrap |
| 447 |
msgid "Value" |
| 448 |
msgstr "Wartość" |
| 449 |
|
| 450 |
#. type: tbl table |
| 451 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 452 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 453 |
#, no-wrap |
| 454 |
msgid ".na\n" |
| 455 |
msgstr ".na\n" |
| 456 |
|
| 457 |
#. type: tbl table |
| 458 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 459 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 460 |
#, no-wrap |
| 461 |
msgid ".nh\n" |
| 462 |
msgstr ".nh\n" |
| 463 |
|
| 464 |
#. type: tbl table |
| 465 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 466 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 467 |
#, no-wrap |
| 468 |
msgid "" |
| 469 |
"B<malloc>(),\n" |
| 470 |
"B<free>(),\n" |
| 471 |
"B<calloc>(),\n" |
| 472 |
"B<realloc>()" |
| 473 |
msgstr "" |
| 474 |
"B<malloc>(),\n" |
| 475 |
"B<free>(),\n" |
| 476 |
"B<calloc>(),\n" |
| 477 |
"B<realloc>()" |
| 478 |
|
| 479 |
#. type: tbl table |
| 480 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 481 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 482 |
#, no-wrap |
| 483 |
msgid "Thread safety" |
| 484 |
msgstr "Bezpieczeństwo wątkowe" |
| 485 |
|
| 486 |
#. type: tbl table |
| 487 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 488 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 489 |
#, no-wrap |
| 490 |
msgid "MT-Safe" |
| 491 |
msgstr "MT-bezpieczne" |
| 492 |
|
| 493 |
#. type: SH |
| 494 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 495 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 496 |
#, no-wrap |
| 497 |
msgid "STANDARDS" |
| 498 |
msgstr "STANDARDY" |
| 499 |
|
| 500 |
#. type: TP |
| 501 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 502 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 503 |
#, no-wrap |
| 504 |
msgid "B<malloc>()" |
| 505 |
msgstr "B<malloc>()" |
| 506 |
|
| 507 |
#. type: TQ |
| 508 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 509 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 510 |
#, no-wrap |
| 511 |
msgid "B<free>()" |
| 512 |
msgstr "B<free>()" |
| 513 |
|
| 514 |
#. type: TQ |
| 515 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 516 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 517 |
#, no-wrap |
| 518 |
msgid "B<calloc>()" |
| 519 |
msgstr "B<calloc>()" |
| 520 |
|
| 521 |
#. type: TQ |
| 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<realloc>()" |
| 526 |
msgstr "B<realloc>()" |
| 527 |
|
| 528 |
#. type: Plain text |
| 529 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 530 |
#: opensuse-tumbleweed |
| 531 |
msgid "C23, POSIX.1-2024." |
| 532 |
msgstr "C23, POSIX.1-2024." |
| 533 |
|
| 534 |
#. type: TP |
| 535 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 536 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 537 |
#, no-wrap |
| 538 |
msgid "B<reallocarray>()" |
| 539 |
msgstr "B<reallocarray>()" |
| 540 |
|
| 541 |
#. type: Plain text |
| 542 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 543 |
#: opensuse-tumbleweed |
| 544 |
msgid "POSIX.1-2024." |
| 545 |
msgstr "POSIX.1-2024." |
| 546 |
|
| 547 |
#. type: SS |
| 548 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 549 |
#: opensuse-tumbleweed |
| 550 |
#, no-wrap |
| 551 |
msgid "realloc(p, 0)" |
| 552 |
msgstr "realloc(p, 0)" |
| 553 |
|
| 554 |
#. type: Plain text |
| 555 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 556 |
#: opensuse-tumbleweed |
| 557 |
msgid "" |
| 558 |
"The behavior of I<realloc(p,\\ 0)> in glibc doesn't conform to any of C99, " |
| 559 |
"C11, POSIX.1-2001, POSIX.1-2004, POSIX.1-2008, POSIX.1-2013, POSIX.1-2017, " |
| 560 |
"or POSIX.1-2024. The C17 specification was changed to make it conforming, " |
| 561 |
"but that specification made it impossible to write code that reliably " |
| 562 |
"determines if the input pointer is freed after I<realloc(p,\\ 0)>, and C23 " |
| 563 |
"changed it again to make this undefined behavior, acknowledging that the C17 " |
| 564 |
"specification was broad enough, so that undefined behavior wasn't worse than " |
| 565 |
"that." |
| 566 |
msgstr "" |
| 567 |
"Zachowanie I<realloc(p,\\ 0)> nie jest zgodne z C99, C11, POSIX.1-2001, " |
| 568 |
"POSIX.1-2004, POSIX.1-2008, POSIX.1-2013, POSIX.1-2017 ani POSIX.1-2024. " |
| 569 |
"Normę C17 zmieniono tak, aby stało się zgodne, lecz podany w niej sposób " |
| 570 |
"czyni niemożliwym napisanie takiego kodu, który zawsze jest w stanie " |
| 571 |
"ustalić, czy wskaźnik wejściowy jest zwalniany po I<realloc(p,\\ 0)>; z tego " |
| 572 |
"powodu w C23 stało się to ponownie zachowaniem niezdefiniowanym, przyjmując " |
| 573 |
"do wiadomości, że norma C17 była na tyle ogólna, że przewidziane zachowanie " |
| 574 |
"niezdefiniowane nie jest wcale gorszym rozwiązaniem." |
| 575 |
|
| 576 |
#. type: Plain text |
| 577 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 578 |
#: opensuse-tumbleweed |
| 579 |
msgid "B<reallocarray>() suffers the same issues in glibc." |
| 580 |
msgstr "B<reallocarray>() ma te same problemy w glibc." |
| 581 |
|
| 582 |
#. type: Plain text |
| 583 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 584 |
#: opensuse-tumbleweed |
| 585 |
msgid "musl libc and the BSDs conform to all versions of ISO C and POSIX.1." |
| 586 |
msgstr "" |
| 587 |
"libc musl i systemy BSD są zgodne ze wszystkimi wersjami ISO C i POSIX.1." |
| 588 |
|
| 589 |
#. type: Plain text |
| 590 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 591 |
#: opensuse-tumbleweed |
| 592 |
msgid "" |
| 593 |
"gnulib provides the I<realloc-posix> module, which provides wrappers " |
| 594 |
"B<realloc>() and B<reallocarray>() that conform to all versions of ISO C " |
| 595 |
"and POSIX.1." |
| 596 |
msgstr "" |
| 597 |
"gnulib zapewnia moduł I<realloc-posix>, który dostarcza opakowania " |
| 598 |
"B<realloc>() i B<reallocarray>(), które są zgodne ze wszystkimi wersjami ISO " |
| 599 |
"C i POSIX.1." |
| 600 |
|
| 601 |
#. type: Plain text |
| 602 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 603 |
#: opensuse-tumbleweed |
| 604 |
msgid "" |
| 605 |
"There's a proposal to standardize the BSD behavior: E<.UR https:\\://" |
| 606 |
"www.open-std.org/\\:jtc1/\\:sc22/\\:wg14/\\:www/\\:docs/\\:n3621.txt> " |
| 607 |
"E<.UE .>" |
| 608 |
msgstr "" |
| 609 |
"Zaproponowano zestandaryzowanie zachowania BSD: E<.UR https:\\://www.open-" |
| 610 |
"std.org/\\:jtc1/\\:sc22/\\:wg14/\\:www/\\:docs/\\:n3621.txt> E<.UE .>" |
| 611 |
|
| 612 |
#. type: SH |
| 613 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 614 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 615 |
#, no-wrap |
| 616 |
msgid "HISTORY" |
| 617 |
msgstr "HISTORIA" |
| 618 |
|
| 619 |
#. type: Plain text |
| 620 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 621 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 622 |
msgid "POSIX.1-2001, C89." |
| 623 |
msgstr "POSIX.1-2001, C89." |
| 624 |
|
| 625 |
#. type: Plain text |
| 626 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 627 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 628 |
msgid "glibc 2.26. OpenBSD 5.6, FreeBSD 11.0." |
| 629 |
msgstr "glibc 2.26. OpenBSD 5.6, FreeBSD 11.0." |
| 630 |
|
| 631 |
#. type: Plain text |
| 632 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 633 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 634 |
msgid "" |
| 635 |
"B<malloc>() and related functions rejected sizes greater than " |
| 636 |
"B<PTRDIFF_MAX> starting in glibc 2.30." |
| 637 |
msgstr "" |
| 638 |
"Od glibc 2.30, B<malloc>() i powiązane funkcje odmówią rozmiarów większych " |
| 639 |
"od B<PTRDIFF_MAX>." |
| 640 |
|
| 641 |
#. type: Plain text |
| 642 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 643 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 644 |
msgid "B<free>() preserved I<errno> starting in glibc 2.33." |
| 645 |
msgstr "B<free>() zachowuje I<errno> zaczynając od glibc 2.33." |
| 646 |
|
| 647 |
#. type: SS |
| 648 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 649 |
#: opensuse-tumbleweed |
| 650 |
#, no-wrap |
| 651 |
msgid "realloc(p,\\ 0)" |
| 652 |
msgstr "realloc(p,\\ 0)" |
| 653 |
|
| 654 |
#. type: Plain text |
| 655 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 656 |
#: opensuse-tumbleweed |
| 657 |
msgid "" |
| 658 |
"C89 was ambiguous in its specification of I<realloc(p,\\ 0)>. C99 partially " |
| 659 |
"fixed this." |
| 660 |
msgstr "" |
| 661 |
"C89 było niejednoznaczne w określeniu I<realloc(p,\\ 0)>. C99 częściowo to " |
| 662 |
"poprawiło." |
| 663 |
|
| 664 |
#. type: Plain text |
| 665 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 666 |
#: opensuse-tumbleweed |
| 667 |
msgid "" |
| 668 |
"The original implementation in glibc would have been conforming to C99. " |
| 669 |
"However, and ironically, trying to comply with C99 before the standard was " |
| 670 |
"released, glibc changed its behavior in glibc 2.1.1 into something that " |
| 671 |
"ended up not conforming to the final C99 specification (but this is debated, " |
| 672 |
"as the wording of the standard seems self-contradicting)." |
| 673 |
msgstr "" |
| 674 |
"Pierwotna implementacja w glibc byłaby zgodna z C99. Jednak, jak na ironię, " |
| 675 |
"próbując zachować zgodność z C99 jeszcze przed wydaniem standardu, glibc " |
| 676 |
"zmieniło swoje zachowanie w wersji glibc 2.1.1 na to, co ostatecznie stało " |
| 677 |
"się niezgodne z końcową wersją normy C99 (lecz jest to dyskusyjne, bowiem " |
| 678 |
"sformułowanie standardu wygląda na wewnętrznie sprzeczne)." |
| 679 |
|
| 680 |
#. type: SH |
| 681 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 682 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 683 |
#, no-wrap |
| 684 |
msgid "NOTES" |
| 685 |
msgstr "UWAGI" |
| 686 |
|
| 687 |
#. type: Plain text |
| 688 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 689 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 690 |
msgid "" |
| 691 |
"By default, Linux follows an optimistic memory allocation strategy. This " |
| 692 |
"means that when B<malloc>() returns non-NULL there is no guarantee that the " |
| 693 |
"memory really is available. In case it turns out that the system is out of " |
| 694 |
"memory, one or more processes will be killed by the OOM killer. For more " |
| 695 |
"information, see the description of I</proc/sys/vm/overcommit_memory> and I</" |
| 696 |
"proc/sys/vm/oom_adj> in B<proc>(5), and the Linux kernel source file " |
| 697 |
"I<Documentation/vm/overcommit-accounting.rst>." |
| 698 |
msgstr "" |
| 699 |
"Linux stosuje optymistyczną strategię przydzielania pamięci. Oznacza to, że " |
| 700 |
"gdy B<malloc>() zwraca wartość różną od NULL, nie ma gwarancji, iż pamięć " |
| 701 |
"faktycznie jest dostępna. Jeśli okaże się, że systemowi brakło pamięci, " |
| 702 |
"niesławny zabójca OOM (\"out-of-memory killer\") zabije jeden lub więcej " |
| 703 |
"procesów. Więcej informacji zawiera opis plików I</proc/sys/vm/" |
| 704 |
"overcommit_memory> i I</proc/sys/vm/oom_adj> w B<proc>(5) oraz plik " |
| 705 |
"I<Documentation/vm/overcommit-accounting.rst> w źródłach jądra Linuksa." |
| 706 |
|
| 707 |
#. type: Plain text |
| 708 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 709 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 710 |
msgid "" |
| 711 |
"Normally, B<malloc>() allocates memory from the heap, and adjusts the size " |
| 712 |
"of the heap as required, using B<sbrk>(2). When allocating blocks of memory " |
| 713 |
"larger than B<MMAP_THRESHOLD> bytes, the glibc B<malloc>() implementation " |
| 714 |
"allocates the memory as a private anonymous mapping using B<mmap>(2). " |
| 715 |
"B<MMAP_THRESHOLD> is 128\\ kB by default, but is adjustable using " |
| 716 |
"B<mallopt>(3). Prior to Linux 4.7 allocations performed using B<mmap>(2) " |
| 717 |
"were unaffected by the B<RLIMIT_DATA> resource limit; since Linux 4.7, this " |
| 718 |
"limit is also enforced for allocations performed using B<mmap>(2)." |
| 719 |
msgstr "" |
| 720 |
"Zwykle B<malloc>() przydziela pamięć ze sterty i ustawia wymagany rozmiar " |
| 721 |
"sterty, używając B<sbrk>(2). Podczas przydzielania bloków pamięci większych " |
| 722 |
"niż B<MMAP_THRESHOLD> bajtów, implementacja B<malloc>() w glibc używa " |
| 723 |
"prywatnych anonimowych map z B<mmap>(2). B<MMAP_THRESHOLD> domyślnie wynosi " |
| 724 |
"128\\ kB, ale można to zmienić za pomocą B<mallopt>(3). Przed Linuksem 4.7, " |
| 725 |
"limit zasobów B<RLIMIT_DATA> (patrz B<getrlimit>(2)) nie miał zastosowania " |
| 726 |
"do pamięci przydzielonej przy użyciu B<mmap>(2); od Linuksa 4.7 limit ten " |
| 727 |
"stosuje się również dla alokacji dokonywanych za pomocą B<mmap>(2)." |
| 728 |
|
| 729 |
#. type: Plain text |
| 730 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 731 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 732 |
msgid "" |
| 733 |
"To avoid corruption in multithreaded applications, mutexes are used " |
| 734 |
"internally to protect the memory-management data structures employed by " |
| 735 |
"these functions. In a multithreaded application in which threads " |
| 736 |
"simultaneously allocate and free memory, there could be contention for these " |
| 737 |
"mutexes. To scalably handle memory allocation in multithreaded " |
| 738 |
"applications, glibc creates additional I<memory allocation arenas> if mutex " |
| 739 |
"contention is detected. Each arena is a large region of memory that is " |
| 740 |
"internally allocated by the system (using B<brk>(2) or B<mmap>(2)), and " |
| 741 |
"managed with its own mutexes." |
| 742 |
msgstr "" |
| 743 |
"Aby uniknąć uszkodzenia pamięci w aplikacjach wielowątkowych, funkcje te " |
| 744 |
"wewnętrznie stosują muteksy, chroniące struktury danych odnoszące się do " |
| 745 |
"zarządzania pamięcią. W aplikacji wielowątkowej, w której wątki jednocześnie " |
| 746 |
"przydzielają i zwalniają pamięć mogą występować oczekiwania na dostęp do " |
| 747 |
"muteksów. Aby przydział pamięci w aplikacji wielowątkowej był skalowalny, " |
| 748 |
"biblioteka glibc tworzy dodatkowe I<areny przydziału pamięci>, jeśli wykryte " |
| 749 |
"zostanie oczekiwanie na mutex. Każda arena jest dużym regionem pamięci " |
| 750 |
"wewnętrznie zaalokowanym przez system (za pomocą B<brk>(2) lub B<mmap>(2)) i " |
| 751 |
"jest zarządzana przy użyciu jej własnych muteksów." |
| 752 |
|
| 753 |
#. type: Plain text |
| 754 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 755 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 756 |
msgid "" |
| 757 |
"If your program uses a private memory allocator, it should do so by " |
| 758 |
"replacing B<malloc>(), B<free>(), B<calloc>(), and B<realloc>(). The " |
| 759 |
"replacement functions must implement the documented glibc behaviors, " |
| 760 |
"including I<errno> handling, size-zero allocations, and overflow checking; " |
| 761 |
"otherwise, other library routines may crash or operate incorrectly. For " |
| 762 |
"example, if the replacement I<free>() does not preserve I<errno>, then " |
| 763 |
"seemingly unrelated library routines may fail without having a valid reason " |
| 764 |
"in I<errno>. Private memory allocators may also need to replace other glibc " |
| 765 |
"functions; see \"Replacing malloc\" in the glibc manual for details." |
| 766 |
msgstr "" |
| 767 |
"Jeśli dany program używa prywatnego alokatora pamięci, powinien to czynić " |
| 768 |
"przez zastąpienie B<malloc>(), B<free>(), B<calloc>() i B<realloc>(). " |
| 769 |
"Funkcje zastępujące muszą implementować opisywane zachowania glibc, w tym " |
| 770 |
"obsługę I<errno>, alokację o zerowym rozmiarze i sprawdzanie przepełnienia; " |
| 771 |
"w innym przypadku inne funkcje biblioteczne mogą się załamać lub działać " |
| 772 |
"niepoprawnie. Na przykład, jeśli zastępcze I<free>() nie będzie zachowywać " |
| 773 |
"I<errno>, to pozornie niepowiązane funkcje biblioteczne mogą zawodzić bez " |
| 774 |
"prawidłowej przyczyny w I<errno>. Prywatne alokatory pamięci mogą spowodować " |
| 775 |
"konieczność zastąpienia również innych funkcji glibc; więcej szczegółów w " |
| 776 |
"rozdziale \\[Bq]Replacing malloc\\[rq] w podręczniku glibc." |
| 777 |
|
| 778 |
#. type: Plain text |
| 779 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 780 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 781 |
msgid "" |
| 782 |
"Crashes in memory allocators are almost always related to heap corruption, " |
| 783 |
"such as overflowing an allocated chunk or freeing the same pointer twice." |
| 784 |
msgstr "" |
| 785 |
"Załamania w alokatorach pamięci są niemal zawsze związane z uszkodzeniami " |
| 786 |
"sterty, takimi jak przekroczenie rozmiaru przydzielonego fragmentu lub " |
| 787 |
"dwukrotne zwolnienie tego samego wskaźnika." |
| 788 |
|
| 789 |
#. type: Plain text |
| 790 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 791 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 792 |
msgid "" |
| 793 |
"The B<malloc>() implementation is tunable via environment variables; see " |
| 794 |
"B<mallopt>(3) for details." |
| 795 |
msgstr "" |
| 796 |
"Implementację B<malloc>() można dostosowywać za pomocą zmiennych " |
| 797 |
"środowiskowych. Szczegóły opisano w B<mallopt>(3)." |
| 798 |
|
| 799 |
#. type: SS |
| 800 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 801 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 802 |
#, no-wrap |
| 803 |
msgid "Nonportable behavior" |
| 804 |
msgstr "Nieprzenośne zachowanie" |
| 805 |
|
| 806 |
#. type: Plain text |
| 807 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 808 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 809 |
msgid "" |
| 810 |
"The behavior of these functions when the requested size is zero is glibc " |
| 811 |
"specific; other implementations may return NULL without setting I<errno>, " |
| 812 |
"and portable POSIX programs should tolerate such behavior. See " |
| 813 |
"B<realloc>(3p)." |
| 814 |
msgstr "" |
| 815 |
"Zachowanie tych funkcji, gdy żądany rozmiar wynosi zero, zależy od glibc; " |
| 816 |
"inne implementacje mogą zwrócić NULL bez ustawienia I<errno>, a przenośne " |
| 817 |
"programy POSIX powinny tolerować takie zachowanie. Zob. B<realloc>(3p)." |
| 818 |
|
| 819 |
#. type: Plain text |
| 820 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 821 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 822 |
msgid "" |
| 823 |
"POSIX requires memory allocators to set I<errno> upon failure. However, the " |
| 824 |
"C standard does not require this, and applications portable to non-POSIX " |
| 825 |
"platforms should not assume this." |
| 826 |
msgstr "" |
| 827 |
"POSIX wymaga ustawiania I<errno> przez alokatory pamięci, przy " |
| 828 |
"niepowodzeniu. Jednak standard C tego nie wymaga, dlatego aplikacje " |
| 829 |
"przenośne na platformy poza POSIX nie powinny zakładać takiego zachowania." |
| 830 |
|
| 831 |
#. type: Plain text |
| 832 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 833 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 834 |
msgid "" |
| 835 |
"Portable programs should not use private memory allocators, as POSIX and the " |
| 836 |
"C standard do not allow replacement of B<malloc>(), B<free>(), B<calloc>(), " |
| 837 |
"and B<realloc>()." |
| 838 |
msgstr "" |
| 839 |
"Przenośne programy nie powinny używać prywatnych alokatorów pamięci, " |
| 840 |
"ponieważ POSIX i standard C nie dopuszczają zastępowania B<malloc>(), " |
| 841 |
"B<free>(), B<calloc>() i B<realloc>()." |
| 842 |
|
| 843 |
#. type: SH |
| 844 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 845 |
#: opensuse-tumbleweed |
| 846 |
#, no-wrap |
| 847 |
msgid "BUGS" |
| 848 |
msgstr "USTERKI" |
| 849 |
|
| 850 |
#. type: Plain text |
| 851 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 852 |
#: opensuse-tumbleweed |
| 853 |
msgid "" |
| 854 |
"Programmers would naturally expect by induction that I<\\%realloc(p,\\ " |
| 855 |
"size)> is consistent with I<free(p)> and I<malloc(size)>, as that is the " |
| 856 |
"behavior in the general case. This is not explicitly required by " |
| 857 |
"POSIX.1-2024 or C11, but all conforming implementations are consistent with " |
| 858 |
"that." |
| 859 |
msgstr "" |
| 860 |
"Programiści mogliby oczekiwać, że I<\\%realloc(p,\\ size)> jest spójne z " |
| 861 |
"I<free(p)> i I<malloc(size)>, jako że takie zachowanie występuje w ogólnym " |
| 862 |
"przypadku. Nie jest to wprost wymagane przez POSIX.1-2024 ani C11, jednak " |
| 863 |
"wszystkie zgodne implementacje są tu spójne." |
| 864 |
|
| 865 |
#. type: Plain text |
| 866 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 867 |
#: opensuse-tumbleweed |
| 868 |
msgid "" |
| 869 |
"The glibc implementation of B<realloc>() is not consistent with that, and " |
| 870 |
"as a consequence, it is dangerous to call I<\\%realloc(p,\\ 0)> in glibc." |
| 871 |
msgstr "" |
| 872 |
"Implementacja B<realloc>() w glibc nie jest z tym spójna, dlatego " |
| 873 |
"wywoływanie I<\\%realloc(p,\\ 0)> jest niebezpieczne w glibc." |
| 874 |
|
| 875 |
#. type: Plain text |
| 876 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 877 |
#: opensuse-tumbleweed |
| 878 |
msgid "" |
| 879 |
"A trivial workaround for glibc is calling it as I<\\%realloc(p,\\ size?" |
| 880 |
"size:1)>." |
| 881 |
msgstr "" |
| 882 |
"Trywialnym obejściem problemu w glibc jest wywołanie w postaci I<\\" |
| 883 |
"%realloc(p,\\ size?size:1)>." |
| 884 |
|
| 885 |
#. type: Plain text |
| 886 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 887 |
#: opensuse-tumbleweed |
| 888 |
msgid "" |
| 889 |
"The workaround for B<reallocarray>() in glibc \\[em]which shares the same " |
| 890 |
"bug\\[em] would be I<\\%reallocarray(p,\\ n?n:1,\\ size?size:1)>." |
| 891 |
msgstr "" |
| 892 |
"Obejściem problemu w B<reallocarray>() w glibc, które cierpi na tę samą " |
| 893 |
"usterkę, byłoby I<\\%reallocarray(p,\\ n?n:1,\\ size?size:1)>." |
| 894 |
|
| 895 |
#. type: SH |
| 896 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 897 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 898 |
#, no-wrap |
| 899 |
msgid "EXAMPLES" |
| 900 |
msgstr "PRZYKŁADY" |
| 901 |
|
| 902 |
#. type: Plain text |
| 903 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 904 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 905 |
#, no-wrap |
| 906 |
msgid "" |
| 907 |
"#include E<lt>err.hE<gt>\n" |
| 908 |
"#include E<lt>stddef.hE<gt>\n" |
| 909 |
"#include E<lt>stdio.hE<gt>\n" |
| 910 |
"#include E<lt>stdlib.hE<gt>\n" |
| 911 |
"#include E<lt>string.hE<gt>\n" |
| 912 |
"\\&\n" |
| 913 |
"#define MALLOCARRAY(n, type) ((type *) my_mallocarray(n, sizeof(type)))\n" |
| 914 |
"#define MALLOC(type) MALLOCARRAY(1, type)\n" |
| 915 |
"\\&\n" |
| 916 |
"static inline void *my_mallocarray(size_t n, size_t size);\n" |
| 917 |
"\\&\n" |
| 918 |
"int\n" |
| 919 |
"main(void)\n" |
| 920 |
"{\n" |
| 921 |
" char *p;\n" |
| 922 |
"\\&\n" |
| 923 |
" p = MALLOCARRAY(32, char);\n" |
| 924 |
" if (p == NULL)\n" |
| 925 |
" err(EXIT_FAILURE, \"malloc\");\n" |
| 926 |
"\\&\n" |
| 927 |
" strlcpy(p, \"foo\", 32);\n" |
| 928 |
" puts(p);\n" |
| 929 |
"}\n" |
| 930 |
"\\&\n" |
| 931 |
"static inline void *\n" |
| 932 |
"my_mallocarray(size_t n, size_t size)\n" |
| 933 |
"{\n" |
| 934 |
" return reallocarray(NULL, n, size);\n" |
| 935 |
"}\n" |
| 936 |
msgstr "" |
| 937 |
"#include E<lt>err.hE<gt>\n" |
| 938 |
"#include E<lt>stddef.hE<gt>\n" |
| 939 |
"#include E<lt>stdio.hE<gt>\n" |
| 940 |
"#include E<lt>stdlib.hE<gt>\n" |
| 941 |
"#include E<lt>string.hE<gt>\n" |
| 942 |
"\\&\n" |
| 943 |
"#define MALLOCARRAY(n, type) ((type *) my_mallocarray(n, sizeof(type)))\n" |
| 944 |
"#define MALLOC(type) MALLOCARRAY(1, type)\n" |
| 945 |
"\\&\n" |
| 946 |
"static inline void *my_mallocarray(size_t n, size_t size);\n" |
| 947 |
"\\&\n" |
| 948 |
"int\n" |
| 949 |
"main(void)\n" |
| 950 |
"{\n" |
| 951 |
" char *p;\n" |
| 952 |
"\\&\n" |
| 953 |
" p = MALLOCARRAY(32, char);\n" |
| 954 |
" if (p == NULL)\n" |
| 955 |
" err(EXIT_FAILURE, \"malloc\");\n" |
| 956 |
"\\&\n" |
| 957 |
" strlcpy(p, \"foo\", 32);\n" |
| 958 |
" puts(p);\n" |
| 959 |
"}\n" |
| 960 |
"\\&\n" |
| 961 |
"static inline void *\n" |
| 962 |
"my_mallocarray(size_t n, size_t size)\n" |
| 963 |
"{\n" |
| 964 |
" return reallocarray(NULL, n, size);\n" |
| 965 |
"}\n" |
| 966 |
|
| 967 |
#. type: SH |
| 968 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 969 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 970 |
#, no-wrap |
| 971 |
msgid "SEE ALSO" |
| 972 |
msgstr "ZOBACZ TAKŻE" |
| 973 |
|
| 974 |
#. type: Plain text |
| 975 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 976 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 977 |
msgid "" |
| 978 |
"B<valgrind>(1), B<brk>(2), B<mmap>(2), B<alloca>(3), B<malloc_get_state>(3), " |
| 979 |
"B<malloc_info>(3), B<malloc_trim>(3), B<malloc_usable_size>(3), " |
| 980 |
"B<mallopt>(3), B<mcheck>(3), B<mtrace>(3), B<posix_memalign>(3)" |
| 981 |
msgstr "" |
| 982 |
"B<valgrind>(1), B<brk>(2), B<mmap>(2), B<alloca>(3), B<malloc_get_state>(3), " |
| 983 |
"B<malloc_info>(3), B<malloc_trim>(3), B<malloc_usable_size>(3), " |
| 984 |
"B<mallopt>(3), B<mcheck>(3), B<mtrace>(3), B<posix_memalign>(3)" |
| 985 |
|
| 986 |
#. type: Plain text |
| 987 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 988 |
#: opensuse-tumbleweed |
| 989 |
msgid "" |
| 990 |
"For details of the GNU C library implementation, see E<.UR https:\\://" |
| 991 |
"sourceware.org/glibc/wiki/MallocInternals> E<.UE .>" |
| 992 |
msgstr "" |
| 993 |
"Szczegóły na temat implementacji biblioteki GNU C są dostępne pod adresem " |
| 994 |
"E<.UR https:\\://sourceware.org/glibc/wiki/MallocInternals> E<.UE .>" |
| 995 |
|
| 996 |
#. type: TH |
| 997 |
#: debian-trixie |
| 998 |
#, no-wrap |
| 999 |
msgid "2024-05-02" |
| 1000 |
msgstr "2 maja 2024 r." |
| 1001 |
|
| 1002 |
#. type: TH |
| 1003 |
#: debian-trixie |
| 1004 |
#, no-wrap |
| 1005 |
msgid "Linux man-pages 6.9.1" |
| 1006 |
msgstr "Linux man-pages 6.9.1" |
| 1007 |
|
| 1008 |
#. type: Plain text |
| 1009 |
#: debian-trixie |
| 1010 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 1011 |
msgstr "Standardowa biblioteka C (I<libc>, I<-lc>)" |
| 1012 |
|
| 1013 |
#. type: Plain text |
| 1014 |
#: debian-trixie |
| 1015 |
#, no-wrap |
| 1016 |
msgid "" |
| 1017 |
"B<void *malloc(size_t >I<size>B<);>\n" |
| 1018 |
"B<void free(void *_Nullable >I<ptr>B<);>\n" |
| 1019 |
"B<void *calloc(size_t >I<nmemb>B<, size_t >I<size>B<);>\n" |
| 1020 |
"B<void *realloc(void *_Nullable >I<ptr>B<, size_t >I<size>B<);>\n" |
| 1021 |
"B<void *reallocarray(void *_Nullable >I<ptr>B<, size_t >I<nmemb>B<, size_t >I<size>B<);>\n" |
| 1022 |
msgstr "" |
| 1023 |
"B<void *malloc(size_t >I<size>B<);>\n" |
| 1024 |
"B<void free(void *_Nullable >I<ptr>B<);>\n" |
| 1025 |
"B<void *calloc(size_t >I<nmemb>B<, size_t >I<size>B<);>\n" |
| 1026 |
"B<void *realloc(void *_Nullable >I<ptr>B<, size_t >I<size>B<);>\n" |
| 1027 |
"B<void *reallocarray(void *_Nullable >I<ptr>B<, size_t >I<nmemb>B<, size_t >I<size>B<);>\n" |
| 1028 |
|
| 1029 |
#. type: Plain text |
| 1030 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1031 |
msgid "" |
| 1032 |
"The B<free>() function frees the memory space pointed to by I<ptr>, which " |
| 1033 |
"must have been returned by a previous call to B<malloc>() or related " |
| 1034 |
"functions. Otherwise, or if I<ptr> has already been freed, undefined " |
| 1035 |
"behavior occurs. If I<ptr> is NULL, no operation is performed." |
| 1036 |
msgstr "" |
| 1037 |
"Funkcja B<free>() zwalnia obszar pamięci wskazywany przez I<ptr>, który " |
| 1038 |
"został wcześniej przydzielony za pomocą wywołania B<malloc>() lub funkcji " |
| 1039 |
"powiązanych. W przeciwnym przypadku lub gdy I<ptr> zostało już uwolnione, " |
| 1040 |
"funkcja zachowa się w sposób nieokreślony. Jeśli I<ptr> jest równe NULL, nie " |
| 1041 |
"zostanie wykonana żadna operacja." |
| 1042 |
|
| 1043 |
#. type: Plain text |
| 1044 |
#: debian-trixie |
| 1045 |
msgid "" |
| 1046 |
"The B<calloc>() function allocates memory for an array of I<nmemb> elements " |
| 1047 |
"of I<size> bytes each and returns a pointer to the allocated memory. The " |
| 1048 |
"memory is set to zero. If I<nmemb> or I<size> is 0, then B<calloc>() " |
| 1049 |
"returns a unique pointer value that can later be successfully passed to " |
| 1050 |
"B<free>()." |
| 1051 |
msgstr "" |
| 1052 |
"Funkcja B<calloc>() przydziela pamięć dla tablicy o liczbie I<nmemb> " |
| 1053 |
"elementów o rozmiarze I<size> bajtów każdy i zwraca wskaźnik do " |
| 1054 |
"przydzielonej pamięci. Pamięć jest ustawiana na zero. Jeśli I<nmemb> lub " |
| 1055 |
"I<size> wynosi 0, to B<calloc>() zwraca unikatową wartość wskaźnika, którą " |
| 1056 |
"potem można z powodzeniem przekazać do B<free>()." |
| 1057 |
|
| 1058 |
#. type: Plain text |
| 1059 |
#: debian-trixie |
| 1060 |
msgid "" |
| 1061 |
"If the multiplication of I<nmemb> and I<size> would result in integer " |
| 1062 |
"overflow, then B<calloc>() returns an error. By contrast, an integer " |
| 1063 |
"overflow would not be detected in the following call to B<malloc>(), with " |
| 1064 |
"the result that an incorrectly sized block of memory would be allocated:" |
| 1065 |
msgstr "" |
| 1066 |
"Jeśli przemnożenie I<nmemb> i I<size> spowodowałoby przepełnienie liczby " |
| 1067 |
"całkowitej, I<calloc>() zwróci błąd. Przepełnienie nie zostałoby natomiast " |
| 1068 |
"wykryte w następującym wywołaniu do B<malloc>(), które spowodowałoby " |
| 1069 |
"przydzielenie bloku pamięci o nieprawidłowym rozmiarze:" |
| 1070 |
|
| 1071 |
#. type: Plain text |
| 1072 |
#: debian-trixie |
| 1073 |
#, no-wrap |
| 1074 |
msgid "malloc(nmemb * size);\n" |
| 1075 |
msgstr "malloc(nmemb * size);\n" |
| 1076 |
|
| 1077 |
#. type: Plain text |
| 1078 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1079 |
msgid "" |
| 1080 |
"The B<realloc>() function changes the size of the memory block pointed to " |
| 1081 |
"by I<ptr> to I<size> bytes. The contents of the memory will be unchanged in " |
| 1082 |
"the range from the start of the region up to the minimum of the old and new " |
| 1083 |
"sizes. If the new size is larger than the old size, the added memory will " |
| 1084 |
"I<not> be initialized." |
| 1085 |
msgstr "" |
| 1086 |
"Funkcja B<realloc>() zmienia rozmiar bloku pamięci wskazywanego przez I<ptr> " |
| 1087 |
"na I<size> bajtów. Zawartość pamięci nie zostanie zmieniona w zakresie od " |
| 1088 |
"początku obszaru do minimum ze starego i nowego rozmiaru. Jeśli nowy rozmiar " |
| 1089 |
"jest większy od starego, to dodana pamięć I<nie> zostanie zainicjowana." |
| 1090 |
|
| 1091 |
#. type: Plain text |
| 1092 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1093 |
msgid "" |
| 1094 |
"If I<ptr> is NULL, then the call is equivalent to I<malloc(size)>, for all " |
| 1095 |
"values of I<size>." |
| 1096 |
msgstr "" |
| 1097 |
"Jeśli I<ptr> jest równe NULL, to wywołanie jest równoważne I<malloc(size)> " |
| 1098 |
"dla wszystkich wartości I<size>." |
| 1099 |
|
| 1100 |
#. type: Plain text |
| 1101 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1102 |
msgid "" |
| 1103 |
"If I<size> is equal to zero, and I<ptr> is not NULL, then the call is " |
| 1104 |
"equivalent to I<free(ptr)> (but see \"Nonportable behavior\" for portability " |
| 1105 |
"issues)." |
| 1106 |
msgstr "" |
| 1107 |
"jeśli I<size> jest równe zeru i I<ptr> jest różny od NULL, to wywołanie jest " |
| 1108 |
"równoważne z I<free(ptr)> (lecz zob. \\[Bq]Nieprzenośne zachowanie\\[rq] w " |
| 1109 |
"sprawie problemów z przenośnością)." |
| 1110 |
|
| 1111 |
#. type: Plain text |
| 1112 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1113 |
msgid "" |
| 1114 |
"Unless I<ptr> is NULL, it must have been returned by an earlier call to " |
| 1115 |
"B<malloc> or related functions. If the area pointed to was moved, a " |
| 1116 |
"I<free(ptr)> is done." |
| 1117 |
msgstr "" |
| 1118 |
"Jeżeli I<ptr> jest różne od NULL, to musi on pochodzić z wcześniejszego " |
| 1119 |
"wywołania B<malloc>() lub powiązanych funkcji. Jeśli wskazywany obszar " |
| 1120 |
"został przemieszczony, to wykonywane jest I<free(ptr)>." |
| 1121 |
|
| 1122 |
#. type: Plain text |
| 1123 |
#: debian-trixie |
| 1124 |
msgid "" |
| 1125 |
"The B<reallocarray>() function changes the size of (and possibly moves) " |
| 1126 |
"the memory block pointed to by I<ptr> to be large enough for an array of " |
| 1127 |
"I<nmemb> elements, each of which is I<size> bytes. It is equivalent to the " |
| 1128 |
"call" |
| 1129 |
msgstr "" |
| 1130 |
"Funkcja B<reallocarray>() zmieni rozmiar (i ewentualnie przesunie) blok " |
| 1131 |
"pamięci, na który wskazuje I<ptr>, do wielkości odpowiednio dużej dla " |
| 1132 |
"tablicy I<nmemb> elementów, każdy z których ma rozmiar I<size> bajtów. Jest " |
| 1133 |
"to równoważne wywołaniu" |
| 1134 |
|
| 1135 |
#. type: Plain text |
| 1136 |
#: debian-trixie |
| 1137 |
#, no-wrap |
| 1138 |
msgid "realloc(ptr, nmemb * size);\n" |
| 1139 |
msgstr "realloc(ptr, nmemb * size);\n" |
| 1140 |
|
| 1141 |
#. type: Plain text |
| 1142 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1143 |
msgid "" |
| 1144 |
"The B<realloc>() and B<reallocarray>() functions return NULL if I<ptr> is " |
| 1145 |
"not NULL and the requested size is zero; this is not considered an error. " |
| 1146 |
"(See \"Nonportable behavior\" for portability issues.) Otherwise, the " |
| 1147 |
"returned pointer may be the same as I<ptr> if the allocation was not moved " |
| 1148 |
"(e.g., there was room to expand the allocation in-place), or different from " |
| 1149 |
"I<ptr> if the allocation was moved to a new address. If these functions " |
| 1150 |
"fail, the original block is left untouched; it is not freed or moved." |
| 1151 |
msgstr "" |
| 1152 |
"Funkcje B<realloc>() i B<reallocarray>() zwracają NULL jeśli I<ptr> nie " |
| 1153 |
"wynosi NULL, a żądany rozmiar wynosi zero; nie jest to uważane za błąd " |
| 1154 |
"(problemy z przenośnością opisano w rozdziale \\[Bq]Nieprzenośne zachowanie\\" |
| 1155 |
"[rq]). W innym przypadku, żądany wskaźnik może być taki sam jak I<ptr>, " |
| 1156 |
"jeśli alokacja nie została przesunięta (np. było miejsce na poszerzenie " |
| 1157 |
"alokacji w miejscu) lub inny od I<ptr>, jeśli alokację przeniesiono pod nowy " |
| 1158 |
"adres. Jeśli funkcje te zawiodą, pierwotny blok pozostaje nienaruszony; nie " |
| 1159 |
"jest zwalniany ani przesuwany." |
| 1160 |
|
| 1161 |
#. type: Plain text |
| 1162 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1163 |
msgid "C11, POSIX.1-2008." |
| 1164 |
msgstr "C11, POSIX.1-2008." |
| 1165 |
|
| 1166 |
#. type: Plain text |
| 1167 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1168 |
msgid "None." |
| 1169 |
msgstr "Brak." |
| 1170 |
|
| 1171 |
#. type: Plain text |
| 1172 |
#: debian-trixie |
| 1173 |
#, no-wrap |
| 1174 |
msgid "" |
| 1175 |
"#include E<lt>err.hE<gt>\n" |
| 1176 |
"#include E<lt>stddef.hE<gt>\n" |
| 1177 |
"#include E<lt>stdio.hE<gt>\n" |
| 1178 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1179 |
"#include E<lt>string.hE<gt>\n" |
| 1180 |
"\\&\n" |
| 1181 |
"#define MALLOCARRAY(n, type) ((type *) my_mallocarray(n, sizeof(type)))\n" |
| 1182 |
"#define MALLOC(type) MALLOCARRAY(1, type)\n" |
| 1183 |
"\\&\n" |
| 1184 |
"static inline void *my_mallocarray(size_t nmemb, size_t size);\n" |
| 1185 |
"\\&\n" |
| 1186 |
"int\n" |
| 1187 |
"main(void)\n" |
| 1188 |
"{\n" |
| 1189 |
" char *p;\n" |
| 1190 |
"\\&\n" |
| 1191 |
" p = MALLOCARRAY(32, char);\n" |
| 1192 |
" if (p == NULL)\n" |
| 1193 |
" err(EXIT_FAILURE, \"malloc\");\n" |
| 1194 |
"\\&\n" |
| 1195 |
" strlcpy(p, \"foo\", 32);\n" |
| 1196 |
" puts(p);\n" |
| 1197 |
"}\n" |
| 1198 |
"\\&\n" |
| 1199 |
"static inline void *\n" |
| 1200 |
"my_mallocarray(size_t nmemb, size_t size)\n" |
| 1201 |
"{\n" |
| 1202 |
" return reallocarray(NULL, nmemb, size);\n" |
| 1203 |
"}\n" |
| 1204 |
msgstr "" |
| 1205 |
"#include E<lt>err.hE<gt>\n" |
| 1206 |
"#include E<lt>stddef.hE<gt>\n" |
| 1207 |
"#include E<lt>stdio.hE<gt>\n" |
| 1208 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1209 |
"#include E<lt>string.hE<gt>\n" |
| 1210 |
"\\&\n" |
| 1211 |
"#define MALLOCARRAY(n, type) ((type *) my_mallocarray(n, sizeof(type)))\n" |
| 1212 |
"#define MALLOC(type) MALLOCARRAY(1, type)\n" |
| 1213 |
"\\&\n" |
| 1214 |
"static inline void *my_mallocarray(size_t nmemb, size_t size);\n" |
| 1215 |
"\\&\n" |
| 1216 |
"int\n" |
| 1217 |
"main(void)\n" |
| 1218 |
"{\n" |
| 1219 |
" char *p;\n" |
| 1220 |
"\\&\n" |
| 1221 |
" p = MALLOCARRAY(32, char);\n" |
| 1222 |
" if (p == NULL)\n" |
| 1223 |
" err(EXIT_FAILURE, \"malloc\");\n" |
| 1224 |
"\\&\n" |
| 1225 |
" strlcpy(p, \"foo\", 32);\n" |
| 1226 |
" puts(p);\n" |
| 1227 |
"}\n" |
| 1228 |
"\\&\n" |
| 1229 |
"static inline void *\n" |
| 1230 |
"my_mallocarray(size_t nmemb, size_t size)\n" |
| 1231 |
"{\n" |
| 1232 |
" return reallocarray(NULL, nmemb, size);\n" |
| 1233 |
"}\n" |
| 1234 |
|
| 1235 |
#. type: Plain text |
| 1236 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1237 |
msgid "" |
| 1238 |
"For details of the GNU C library implementation, see E<.UR https://" |
| 1239 |
"sourceware.org/glibc/wiki/MallocInternals> E<.UE .>" |
| 1240 |
msgstr "" |
| 1241 |
"Szczegóły na temat implementacji biblioteki GNU C są dostępne pod adresem " |
| 1242 |
"E<.UR https://sourceware.org/glibc/wiki/MallocInternals> E<.UE .>" |
| 1243 |
|
| 1244 |
#. type: TH |
| 1245 |
#: fedora-44 fedora-rawhide |
| 1246 |
#, no-wrap |
| 1247 |
msgid "2024-11-17" |
| 1248 |
msgstr "17 listopada 2024 r." |
| 1249 |
|
| 1250 |
#. type: TH |
| 1251 |
#: fedora-44 fedora-rawhide |
| 1252 |
#, no-wrap |
| 1253 |
msgid "Linux man-pages 6.13" |
| 1254 |
msgstr "Linux man-pages 6.13" |
| 1255 |
|
| 1256 |
#. type: Plain text |
| 1257 |
#: fedora-44 fedora-rawhide |
| 1258 |
#, no-wrap |
| 1259 |
msgid "" |
| 1260 |
"B<void *malloc(size_t >I<size>B<);>\n" |
| 1261 |
"B<void free(void *_Nullable >I<ptr>B<);>\n" |
| 1262 |
"B<void *calloc(size_t >I<n>B<, size_t >I<size>B<);>\n" |
| 1263 |
"B<void *realloc(void *_Nullable >I<ptr>B<, size_t >I<size>B<);>\n" |
| 1264 |
"B<void *reallocarray(void *_Nullable >I<ptr>B<, size_t >I<n>B<, size_t >I<size>B<);>\n" |
| 1265 |
msgstr "" |
| 1266 |
"B<void *malloc(size_t >I<size>B<);>\n" |
| 1267 |
"B<void free(void *_Nullable >I<ptr>B<);>\n" |
| 1268 |
"B<void *calloc(size_t >I<n>B<, size_t >I<size>B<);>\n" |
| 1269 |
"B<void *realloc(void *_Nullable >I<ptr>B<, size_t >I<size>B<);>\n" |
| 1270 |
"B<void *reallocarray(void *_Nullable >I<ptr>B<, size_t >I<n>B<, size_t >I<size>B<);>\n" |
| 1271 |
|
| 1272 |
#. type: Plain text |
| 1273 |
#: fedora-44 fedora-rawhide |
| 1274 |
msgid "" |
| 1275 |
"The B<reallocarray>() function changes the size of (and possibly moves) " |
| 1276 |
"the memory block pointed to by I<ptr> to be large enough for an array of " |
| 1277 |
"I<n> elements, each of which is I<size> bytes. It is equivalent to the call" |
| 1278 |
msgstr "" |
| 1279 |
"Funkcja B<reallocarray>() zmieni rozmiar (i ewentualnie przesunie) blok " |
| 1280 |
"pamięci, na który wskazuje I<ptr>, do wielkości odpowiednio dużej dla " |
| 1281 |
"tablicy I<n> elementów, każdy z których ma rozmiar I<size> bajtów. Jest to " |
| 1282 |
"równoważne wywołaniu" |
| 1283 |
|
| 1284 |
#. type: Plain text |
| 1285 |
#: fedora-44 fedora-rawhide |
| 1286 |
#, no-wrap |
| 1287 |
msgid "realloc(ptr, n * size);\n" |
| 1288 |
msgstr "realloc(ptr, n * size);\n" |
| 1289 |
|
| 1290 |
#. type: TH |
| 1291 |
#: mageia-cauldron |
| 1292 |
#, no-wrap |
| 1293 |
msgid "Linux man-pages 6.17" |
| 1294 |
msgstr "Linux man-pages 6.17" |
| 1295 |
|
| 1296 |
#. type: TH |
| 1297 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1298 |
#, no-wrap |
| 1299 |
msgid "Linux man-pages (unreleased)" |
| 1300 |
msgstr "Linux man-pages (niewydane)" |