add legacy function valloc

it was already declared in stdlib.h, but not defined anywhere.
This commit is contained in:
Rich Felker 2013-08-02 18:34:39 -04:00
parent 2e5dfa515f
commit 2f820f3b1f
1 changed files with 8 additions and 0 deletions

8
src/legacy/valloc.c Normal file
View File

@ -0,0 +1,8 @@
#define _BSD_SOURCE
#include <stdlib.h>
#include <limits.h>
void *valloc(size_t size)
{
return memalign(PAGE_SIZE, size);
}