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