errno-h: document Haiku errors can’t be -1
[gnulib.git] / doc / glibc-functions / memalign.texi
blob1d85e4fb9c522fa469c8e1ae57cc956f32c94e91
1 @node memalign
2 @subsection @code{memalign}
3 @findex memalign
5 Documentation:
6 @itemize
7 @item
8 @ifinfo
9 @ref{Aligned Memory Blocks,,Allocating Aligned Memory Blocks,libc},
10 @end ifinfo
11 @ifnotinfo
12 @url{https://www.gnu.org/software/libc/manual/html_node/Aligned-Memory-Blocks.html},
13 @end ifnotinfo
14 @item
15 @uref{https://www.kernel.org/doc/man-pages/online/pages/man3/memalign.3.html,,man memalign}.
16 @end itemize
18 Gnulib module: memalign
19 @mindex memalign
21 Portability problems fixed by Gnulib:
22 @itemize
23 @item
24 This function is declared in @code{<stdlib.h>} instead of @code{<malloc.h>}
25 on some platforms:
26 Solaris 11.
27 @item
28 This function doesn't accept an alignment of 1 or 2 on some platforms:
29 Solaris 11.
30 @end itemize
32 Portability problems not fixed by Gnulib:
33 @itemize
34 @item
35 This function is missing on some platforms:
36 macOS 14, FreeBSD 12.0, NetBSD 10.0, OpenBSD 7.5, Minix 3.1.8, AIX 5.1, HP-UX 11.00, mingw, MSVC 14.
37 @end itemize
39 @mindex aligned-malloc
40 The Gnulib module @code{aligned-malloc} provides functions for
41 allocating and freeing blocks of suitably aligned memory.