Serenity Operating System
1/*
2 * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
3 * Copyright (c) 2022, sin-ack <sin-ack@protonmail.com>
4 *
5 * SPDX-License-Identifier: BSD-2-Clause
6 */
7
8#pragma once
9
10// 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
11#ifndef PAGE_SIZE
12# define PAGE_SIZE 4096
13#endif
14
15#define PATH_MAX 4096
16#if !defined MAXPATHLEN && defined PATH_MAX
17# define MAXPATHLEN PATH_MAX
18#endif
19
20#define NAME_MAX 255
21
22#define HOST_NAME_MAX 64
23
24#define TTY_NAME_MAX 32
25
26#define NGROUPS_MAX 32
27
28#define ARG_MAX 65536
29
30#define PTHREAD_STACK_MIN (64 * 1024) // 64KiB