2022-08-20 17:22:58 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
2022-10-01 16:29:59 -03:00
|
|
|
* Copyright (c) 2022, sin-ack <sin-ack@protonmail.com>
|
2022-08-20 17:22:58 -03:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2023-01-07 15:14:17 -03:00
|
|
|
// 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
|
|
|
|
|
|
2022-08-20 17:22:58 -03:00
|
|
|
#define NGROUPS_MAX 32
|
2022-10-01 16:29:59 -03:00
|
|
|
|
2023-01-07 18:23:02 -03:00
|
|
|
#define ARG_MAX 65536
|
|
|
|
|
|
2022-10-01 16:29:59 -03:00
|
|
|
#define PTHREAD_STACK_MIN (64 * 1024) // 64KiB
|