summaryrefslogtreecommitdiff
path: root/doc/glibc-functions/memalign.texi
blob: ec2f5336782218fec674cd2650b34487ce5bffcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@node memalign
@subsection @code{memalign}
@findex memalign

Documentation:
@itemize
@item
@ifinfo
@ref{Aligned Memory Blocks,,Allocating Aligned Memory Blocks,libc},
@end ifinfo
@ifnotinfo
@url{https://www.gnu.org/software/libc/manual/html_node/Aligned-Memory-Blocks.html},
@end ifnotinfo
@item
@uref{https://www.kernel.org/doc/man-pages/online/pages/man3/memalign.3.html,,man memalign}.
@end itemize

Gnulib module: memalign

Portability problems fixed by Gnulib:
@itemize
@item
This function is declared in @code{<stdlib.h>} instead of @code{<malloc.h>}
on some platforms:
Solaris 11.
@item
This function doesn't accept an alignment of 1 or 2 on some platforms:
Solaris 11.
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
Mac OS X 10.13, FreeBSD 6.0, NetBSD 9.0, OpenBSD 6.7, Minix 3.1.8, AIX 5.1, HP-UX 11.00, mingw, MSVC 14.
@end itemize

The Gnulib module @code{aligned-malloc} provides functions for
allocating and freeing blocks of suitably aligned memory.