Kernel: Move errno.h and (k)assert.h out of the main include directory
This is mostly so IDEs don't pick them up instead of the userspace headers :)
This commit is contained in:
parent
aa90e4a8d9
commit
b035795eb3
@ -1,5 +1,5 @@
|
||||
#include "fs/FileDescriptor.h"
|
||||
#include "errno.h"
|
||||
#include "std/errno.h"
|
||||
|
||||
Descriptor::Descriptor() : m_is_open(false)
|
||||
{
|
||||
|
@ -1,8 +1,8 @@
|
||||
#define MODULE "vfs"
|
||||
|
||||
#include "fs/VFS.h"
|
||||
#include "errno.h"
|
||||
#include "log/Log.h"
|
||||
#include "std/errno.h"
|
||||
#include "std/libgen.h"
|
||||
#include "std/stdlib.h"
|
||||
#include "std/string.h"
|
||||
|
@ -1,9 +1,9 @@
|
||||
#define MODULE "gdt"
|
||||
|
||||
#include "gdt/GDT.h"
|
||||
#include "kassert.h"
|
||||
#include "log/Log.h"
|
||||
#include "memory/MemoryManager.h"
|
||||
#include "std/assert.h"
|
||||
#include "std/string.h"
|
||||
#include <stdint.h>
|
||||
|
||||
|
@ -6,7 +6,6 @@
|
||||
#include "init/InitRD.h"
|
||||
#include "interrupts/Interrupts.h"
|
||||
#include "io/Serial.h"
|
||||
#include "kassert.h"
|
||||
#include "log/Log.h"
|
||||
#include "memory/MemoryManager.h"
|
||||
#include "memory/PMM.h"
|
||||
@ -16,6 +15,7 @@
|
||||
#include "rand/Mersenne.h"
|
||||
#include "render/Framebuffer.h"
|
||||
#include "render/TextRenderer.h"
|
||||
#include "std/assert.h"
|
||||
#include "std/string.h"
|
||||
|
||||
extern BOOTBOOT bootboot;
|
||||
|
@ -2,12 +2,12 @@
|
||||
|
||||
#include "init/InitRD.h"
|
||||
#include "bootboot.h"
|
||||
#include "errno.h"
|
||||
#include "fs/VFS.h"
|
||||
#include "io/Serial.h"
|
||||
#include "log/Log.h"
|
||||
#include "memory/MemoryManager.h"
|
||||
#include "misc/utils.h"
|
||||
#include "std/errno.h"
|
||||
#include "std/stdlib.h"
|
||||
#include "std/string.h"
|
||||
|
||||
|
@ -4,10 +4,10 @@
|
||||
#include "interrupts/IRQ.h"
|
||||
#include "interrupts/Interrupts.h"
|
||||
#include "io/Serial.h"
|
||||
#include "kassert.h"
|
||||
#include "log/Log.h"
|
||||
#include "misc/hang.h"
|
||||
#include "panic/Panic.h"
|
||||
#include "std/assert.h"
|
||||
#include "std/stdio.h"
|
||||
#include "sys/Syscall.h"
|
||||
#include "thread/Scheduler.h"
|
||||
|
@ -1,8 +1,8 @@
|
||||
#define MODULE "idt"
|
||||
|
||||
#include "interrupts/IDT.h"
|
||||
#include "kassert.h"
|
||||
#include "log/Log.h"
|
||||
#include "std/assert.h"
|
||||
|
||||
struct IDTEntry
|
||||
{
|
||||
|
@ -9,11 +9,11 @@
|
||||
#include "interrupts/Install.h"
|
||||
#include "interrupts/Interrupts.h"
|
||||
#include "io/PIC.h"
|
||||
#include "kassert.h"
|
||||
#include "log/Log.h"
|
||||
#include "memory/Memory.h"
|
||||
#include "memory/MemoryMap.h"
|
||||
#include "misc/hang.h"
|
||||
#include "std/assert.h"
|
||||
#include "std/stdlib.h"
|
||||
#include "thread/PIT.h"
|
||||
#include "thread/Scheduler.h"
|
||||
|
@ -3,11 +3,11 @@
|
||||
#include "log/Log.h"
|
||||
#endif
|
||||
|
||||
#include "kassert.h"
|
||||
#include "memory/KernelHeap.h"
|
||||
#include "memory/MemoryManager.h"
|
||||
#include "memory/PMM.h"
|
||||
#include "memory/VMM.h"
|
||||
#include "std/assert.h"
|
||||
|
||||
void MemoryManager::init()
|
||||
{
|
||||
|
@ -2,10 +2,10 @@
|
||||
|
||||
#include "memory/PMM.h"
|
||||
#include "bootboot.h"
|
||||
#include "kassert.h"
|
||||
#include "memory/Memory.h"
|
||||
#include "memory/MemoryManager.h"
|
||||
#include "misc/utils.h"
|
||||
#include "std/assert.h"
|
||||
#include "std/string.h"
|
||||
|
||||
extern BOOTBOOT bootboot;
|
||||
|
@ -1,10 +1,10 @@
|
||||
#define MODULE "vmm"
|
||||
|
||||
#include "memory/VMM.h"
|
||||
#include "kassert.h"
|
||||
#include "log/Log.h"
|
||||
#include "memory/PMM.h"
|
||||
#include "misc/utils.h"
|
||||
#include "std/assert.h"
|
||||
#include "std/string.h"
|
||||
#include "utils/Addresses.h"
|
||||
#include "utils/Registers.h"
|
||||
|
@ -1,7 +1,7 @@
|
||||
#define MODULE "rand"
|
||||
|
||||
#include "rand/Mersenne.h"
|
||||
#include "kassert.h"
|
||||
#include "std/assert.h"
|
||||
#include <stddef.h>
|
||||
|
||||
typedef uint64_t word_t;
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "sys/Syscall.h"
|
||||
#include "errno.h"
|
||||
#include "io/Serial.h"
|
||||
#include "memory/VMM.h"
|
||||
#include "std/errno.h"
|
||||
#include "std/string.h"
|
||||
#include "thread/Scheduler.h"
|
||||
|
||||
|
@ -1,15 +1,15 @@
|
||||
#define MODULE "elf"
|
||||
|
||||
#include "sys/elf/ELFLoader.h"
|
||||
#include "errno.h"
|
||||
#include "fs/VFS.h"
|
||||
#include "init/InitRD.h"
|
||||
#include "kassert.h"
|
||||
#include "log/Log.h"
|
||||
#include "memory/Memory.h"
|
||||
#include "memory/MemoryManager.h"
|
||||
#include "memory/VMM.h"
|
||||
#include "misc/utils.h"
|
||||
#include "std/assert.h"
|
||||
#include "std/errno.h"
|
||||
#include "std/stdlib.h"
|
||||
#include "std/string.h"
|
||||
#include "sys/elf/ELF.h"
|
||||
|
@ -1,12 +1,12 @@
|
||||
#define MODULE "exec"
|
||||
|
||||
#include "errno.h"
|
||||
#include "interrupts/Interrupts.h"
|
||||
#include "kassert.h"
|
||||
#include "log/Log.h"
|
||||
#include "memory/MemoryManager.h"
|
||||
#include "memory/PMM.h"
|
||||
#include "memory/VMM.h"
|
||||
#include "std/assert.h"
|
||||
#include "std/errno.h"
|
||||
#include "std/stdlib.h"
|
||||
#include "std/string.h"
|
||||
#include "sys/Syscall.h"
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "errno.h"
|
||||
#include "std/errno.h"
|
||||
#include "thread/Scheduler.h"
|
||||
|
||||
#define ID_PID 0
|
||||
|
@ -1,12 +1,12 @@
|
||||
#define MODULE "mem"
|
||||
|
||||
#include "errno.h"
|
||||
#include "interrupts/Context.h"
|
||||
#include "log/Log.h"
|
||||
#include "memory/Memory.h"
|
||||
#include "memory/MemoryManager.h"
|
||||
#include "memory/VMM.h"
|
||||
#include "misc/utils.h"
|
||||
#include "std/errno.h"
|
||||
#include "thread/Scheduler.h"
|
||||
#include <stddef.h>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "bootboot.h"
|
||||
#include "errno.h"
|
||||
#include "interrupts/Context.h"
|
||||
#include "render/Framebuffer.h"
|
||||
#include "std/errno.h"
|
||||
#include <stdint.h>
|
||||
|
||||
extern BOOTBOOT bootboot;
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "errno.h"
|
||||
#include "memory/VMM.h"
|
||||
#include "std/errno.h"
|
||||
#include "sys/UserMemory.h"
|
||||
#include "thread/Scheduler.h"
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
#define MODULE "stdio"
|
||||
|
||||
#include "errno.h"
|
||||
#include "interrupts/Context.h"
|
||||
#include "io/Serial.h"
|
||||
#include "log/Log.h"
|
||||
#include "memory/VMM.h"
|
||||
#include "render/TextRenderer.h"
|
||||
#include "std/errno.h"
|
||||
#include "std/stdlib.h"
|
||||
#include "sys/Syscall.h"
|
||||
#include "sys/UserMemory.h"
|
||||
|
@ -1,9 +1,7 @@
|
||||
#define MODULE "sched"
|
||||
|
||||
#include "thread/Scheduler.h"
|
||||
#include "errno.h"
|
||||
#include "interrupts/Interrupts.h"
|
||||
#include "kassert.h"
|
||||
#include "log/Log.h"
|
||||
#include "memory/MemoryManager.h"
|
||||
#include "memory/PMM.h"
|
||||
@ -11,6 +9,8 @@
|
||||
#include "misc/hang.h"
|
||||
#include "misc/utils.h"
|
||||
#include "panic/Panic.h"
|
||||
#include "std/assert.h"
|
||||
#include "std/errno.h"
|
||||
#include "std/stdlib.h"
|
||||
#include "std/string.h"
|
||||
#include "sys/UserMemory.h"
|
||||
|
@ -51,7 +51,7 @@ extern "C"
|
||||
return stream;
|
||||
}
|
||||
|
||||
FILE* freopen(const char* pathname, const char* mode,
|
||||
FILE* freopen(const char* pathname, const char*,
|
||||
FILE* stream) // FIXME: If pathname is NULL, open the original file with the new mode.
|
||||
{
|
||||
int fd = open(pathname, O_RDWR); // FIXME: Use the mode string.
|
||||
|
Loading…
Reference in New Issue
Block a user