limits.h 624 B

12345678910111213141516171819202122232425262728
  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. #pragma once
  8. // 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
  9. #ifndef PAGE_SIZE
  10. # define PAGE_SIZE 4096
  11. #endif
  12. #define PATH_MAX 4096
  13. #if !defined MAXPATHLEN && defined PATH_MAX
  14. # define MAXPATHLEN PATH_MAX
  15. #endif
  16. #define NAME_MAX 255
  17. #define HOST_NAME_MAX 64
  18. #define TTY_NAME_MAX 32
  19. #define NGROUPS_MAX 32
  20. #define PTHREAD_STACK_MIN (64 * 1024) // 64KiB