musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/malloc/memalign.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2020年06月03日 19:13:40 -0400
committerRich Felker <dalias@aerifal.cx>2020年06月03日 19:13:40 -0400
commite07138b880dcc72d3f1b3a2d2c1af75c2484c8d7 (patch)
tree0957258e2d2f1ecf710db6e3063f392f99636656 /src/malloc/memalign.c
parentfc18facf6e5a1ce344ba1f5c797cf1594f49bbd8 (diff)
downloadmusl-e07138b880dcc72d3f1b3a2d2c1af75c2484c8d7.tar.gz
rename memalign source file back to its proper name
Diffstat (limited to 'src/malloc/memalign.c')
-rw-r--r--src/malloc/memalign.c 7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/malloc/memalign.c b/src/malloc/memalign.c
new file mode 100644
index 00000000..32cd87d8
--- /dev/null
+++ b/src/malloc/memalign.c
@@ -0,0 +1,7 @@
+#define _BSD_SOURCE
+#include <stdlib.h>
+
+void *memalign(size_t align, size_t len)
+{
+ return aligned_alloc(align, len);
+}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月28日 00:13:24 +0000

AltStyle によって変換されたページ (->オリジナル) /