| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:35+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "posix_memalign" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2026-02-08" |
| 31 |
msgstr "" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 41 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "" |
| 45 |
|
| 46 |
#. type: Plain text |
| 47 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 48 |
#: opensuse-tumbleweed |
| 49 |
msgid "posix_memalign - allocate aligned memory" |
| 50 |
msgstr "" |
| 51 |
|
| 52 |
#. type: SH |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
#, no-wrap |
| 56 |
msgid "LIBRARY" |
| 57 |
msgstr "" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 61 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 63 |
msgstr "" |
| 64 |
|
| 65 |
#. type: SH |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "SYNOPSIS" |
| 70 |
msgstr "" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
#, no-wrap |
| 76 |
msgid "B<#include E<lt>stdlib.hE<gt>>\n" |
| 77 |
msgstr "" |
| 78 |
|
| 79 |
#. type: Plain text |
| 80 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 81 |
#: opensuse-tumbleweed |
| 82 |
#, no-wrap |
| 83 |
msgid "B<int posix_memalign(void **>I<memptr>B<, size_t >I<alignment>B<, size_t >I<size>B<);>\n" |
| 84 |
msgstr "" |
| 85 |
|
| 86 |
#. type: Plain text |
| 87 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 88 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 89 |
msgid "" |
| 90 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 91 |
msgstr "" |
| 92 |
|
| 93 |
#. type: Plain text |
| 94 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 95 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 96 |
msgid "B<posix_memalign>():" |
| 97 |
msgstr "" |
| 98 |
|
| 99 |
#. type: Plain text |
| 100 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 101 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 102 |
#, no-wrap |
| 103 |
msgid " _POSIX_C_SOURCE E<gt>= 200112L\n" |
| 104 |
msgstr "" |
| 105 |
|
| 106 |
#. type: SH |
| 107 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 108 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 109 |
#, no-wrap |
| 110 |
msgid "DESCRIPTION" |
| 111 |
msgstr "" |
| 112 |
|
| 113 |
#. glibc does this: |
| 114 |
#. type: Plain text |
| 115 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 116 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 117 |
msgid "" |
| 118 |
"B<posix_memalign>() allocates I<size> bytes and places the address of the " |
| 119 |
"allocated memory in I<*memptr>. The address of the allocated memory will be " |
| 120 |
"a multiple of I<alignment>, which must be a power of two and a multiple of " |
| 121 |
"I<sizeof(void\\ *)>. This address can later be successfully passed to " |
| 122 |
"B<free>(3). If I<size> is 0, then the value placed in I<*memptr> is either " |
| 123 |
"NULL or a unique pointer value." |
| 124 |
msgstr "" |
| 125 |
|
| 126 |
#. type: Plain text |
| 127 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 128 |
#: opensuse-tumbleweed |
| 129 |
msgid "The memory is not zeroed." |
| 130 |
msgstr "" |
| 131 |
|
| 132 |
#. type: Plain text |
| 133 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 134 |
#: opensuse-tumbleweed |
| 135 |
msgid "" |
| 136 |
"B<aligned_alloc>(3) is a standard function that provides the same " |
| 137 |
"functionality, and has a more ergonomic prototype. Use that instead." |
| 138 |
msgstr "" |
| 139 |
|
| 140 |
#. type: SH |
| 141 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 142 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 143 |
#, no-wrap |
| 144 |
msgid "RETURN VALUE" |
| 145 |
msgstr "" |
| 146 |
|
| 147 |
#. type: Plain text |
| 148 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 149 |
#: opensuse-tumbleweed |
| 150 |
msgid "" |
| 151 |
"B<posix_memalign>() returns zero on success, or one of the error values " |
| 152 |
"listed in the next section on failure. The value of I<errno> is not set." |
| 153 |
msgstr "" |
| 154 |
|
| 155 |
#. type: SH |
| 156 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 157 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 158 |
#, no-wrap |
| 159 |
msgid "ERRORS" |
| 160 |
msgstr "" |
| 161 |
|
| 162 |
#. type: TP |
| 163 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 164 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 165 |
#, no-wrap |
| 166 |
msgid "B<EINVAL>" |
| 167 |
msgstr "" |
| 168 |
|
| 169 |
#. type: Plain text |
| 170 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 171 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 172 |
msgid "" |
| 173 |
"The I<alignment> argument was not a power of two, or was not a multiple of " |
| 174 |
"I<sizeof(void\\ *)>." |
| 175 |
msgstr "" |
| 176 |
|
| 177 |
#. type: TP |
| 178 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 179 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 180 |
#, no-wrap |
| 181 |
msgid "B<ENOMEM>" |
| 182 |
msgstr "" |
| 183 |
|
| 184 |
#. type: Plain text |
| 185 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 186 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 187 |
msgid "Out of memory." |
| 188 |
msgstr "" |
| 189 |
|
| 190 |
#. type: SH |
| 191 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 192 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 193 |
#, no-wrap |
| 194 |
msgid "ATTRIBUTES" |
| 195 |
msgstr "" |
| 196 |
|
| 197 |
#. type: Plain text |
| 198 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 199 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 200 |
msgid "" |
| 201 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 202 |
msgstr "" |
| 203 |
|
| 204 |
#. type: tbl table |
| 205 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 206 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 207 |
#, no-wrap |
| 208 |
msgid "Interface" |
| 209 |
msgstr "" |
| 210 |
|
| 211 |
#. type: tbl table |
| 212 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 213 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 214 |
#, no-wrap |
| 215 |
msgid "Attribute" |
| 216 |
msgstr "" |
| 217 |
|
| 218 |
#. type: tbl table |
| 219 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 220 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 221 |
#, no-wrap |
| 222 |
msgid "Value" |
| 223 |
msgstr "" |
| 224 |
|
| 225 |
#. type: tbl table |
| 226 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 227 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 228 |
#, no-wrap |
| 229 |
msgid ".na\n" |
| 230 |
msgstr "" |
| 231 |
|
| 232 |
#. type: tbl table |
| 233 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 234 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 235 |
#, no-wrap |
| 236 |
msgid ".nh\n" |
| 237 |
msgstr "" |
| 238 |
|
| 239 |
#. #-#-#-#-# archlinux: posix_memalign.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 240 |
#. type: tbl table |
| 241 |
#. #-#-#-#-# debian-trixie: posix_memalign.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 242 |
#. type: TP |
| 243 |
#. #-#-#-#-# debian-unstable: posix_memalign.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 244 |
#. type: tbl table |
| 245 |
#. #-#-#-#-# fedora-44: posix_memalign.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 246 |
#. type: TP |
| 247 |
#. #-#-#-#-# fedora-rawhide: posix_memalign.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 248 |
#. type: TP |
| 249 |
#. #-#-#-#-# mageia-cauldron: posix_memalign.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 250 |
#. type: tbl table |
| 251 |
#. #-#-#-#-# opensuse-leap-16-1: posix_memalign.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 252 |
#. type: tbl table |
| 253 |
#. #-#-#-#-# opensuse-tumbleweed: posix_memalign.3.pot (PACKAGE VERSION) #-#-#-#-# |
| 254 |
#. type: tbl table |
| 255 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 256 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 257 |
#, no-wrap |
| 258 |
msgid "B<posix_memalign>()" |
| 259 |
msgstr "" |
| 260 |
|
| 261 |
#. type: tbl table |
| 262 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 263 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 264 |
#, no-wrap |
| 265 |
msgid "Thread safety" |
| 266 |
msgstr "" |
| 267 |
|
| 268 |
#. type: tbl table |
| 269 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 270 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 271 |
#, no-wrap |
| 272 |
msgid "MT-Safe" |
| 273 |
msgstr "" |
| 274 |
|
| 275 |
#. type: SH |
| 276 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 277 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 278 |
#, no-wrap |
| 279 |
msgid "STANDARDS" |
| 280 |
msgstr "" |
| 281 |
|
| 282 |
#. type: Plain text |
| 283 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 284 |
#: opensuse-tumbleweed |
| 285 |
msgid "POSIX.1-2024." |
| 286 |
msgstr "" |
| 287 |
|
| 288 |
#. type: SH |
| 289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 290 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 291 |
#, no-wrap |
| 292 |
msgid "HISTORY" |
| 293 |
msgstr "" |
| 294 |
|
| 295 |
#. type: Plain text |
| 296 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 297 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 298 |
msgid "glibc 2.1.91. POSIX.1d, POSIX.1-2001." |
| 299 |
msgstr "" |
| 300 |
|
| 301 |
#. type: SH |
| 302 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 303 |
#: opensuse-tumbleweed |
| 304 |
#, no-wrap |
| 305 |
msgid "CAVEATS" |
| 306 |
msgstr "" |
| 307 |
|
| 308 |
#. http://austingroupbugs.net/view.php?id=520 |
| 309 |
#. type: Plain text |
| 310 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 311 |
#: opensuse-tumbleweed |
| 312 |
msgid "" |
| 313 |
"On Linux (and other systems), B<posix_memalign>() does not modify I<memptr> " |
| 314 |
"on failure. A requirement standardizing this behavior was added in " |
| 315 |
"POSIX.1-2008 TC2." |
| 316 |
msgstr "" |
| 317 |
|
| 318 |
#. type: SH |
| 319 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 320 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 321 |
#, no-wrap |
| 322 |
msgid "SEE ALSO" |
| 323 |
msgstr "" |
| 324 |
|
| 325 |
#. type: Plain text |
| 326 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 327 |
#: opensuse-tumbleweed |
| 328 |
msgid "B<aligned_alloc>(3)" |
| 329 |
msgstr "" |
| 330 |
|
| 331 |
#. type: TH |
| 332 |
#: debian-trixie |
| 333 |
#, no-wrap |
| 334 |
msgid "2024-05-02" |
| 335 |
msgstr "" |
| 336 |
|
| 337 |
#. type: TH |
| 338 |
#: debian-trixie |
| 339 |
#, no-wrap |
| 340 |
msgid "Linux man-pages 6.9.1" |
| 341 |
msgstr "" |
| 342 |
|
| 343 |
#. type: Plain text |
| 344 |
#: debian-trixie fedora-44 fedora-rawhide |
| 345 |
msgid "" |
| 346 |
"posix_memalign, aligned_alloc, memalign, valloc, pvalloc - allocate aligned " |
| 347 |
"memory" |
| 348 |
msgstr "" |
| 349 |
|
| 350 |
#. type: Plain text |
| 351 |
#: debian-trixie |
| 352 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 353 |
msgstr "" |
| 354 |
|
| 355 |
#. type: Plain text |
| 356 |
#: debian-trixie fedora-44 fedora-rawhide |
| 357 |
#, no-wrap |
| 358 |
msgid "" |
| 359 |
"B<int posix_memalign(void **>I<memptr>B<, size_t >I<alignment>B<, size_t >I<size>B<);>\n" |
| 360 |
"B<void *aligned_alloc(size_t >I<alignment>B<, size_t >I<size>B<);>\n" |
| 361 |
"B<[[deprecated]] void *valloc(size_t >I<size>B<);>\n" |
| 362 |
msgstr "" |
| 363 |
|
| 364 |
#. type: Plain text |
| 365 |
#: debian-trixie fedora-44 fedora-rawhide |
| 366 |
#, no-wrap |
| 367 |
msgid "B<#include E<lt>malloc.hE<gt>>\n" |
| 368 |
msgstr "" |
| 369 |
|
| 370 |
#. type: Plain text |
| 371 |
#: debian-trixie fedora-44 fedora-rawhide |
| 372 |
#, no-wrap |
| 373 |
msgid "" |
| 374 |
"B<[[deprecated]] void *memalign(size_t >I<alignment>B<, size_t >I<size>B<);>\n" |
| 375 |
"B<[[deprecated]] void *pvalloc(size_t >I<size>B<);>\n" |
| 376 |
msgstr "" |
| 377 |
|
| 378 |
#. type: Plain text |
| 379 |
#: debian-trixie fedora-44 fedora-rawhide |
| 380 |
msgid "B<aligned_alloc>():" |
| 381 |
msgstr "" |
| 382 |
|
| 383 |
#. type: Plain text |
| 384 |
#: debian-trixie fedora-44 fedora-rawhide |
| 385 |
#, no-wrap |
| 386 |
msgid " _ISOC11_SOURCE\n" |
| 387 |
msgstr "" |
| 388 |
|
| 389 |
#. type: Plain text |
| 390 |
#: debian-trixie fedora-44 fedora-rawhide |
| 391 |
msgid "B<valloc>():" |
| 392 |
msgstr "" |
| 393 |
|
| 394 |
#. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED |
| 395 |
#. type: Plain text |
| 396 |
#: debian-trixie fedora-44 fedora-rawhide |
| 397 |
#, no-wrap |
| 398 |
msgid "" |
| 399 |
" Since glibc 2.12:\n" |
| 400 |
" (_XOPEN_SOURCE E<gt>= 500) && !(_POSIX_C_SOURCE E<gt>= 200112L)\n" |
| 401 |
" || /* glibc E<gt>= 2.19: */ _DEFAULT_SOURCE\n" |
| 402 |
" || /* glibc E<lt>= 2.19: */ _SVID_SOURCE || _BSD_SOURCE\n" |
| 403 |
" Before glibc 2.12:\n" |
| 404 |
" _BSD_SOURCE || _XOPEN_SOURCE E<gt>= 500\n" |
| 405 |
msgstr "" |
| 406 |
|
| 407 |
#. The behavior of memalign() for size==0 is as for posix_memalign() |
| 408 |
#. but no standards govern this. |
| 409 |
#. type: Plain text |
| 410 |
#: debian-trixie fedora-44 fedora-rawhide |
| 411 |
msgid "" |
| 412 |
"The obsolete function B<memalign>() allocates I<size> bytes and returns a " |
| 413 |
"pointer to the allocated memory. The memory address will be a multiple of " |
| 414 |
"I<alignment>, which must be a power of two." |
| 415 |
msgstr "" |
| 416 |
|
| 417 |
#. type: Plain text |
| 418 |
#: debian-trixie fedora-44 fedora-rawhide |
| 419 |
msgid "" |
| 420 |
"B<aligned_alloc>() is the same as B<memalign>(), except for the added " |
| 421 |
"restriction that I<alignment> must be a power of two." |
| 422 |
msgstr "" |
| 423 |
|
| 424 |
#. type: Plain text |
| 425 |
#: debian-trixie fedora-44 fedora-rawhide |
| 426 |
msgid "" |
| 427 |
"The obsolete function B<valloc>() allocates I<size> bytes and returns a " |
| 428 |
"pointer to the allocated memory. The memory address will be a multiple of " |
| 429 |
"the page size. It is equivalent to I<memalign(sysconf(_SC_PAGESIZE),size)>." |
| 430 |
msgstr "" |
| 431 |
|
| 432 |
#. type: Plain text |
| 433 |
#: debian-trixie fedora-44 fedora-rawhide |
| 434 |
msgid "" |
| 435 |
"The obsolete function B<pvalloc>() is similar to B<valloc>(), but rounds " |
| 436 |
"the size of the allocation up to the next multiple of the system page size." |
| 437 |
msgstr "" |
| 438 |
|
| 439 |
#. type: Plain text |
| 440 |
#: debian-trixie fedora-44 fedora-rawhide |
| 441 |
msgid "For all of these functions, the memory is not zeroed." |
| 442 |
msgstr "" |
| 443 |
|
| 444 |
#. type: Plain text |
| 445 |
#: debian-trixie fedora-44 fedora-rawhide |
| 446 |
msgid "" |
| 447 |
"B<aligned_alloc>(), B<memalign>(), B<valloc>(), and B<pvalloc>() return a " |
| 448 |
"pointer to the allocated memory on success. On error, NULL is returned, and " |
| 449 |
"I<errno> is set to indicate the error." |
| 450 |
msgstr "" |
| 451 |
|
| 452 |
#. http://austingroupbugs.net/view.php?id=520 |
| 453 |
#. type: Plain text |
| 454 |
#: debian-trixie fedora-44 fedora-rawhide |
| 455 |
msgid "" |
| 456 |
"B<posix_memalign>() returns zero on success, or one of the error values " |
| 457 |
"listed in the next section on failure. The value of I<errno> is not set. " |
| 458 |
"On Linux (and other systems), B<posix_memalign>() does not modify I<memptr> " |
| 459 |
"on failure. A requirement standardizing this behavior was added in " |
| 460 |
"POSIX.1-2008 TC2." |
| 461 |
msgstr "" |
| 462 |
|
| 463 |
#. type: tbl table |
| 464 |
#: debian-trixie fedora-44 fedora-rawhide |
| 465 |
#, no-wrap |
| 466 |
msgid "" |
| 467 |
"B<aligned_alloc>(),\n" |
| 468 |
"B<memalign>(),\n" |
| 469 |
"B<posix_memalign>()" |
| 470 |
msgstr "" |
| 471 |
|
| 472 |
#. type: tbl table |
| 473 |
#: debian-trixie fedora-44 fedora-rawhide |
| 474 |
#, no-wrap |
| 475 |
msgid "" |
| 476 |
"B<valloc>(),\n" |
| 477 |
"B<pvalloc>()" |
| 478 |
msgstr "" |
| 479 |
|
| 480 |
#. type: tbl table |
| 481 |
#: debian-trixie fedora-44 fedora-rawhide |
| 482 |
#, no-wrap |
| 483 |
msgid "MT-Unsafe init" |
| 484 |
msgstr "" |
| 485 |
|
| 486 |
#. type: TP |
| 487 |
#: debian-trixie fedora-44 fedora-rawhide |
| 488 |
#, no-wrap |
| 489 |
msgid "B<aligned_alloc>()" |
| 490 |
msgstr "" |
| 491 |
|
| 492 |
#. type: Plain text |
| 493 |
#: debian-trixie fedora-44 fedora-rawhide |
| 494 |
msgid "C11." |
| 495 |
msgstr "" |
| 496 |
|
| 497 |
#. type: Plain text |
| 498 |
#: debian-trixie fedora-44 fedora-rawhide |
| 499 |
msgid "POSIX.1-2008." |
| 500 |
msgstr "" |
| 501 |
|
| 502 |
#. type: TP |
| 503 |
#: debian-trixie fedora-44 fedora-rawhide |
| 504 |
#, no-wrap |
| 505 |
msgid "B<memalign>()" |
| 506 |
msgstr "" |
| 507 |
|
| 508 |
#. type: TP |
| 509 |
#: debian-trixie fedora-44 fedora-rawhide |
| 510 |
#, no-wrap |
| 511 |
msgid "B<valloc>()" |
| 512 |
msgstr "" |
| 513 |
|
| 514 |
#. type: Plain text |
| 515 |
#: debian-trixie fedora-44 fedora-rawhide |
| 516 |
msgid "None." |
| 517 |
msgstr "" |
| 518 |
|
| 519 |
#. type: TP |
| 520 |
#: debian-trixie fedora-44 fedora-rawhide |
| 521 |
#, no-wrap |
| 522 |
msgid "B<pvalloc>()" |
| 523 |
msgstr "" |
| 524 |
|
| 525 |
#. type: Plain text |
| 526 |
#: debian-trixie fedora-44 fedora-rawhide |
| 527 |
msgid "GNU." |
| 528 |
msgstr "" |
| 529 |
|
| 530 |
#. type: Plain text |
| 531 |
#: debian-trixie fedora-44 fedora-rawhide |
| 532 |
msgid "glibc 2.16. C11." |
| 533 |
msgstr "" |
| 534 |
|
| 535 |
#. type: Plain text |
| 536 |
#: debian-trixie fedora-44 fedora-rawhide |
| 537 |
msgid "glibc 2.0. SunOS 4.1.3." |
| 538 |
msgstr "" |
| 539 |
|
| 540 |
#. type: Plain text |
| 541 |
#: debian-trixie fedora-44 fedora-rawhide |
| 542 |
msgid "" |
| 543 |
"glibc 2.0. 3.0BSD. Documented as obsolete in 4.3BSD, and as legacy in " |
| 544 |
"SUSv2." |
| 545 |
msgstr "" |
| 546 |
|
| 547 |
#. type: Plain text |
| 548 |
#: debian-trixie fedora-44 fedora-rawhide |
| 549 |
msgid "glibc 2.0." |
| 550 |
msgstr "" |
| 551 |
|
| 552 |
#. type: SS |
| 553 |
#: debian-trixie fedora-44 fedora-rawhide |
| 554 |
#, no-wrap |
| 555 |
msgid "Headers" |
| 556 |
msgstr "" |
| 557 |
|
| 558 |
#. type: Plain text |
| 559 |
#: debian-trixie fedora-44 fedora-rawhide |
| 560 |
msgid "" |
| 561 |
"Everybody agrees that B<posix_memalign>() is declared in " |
| 562 |
"I<E<lt>stdlib.hE<gt>>." |
| 563 |
msgstr "" |
| 564 |
|
| 565 |
#. type: Plain text |
| 566 |
#: debian-trixie fedora-44 fedora-rawhide |
| 567 |
msgid "" |
| 568 |
"On some systems B<memalign>() is declared in I<E<lt>stdlib.hE<gt>> instead " |
| 569 |
"of I<E<lt>malloc.hE<gt>>." |
| 570 |
msgstr "" |
| 571 |
|
| 572 |
#. Libc4,5 and |
| 573 |
#. type: Plain text |
| 574 |
#: debian-trixie fedora-44 fedora-rawhide |
| 575 |
msgid "" |
| 576 |
"According to SUSv2, B<valloc>() is declared in I<E<lt>stdlib.hE<gt>>. " |
| 577 |
"glibc declares it in I<E<lt>malloc.hE<gt>>, and also in " |
| 578 |
"I<E<lt>stdlib.hE<gt>> if suitable feature test macros are defined (see " |
| 579 |
"above)." |
| 580 |
msgstr "" |
| 581 |
|
| 582 |
#. type: SH |
| 583 |
#: debian-trixie fedora-44 fedora-rawhide |
| 584 |
#, no-wrap |
| 585 |
msgid "NOTES" |
| 586 |
msgstr "" |
| 587 |
|
| 588 |
#. type: Plain text |
| 589 |
#: debian-trixie fedora-44 fedora-rawhide |
| 590 |
msgid "" |
| 591 |
"On many systems there are alignment restrictions, for example, on buffers " |
| 592 |
"used for direct block device I/O. POSIX specifies the " |
| 593 |
"I<pathconf(path,_PC_REC_XFER_ALIGN)> call that tells what alignment is " |
| 594 |
"needed. Now one can use B<posix_memalign>() to satisfy this requirement." |
| 595 |
msgstr "" |
| 596 |
|
| 597 |
#. type: Plain text |
| 598 |
#: debian-trixie fedora-44 fedora-rawhide |
| 599 |
msgid "" |
| 600 |
"B<posix_memalign>() verifies that I<alignment> matches the requirements " |
| 601 |
"detailed above. B<memalign>() may not check that the I<alignment> argument " |
| 602 |
"is correct." |
| 603 |
msgstr "" |
| 604 |
|
| 605 |
#. Other systems allow passing the result of |
| 606 |
#. .IR valloc () |
| 607 |
#. to |
| 608 |
#. .IR free (3), |
| 609 |
#. but not to |
| 610 |
#. .IR realloc (3). |
| 611 |
#. type: Plain text |
| 612 |
#: debian-trixie fedora-44 fedora-rawhide |
| 613 |
msgid "" |
| 614 |
"POSIX requires that memory obtained from B<posix_memalign>() can be freed " |
| 615 |
"using B<free>(3). Some systems provide no way to reclaim memory allocated " |
| 616 |
"with B<memalign>() or B<valloc>() (because one can pass to B<free>(3) " |
| 617 |
"only a pointer obtained from B<malloc>(3), while, for example, " |
| 618 |
"B<memalign>() would call B<malloc>(3) and then align the obtained value). " |
| 619 |
"The glibc implementation allows memory obtained from any of these functions " |
| 620 |
"to be reclaimed with B<free>(3)." |
| 621 |
msgstr "" |
| 622 |
|
| 623 |
#. type: Plain text |
| 624 |
#: debian-trixie fedora-44 fedora-rawhide |
| 625 |
msgid "" |
| 626 |
"The glibc B<malloc>(3) always returns 8-byte aligned memory addresses, so " |
| 627 |
"these functions are needed only if you require larger alignment values." |
| 628 |
msgstr "" |
| 629 |
|
| 630 |
#. type: Plain text |
| 631 |
#: debian-trixie fedora-44 fedora-rawhide |
| 632 |
msgid "B<brk>(2), B<getpagesize>(2), B<free>(3), B<malloc>(3)" |
| 633 |
msgstr "" |
| 634 |
|
| 635 |
#. type: TH |
| 636 |
#: fedora-44 fedora-rawhide |
| 637 |
#, no-wrap |
| 638 |
msgid "2024-07-23" |
| 639 |
msgstr "" |
| 640 |
|
| 641 |
#. type: TH |
| 642 |
#: fedora-44 fedora-rawhide |
| 643 |
#, no-wrap |
| 644 |
msgid "Linux man-pages 6.13" |
| 645 |
msgstr "" |
| 646 |
|
| 647 |
#. type: TH |
| 648 |
#: mageia-cauldron |
| 649 |
#, no-wrap |
| 650 |
msgid "Linux man-pages 6.17" |
| 651 |
msgstr "" |
| 652 |
|
| 653 |
#. type: TH |
| 654 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 655 |
#, no-wrap |
| 656 |
msgid "Linux man-pages (unreleased)" |
| 657 |
msgstr "" |