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