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/legacy/valloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/legacy/valloc.c')
-rw-r--r--src/legacy/valloc.c 8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/legacy/valloc.c b/src/legacy/valloc.c
new file mode 100644
index 00000000..e48cf214
--- /dev/null
+++ b/src/legacy/valloc.c
@@ -0,0 +1,8 @@
+#define _BSD_SOURCE
+#include <stdlib.h>
+#include <limits.h>
+
+void *valloc(size_t size)
+{
+ return memalign(PAGE_SIZE, size);
+}
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月06日 21:46:37 +0000

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