ladybird/Kernel/API/POSIX/sys/limits.h
Andrew Kaster c87557e9c1 Kernel+Libraries: Don't include limits.h from LibELF/Validation.h
The fallout of this is that Kernel/Syscalls/execve.cpp doesn't have
access to ARG_MAX anymore, so move that definition to Kernel/API as well
2023-01-21 10:43:59 -07:00

30 lines
647 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 ARG_MAX 65536
#define PTHREAD_STACK_MIN (64 * 1024) // 64KiB