2.9
[glibc/nacl-glibc.git] / nptl / sysdeps / unix / sysv / linux / powerpc / bits / local_lim.h
blob8b836a989aa72a69bc1528f0d9f27bad983cff3b
1 /* Minimum guaranteed maximum values for system limits. Linux/PPC version.
2 Copyright (C) 1993-1998,2000,2002-2004,2006,2008
3 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; see the file COPYING.LIB. If not,
18 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 /* The kernel header pollutes the namespace with the NR_OPEN symbol
22 and defines LINK_MAX although filesystems have different maxima. A
23 similar thing is true for OPEN_MAX: the limit can be changed at
24 runtime and therefore the macro must not be defined. Remove this
25 after including the header if necessary. */
26 #ifndef NR_OPEN
27 # define __undef_NR_OPEN
28 #endif
29 #ifndef LINK_MAX
30 # define __undef_LINK_MAX
31 #endif
32 #ifndef OPEN_MAX
33 # define __undef_OPEN_MAX
34 #endif
35 #ifndef ARG_MAX
36 # define __undef_ARG_MAX
37 #endif
39 /* The kernel sources contain a file with all the needed information. */
40 #include <linux/limits.h>
42 /* Have to remove NR_OPEN? */
43 #ifdef __undef_NR_OPEN
44 # undef NR_OPEN
45 # undef __undef_NR_OPEN
46 #endif
47 /* Have to remove LINK_MAX? */
48 #ifdef __undef_LINK_MAX
49 # undef LINK_MAX
50 # undef __undef_LINK_MAX
51 #endif
52 /* Have to remove OPEN_MAX? */
53 #ifdef __undef_OPEN_MAX
54 # undef OPEN_MAX
55 # undef __undef_OPEN_MAX
56 #endif
57 /* Have to remove ARG_MAX? */
58 #ifdef __undef_ARG_MAX
59 # undef ARG_MAX
60 # undef __undef_ARG_MAX
61 #endif
63 /* The number of data keys per process. */
64 #define _POSIX_THREAD_KEYS_MAX 128
65 /* This is the value this implementation supports. */
66 #define PTHREAD_KEYS_MAX 1024
68 /* Controlling the iterations of destructors for thread-specific data. */
69 #define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4
70 /* Number of iterations this implementation does. */
71 #define PTHREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_DESTRUCTOR_ITERATIONS
73 /* The number of threads per process. */
74 #define _POSIX_THREAD_THREADS_MAX 64
75 /* We have no predefined limit on the number of threads. */
76 #undef PTHREAD_THREADS_MAX
78 /* Maximum amount by which a process can descrease its asynchronous I/O
79 priority level. */
80 #define AIO_PRIO_DELTA_MAX 20
82 /* Minimum size for a thread. At least two pages for systems with 64k
83 pages. */
84 #define PTHREAD_STACK_MIN 131072
86 /* Maximum number of timer expiration overruns. */
87 #define DELAYTIMER_MAX 2147483647
89 /* Maximum tty name length. */
90 #define TTY_NAME_MAX 32
92 /* Maximum login name length. This is arbitrary. */
93 #define LOGIN_NAME_MAX 256
95 /* Maximum host name length. */
96 #define HOST_NAME_MAX 64
98 /* Maximum message queue priority level. */
99 #define MQ_PRIO_MAX 32768
101 /* Maximum value the semaphore can have. */
102 #define SEM_VALUE_MAX (2147483647)