summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-08-02 18:34:39 -0400
committerRich Felker <dalias@aerifal.cx>2013-08-02 18:34:39 -0400
commit2f820f3b1f639fee30f5bfa31aa3191758573f25 (patch)
tree276b437121cc17ff0061e82222bf81ef3399a9fa /src
parent2e5dfa515f78f5a67eb0cd7e323ab6f3ed76c15d (diff)
downloadmusl-2f820f3b1f639fee30f5bfa31aa3191758573f25.tar.gz
musl-2f820f3b1f639fee30f5bfa31aa3191758573f25.tar.bz2
musl-2f820f3b1f639fee30f5bfa31aa3191758573f25.tar.xz
musl-2f820f3b1f639fee30f5bfa31aa3191758573f25.zip
add legacy function valloc
it was already declared in stdlib.h, but not defined anywhere.
Diffstat (limited to 'src')
-rw-r--r--src/legacy/valloc.c8
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);
+}