mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 19:03:15 +01:00
Finished adding untested shm syscalls. Finished adding untested l4 send/recv helpers Everything compiles. Now going to fix lots of bugs ;-)
20 lines
297 B
C
20 lines
297 B
C
#ifndef __PRIVATE_MALLOC_H__
|
|
#define __PRIVATE_MALLOC_H__
|
|
|
|
#include <stddef.h>
|
|
#include <string.h>
|
|
|
|
void *kmalloc(size_t size);
|
|
void kfree(void *blk);
|
|
|
|
static inline void *kzalloc(size_t size)
|
|
{
|
|
void *buf = kmalloc(size);
|
|
|
|
memset(buf, 0, size);
|
|
return buf;
|
|
}
|
|
|
|
|
|
#endif /*__PRIVATE_MALLOC_H__ */
|