mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
a32b3a3ddf
Refactored SyntheticFileSystem to maintain an arbitrary directory structure. ProcFileSystem creates a directory entry in /proc for each new process.
26 lines
348 B
C
26 lines
348 B
C
#pragma once
|
|
|
|
#include "Compiler.h"
|
|
|
|
#ifdef SERENITY
|
|
#ifdef USERLAND
|
|
#include <LibC/stdlib.h>
|
|
#else
|
|
#include <Kernel/kmalloc.h>
|
|
#endif
|
|
#else
|
|
#include <new>
|
|
|
|
#include "Types.h"
|
|
|
|
extern "C" {
|
|
|
|
void* kcalloc(size_t nmemb, size_t size);
|
|
void* kmalloc(size_t size) MALLOC_ATTR;
|
|
void kfree(void* ptr);
|
|
void* krealloc(void* ptr, size_t size);
|
|
|
|
}
|
|
|
|
#endif
|
|
|