Kernel+LibC: Move name length constants to Kernel/API from limits.h

Reduce inclusion of limits.h as much as possible at the same time.

This does mean that kmalloc.h is now including Kernel/API/POSIX/limits.h
instead of LibC/limits.h, but the scope could be limited a lot more.
Basically every file in the kernel includes kmalloc.h, and needs the
limits.h include for PAGE_SIZE.
This commit is contained in:
Andrew Kaster 2023-01-07 11:14:17 -07:00 committed by Andrew Kaster
commit ddea37b521
Notes: sideshowbarker 2024-07-17 01:25:26 +09:00
8 changed files with 19 additions and 21 deletions

View file

@ -7,7 +7,7 @@
#pragma once
#include <AK/Types.h>
#include <LibC/limits.h>
#include <Kernel/API/POSIX/sys/limits.h> // For PAGE_SIZE. Everyone needs PAGE_SIZE
#define KMALLOC_SCRUB_BYTE 0xbb
#define KFREE_SCRUB_BYTE 0xaa