1 /* Minimum guaranteed maximum values for system limits. NaCl version.
2 Copyright (C) 2015 Free Software Foundation, Inc.
4 This file is part of the GNU C Library.
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public License as
8 published by the Free Software Foundation; either version 2.1 of the
9 License, or (at your option) any later version.
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with the GNU C Library. If not, see
18 <http://www.gnu.org/licenses/>. */
24 #define NGROUPS_MAX 65536
26 /* The number of data keys per process. */
27 #define _POSIX_THREAD_KEYS_MAX 128
28 /* This is the value this implementation supports. */
29 #define PTHREAD_KEYS_MAX 1024
31 /* Controlling the iterations of destructors for thread-specific data. */
32 #define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4
33 /* Number of iterations this implementation does. */
34 #define PTHREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_DESTRUCTOR_ITERATIONS
36 /* The number of threads per process. */
37 #define _POSIX_THREAD_THREADS_MAX 64
38 /* We have no predefined limit on the number of threads. */
39 #undef PTHREAD_THREADS_MAX
41 /* Maximum amount by which a process can descrease its asynchronous I/O
43 #define AIO_PRIO_DELTA_MAX 20
45 /* Minimum size for a thread. We are free to choose a reasonable value. */
46 #define PTHREAD_STACK_MIN 131072
48 /* Maximum number of timer expiration overruns. */
49 #define DELAYTIMER_MAX 2147483647
51 /* Maximum tty name length. */
52 #define TTY_NAME_MAX 32
54 /* Maximum login name length. This is arbitrary. */
55 #define LOGIN_NAME_MAX 256
57 /* Maximum host name length. */
58 #define HOST_NAME_MAX 64
60 /* Maximum message queue priority level. */
61 #define MQ_PRIO_MAX 32768
63 /* Maximum value the semaphore can have. */
64 #define SEM_VALUE_MAX (2147483647)