local_lim.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* Minimum guaranteed maximum values for system limits. Linux version.
  2. Copyright (C) 1993, 94, 95, 96, 97, 98 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library.
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public License as
  6. published by the Free Software Foundation; either version 2 of the
  7. License, or (at your option) any later version.
  8. The GNU C Library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Library General Public License for more details.
  12. You should have received a copy of the GNU Library General Public
  13. License along with the GNU C Library; see the file COPYING.LIB. If not,
  14. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  15. Boston, MA 02111-1307, USA. */
  16. /* The kernel header pollutes the namespace with the NR_OPEN symbol.
  17. Remove this after including the header if necessary. */
  18. #ifndef NR_OPEN
  19. # define __undef_NR_OPEN
  20. #endif
  21. /* The kernel sources contain a file with all the needed information. */
  22. #include <linux/limits.h>
  23. /* Have to remove NR_OPEN? */
  24. #ifdef __undef_NR_OPEN
  25. # undef NR_OPEN
  26. # undef __undef_NR_OPEN
  27. #endif
  28. /* The number of data keys per process. */
  29. #define _POSIX_THREAD_KEYS_MAX 128
  30. /* This is the value this implementation supports. */
  31. #define PTHREAD_KEYS_MAX 1024
  32. /* Controlling the iterations of destructors for thread-specific data. */
  33. #define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4
  34. /* Number of iterations this implementation does. */
  35. #define PTHREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_DESTRUCTOR_ITERATIONS
  36. /* The number of threads per process. */
  37. #define _POSIX_THREAD_THREADS_MAX 64
  38. /* This is the value this implementation supports. */
  39. #define PTHREAD_THREADS_MAX 1024
  40. /* Maximum amount by which a process can descrease its asynchronous I/O
  41. priority level. */
  42. #define AIO_PRIO_DELTA_MAX 20
  43. /* Minimum size for a thread. We are free to choose a reasonable value. */
  44. #define PTHREAD_STACK_MIN 16384