mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:07:35 +00:00
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:
parent
046c23f567
commit
ddea37b521
8 changed files with 19 additions and 21 deletions
|
@ -12,21 +12,6 @@
|
|||
#include <bits/stdint.h>
|
||||
#include <bits/wchar.h>
|
||||
|
||||
#ifndef PAGE_SIZE
|
||||
# define PAGE_SIZE 4096
|
||||
#endif
|
||||
|
||||
#define HOST_NAME_MAX 64
|
||||
|
||||
#define PATH_MAX 4096
|
||||
#if !defined MAXPATHLEN && defined PATH_MAX
|
||||
# define MAXPATHLEN PATH_MAX
|
||||
#endif
|
||||
|
||||
#define NAME_MAX 255
|
||||
|
||||
#define TTY_NAME_MAX 32
|
||||
|
||||
#define PIPE_BUF 4096
|
||||
|
||||
#define INT_MAX INT32_MAX
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue