summaryrefslogtreecommitdiff
path: root/Kernel/API/POSIX/sys/limits.h
blob: 93609efb133bc40cafcebd6a93fd7f6c8bcbeebb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * 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