Back to index

glibc  2.9
local_lim.h
Go to the documentation of this file.
00001 /* Minimum guaranteed maximum values for system limits.  Linux/Alpha version.
00002    Copyright (C) 1993-1998,2000,2002,2003,2004 Free Software Foundation, Inc.
00003    This file is part of the GNU C Library.
00004 
00005    The GNU C Library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Lesser General Public License as
00007    published by the Free Software Foundation; either version 2.1 of the
00008    License, or (at your option) any later version.
00009 
00010    The GNU C Library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Lesser General Public License for more details.
00014 
00015    You should have received a copy of the GNU Lesser General Public
00016    License along with the GNU C Library; see the file COPYING.LIB.  If not,
00017    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018    Boston, MA 02111-1307, USA.  */
00019 
00020 /* The kernel header pollutes the namespace with the NR_OPEN symbol
00021    and defines LINK_MAX although filesystems have different maxima.  A
00022    similar thing is true for OPEN_MAX: the limit can be changed at
00023    runtime and therefore the macro must not be defined.  Remove this
00024    after including the header if necessary.  */
00025 #ifndef NR_OPEN
00026 # define __undef_NR_OPEN
00027 #endif
00028 #ifndef LINK_MAX
00029 # define __undef_LINK_MAX
00030 #endif
00031 #ifndef OPEN_MAX
00032 # define __undef_OPEN_MAX
00033 #endif
00034 
00035 /* The kernel sources contain a file with all the needed information.  */
00036 #include <linux/limits.h>
00037 
00038 /* Have to remove NR_OPEN?  */
00039 #ifdef __undef_NR_OPEN
00040 # undef NR_OPEN
00041 # undef __undef_NR_OPEN
00042 #endif
00043 /* Have to remove LINK_MAX?  */
00044 #ifdef __undef_LINK_MAX
00045 # undef LINK_MAX
00046 # undef __undef_LINK_MAX
00047 #endif
00048 /* Have to remove OPEN_MAX?  */
00049 #ifdef __undef_OPEN_MAX
00050 # undef OPEN_MAX
00051 # undef __undef_OPEN_MAX
00052 #endif
00053 
00054 /* The number of data keys per process.  */
00055 #define _POSIX_THREAD_KEYS_MAX     128
00056 /* This is the value this implementation supports.  */
00057 #define PTHREAD_KEYS_MAX    1024
00058 
00059 /* Controlling the iterations of destructors for thread-specific data.  */
00060 #define _POSIX_THREAD_DESTRUCTOR_ITERATIONS      4
00061 /* Number of iterations this implementation does.  */
00062 #define PTHREAD_DESTRUCTOR_ITERATIONS     _POSIX_THREAD_DESTRUCTOR_ITERATIONS
00063 
00064 /* The number of threads per process.  */
00065 #define _POSIX_THREAD_THREADS_MAX  64
00066 /* This is the value this implementation supports.  */
00067 #define PTHREAD_THREADS_MAX 16384
00068 
00069 /* Maximum amount by which a process can descrease its asynchronous I/O
00070    priority level.  */
00071 #define AIO_PRIO_DELTA_MAX  20
00072 
00073 /* Minimum size for a thread.  We are free to choose a reasonable value.  */
00074 #define PTHREAD_STACK_MIN   24576
00075 
00076 /* Maximum number of POSIX timers available.  */
00077 #define TIMER_MAX    256
00078 
00079 /* Maximum number of timer expiration overruns.  */
00080 #define DELAYTIMER_MAX      2147483647
00081 
00082 /* Maximum tty name length.  */
00083 #define TTY_NAME_MAX        32
00084 
00085 /* Maximum login name length.  This is arbitrary.  */
00086 #define LOGIN_NAME_MAX             256
00087 
00088 /* Maximum host name length.  */
00089 #define HOST_NAME_MAX              64
00090 
00091 /* Maximum message queue priority level.  */
00092 #define MQ_PRIO_MAX         32768