aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/lib/stdlib/liballoc.h
blob: 37a1624c8cd3f6eaea1b9bd023d76a9b2f04a1ff (plain) (blame)
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
#ifndef MELVIX_ALLOC_H
#define MELVIX_ALLOC_H

#include <stddef.h>

int liballoc_lock();

int liballoc_unlock();

void *liballoc_alloc(size_t);

int liballoc_free(void *, size_t);

void *kmalloc(size_t);

void *krealloc(void *, size_t);

void *kcalloc(size_t, size_t);

void kfree(void *);

void *umalloc(size_t);

void *urealloc(void *, size_t);

void *ucalloc(size_t, size_t);

void ufree(void *);

#endif