projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e5dfa5
)
add legacy function valloc
author
Rich Felker
<dalias@aerifal.cx>
Fri, 2 Aug 2013 22:34:39 +0000
(18:34 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 2 Aug 2013 22:34:39 +0000
(18:34 -0400)
it was already declared in stdlib.h, but not defined anywhere.
src/legacy/valloc.c
[new file with mode: 0644]
patch
|
blob
diff --git a/src/legacy/valloc.c
b/src/legacy/valloc.c
new file mode 100644
(file)
index 0000000..
e48cf21
--- /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);
+}