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