mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-09 04:32:51 +00:00
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.
28 lines
624 B
C
28 lines
624 B
C
/*
|
|
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
|
* Copyright (c) 2022, sin-ack <sin-ack@protonmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
// FIXME: This file can be included from Lagom, but it should only be included on Serenity. When that is the case, we can remove the ifdef
|
|
#ifndef PAGE_SIZE
|
|
# define PAGE_SIZE 4096
|
|
#endif
|
|
|
|
#define PATH_MAX 4096
|
|
#if !defined MAXPATHLEN && defined PATH_MAX
|
|
# define MAXPATHLEN PATH_MAX
|
|
#endif
|
|
|
|
#define NAME_MAX 255
|
|
|
|
#define HOST_NAME_MAX 64
|
|
|
|
#define TTY_NAME_MAX 32
|
|
|
|
#define NGROUPS_MAX 32
|
|
|
|
#define PTHREAD_STACK_MIN (64 * 1024) // 64KiB
|