mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-22 02:26:11 +00:00
![Andreas Kling](/assets/img/avatar_default.png)
Refactored SyntheticFileSystem to maintain an arbitrary directory structure. ProcFileSystem creates a directory entry in /proc for each new process.
27 lines
348 B
C
27 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
|
|
|