chiark / gitweb /
eglibc (2.11.3-4+deb6u3) squeeze-lts; urgency=medium
[eglibc.git] / ports / sysdeps / unix / sysv / linux / mips / nptl / bits / local_lim.h
1 /* Minimum guaranteed maximum values for system limits.  MIPS Linux version.
2    Copyright (C) 1993-1998,2000,2002,2003,2004,2007,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 not,
18    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19    Boston, MA 02111-1307, USA.  */
20
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
38
39 /* The kernel sources contain a file with all the needed information.  */
40 #include <linux/limits.h>
41
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
62
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
67
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
72
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
77
78 /* Maximum amount by which a process can descrease its asynchronous I/O
79    priority level.  */
80 #define AIO_PRIO_DELTA_MAX      20
81
82 /* Minimum size for a thread.  At least two pages with 64k 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)