]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/powerpc/bits/local_lim.h
update
[l4.git] / l4 / pkg / uclibc / lib / contrib / uclibc / libc / sysdeps / linux / powerpc / bits / local_lim.h
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.
5
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.
10
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.
15
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
18    not, see <http://www.gnu.org/licenses/>.  */
19
20 /* The kernel header pollutes the namespace with the NR_OPEN symbol
21    and defines LINK_MAX although filesystems have different maxima.  A
22    similar thing is true for OPEN_MAX: the limit can be changed at
23    runtime and therefore the macro must not be defined.  Remove this
24    after including the header if necessary.  */
25 #ifndef NR_OPEN
26 # define __undef_NR_OPEN
27 #endif
28 #ifndef LINK_MAX
29 # define __undef_LINK_MAX
30 #endif
31 #ifndef OPEN_MAX
32 # define __undef_OPEN_MAX
33 #endif
34 #ifndef ARG_MAX
35 # define __undef_ARG_MAX
36 #endif
37
38 /* The kernel sources contain a file with all the needed information.  */
39 #include <linux/limits.h>
40
41 /* Have to remove NR_OPEN?  */
42 #ifdef __undef_NR_OPEN
43 # undef NR_OPEN
44 # undef __undef_NR_OPEN
45 #endif
46 /* Have to remove LINK_MAX?  */
47 #ifdef __undef_LINK_MAX
48 # undef LINK_MAX
49 # undef __undef_LINK_MAX
50 #endif
51 /* Have to remove OPEN_MAX?  */
52 #ifdef __undef_OPEN_MAX
53 # undef OPEN_MAX
54 # undef __undef_OPEN_MAX
55 #endif
56 /* Have to remove ARG_MAX?  */
57 #ifdef __undef_ARG_MAX
58 # undef ARG_MAX
59 # undef __undef_ARG_MAX
60 #endif
61
62 /* The number of data keys per process.  */
63 #define _POSIX_THREAD_KEYS_MAX  128
64 /* This is the value this implementation supports.  */
65 #define PTHREAD_KEYS_MAX        1024
66
67 /* Controlling the iterations of destructors for thread-specific data.  */
68 #define _POSIX_THREAD_DESTRUCTOR_ITERATIONS     4
69 /* Number of iterations this implementation does.  */
70 #define PTHREAD_DESTRUCTOR_ITERATIONS   _POSIX_THREAD_DESTRUCTOR_ITERATIONS
71
72 /* The number of threads per process.  */
73 #define _POSIX_THREAD_THREADS_MAX       64
74 /* We have no predefined limit on the number of threads.  */
75 #undef PTHREAD_THREADS_MAX
76
77 /* Maximum amount by which a process can descrease its asynchronous I/O
78    priority level.  */
79 #define AIO_PRIO_DELTA_MAX      20
80
81 /* Minimum size for a thread.  At least two pages for systems with 64k
82    pages.  */
83 #define PTHREAD_STACK_MIN       131072
84
85 /* Maximum number of timer expiration overruns.  */
86 #define DELAYTIMER_MAX  2147483647
87
88 /* Maximum tty name length.  */
89 #define TTY_NAME_MAX            32
90
91 /* Maximum login name length.  This is arbitrary.  */
92 #define LOGIN_NAME_MAX          256
93
94 /* Maximum host name length.  */
95 #define HOST_NAME_MAX           64
96
97 /* Maximum message queue priority level.  */
98 #define MQ_PRIO_MAX             32768
99
100 /* Maximum value the semaphore can have.  */
101 #define SEM_VALUE_MAX   (2147483647)