blob: f51bfd291021730d087edecf219a31e48d867010 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#include "kmalloc.h"
#ifndef SERENITY
#include <cstdlib>
#endif
extern "C" {
void* kcalloc(size_t nmemb, size_t size)
{
return calloc(nmemb, size);
}
void* kmalloc(size_t size)
{
return malloc(size);
}
void kfree(void* ptr)
{
free(ptr);
}
void* krealloc(void* ptr, size_t size)
{
return realloc(ptr, size);
}
void* kmalloc_eternal(size_t size)
{
return kmalloc(size);
}
}
|