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/SPARC version.
00002    Copyright (C) 1993-1998,2000,2002-2004,2008 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 Library General Public License as
00007    published by the Free Software Foundation; either version 2 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    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library 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 #ifndef ARG_MAX
00035 # define __undef_ARG_MAX
00036 #endif
00037 
00038 /* The kernel sources contain a file with all the needed information.  */
00039 #include <linux/limits.h>
00040 
00041 /* Have to remove NR_OPEN?  */
00042 #ifdef __undef_NR_OPEN
00043 # undef NR_OPEN
00044 # undef __undef_NR_OPEN
00045 #endif
00046 /* Have to remove LINK_MAX?  */
00047 #ifdef __undef_LINK_MAX
00048 # undef LINK_MAX
00049 # undef __undef_LINK_MAX
00050 #endif
00051 /* Have to remove OPEN_MAX?  */
00052 #ifdef __undef_OPEN_MAX
00053 # undef OPEN_MAX
00054 # undef __undef_OPEN_MAX
00055 #endif
00056 /* Have to remove ARG_MAX?  */
00057 #ifdef __undef_ARG_MAX
00058 # undef ARG_MAX
00059 # undef __undef_ARG_MAX
00060 #endif
00061 
00062 /* The number of data keys per process.  */
00063 #define _POSIX_THREAD_KEYS_MAX     128
00064 /* This is the value this implementation supports.  */
00065 #define PTHREAD_KEYS_MAX    1024
00066 
00067 /* Controlling the iterations of destructors for thread-specific data.  */
00068 #define _POSIX_THREAD_DESTRUCTOR_ITERATIONS      4
00069 /* Number of iterations this implementation does.  */
00070 #define PTHREAD_DESTRUCTOR_ITERATIONS     _POSIX_THREAD_DESTRUCTOR_ITERATIONS
00071 
00072 /* The number of threads per process.  */
00073 #define _POSIX_THREAD_THREADS_MAX  64
00074 /* We have no predefined limit on the number of threads.  */
00075 #undef PTHREAD_THREADS_MAX
00076 
00077 /* Maximum amount by which a process can descrease its asynchronous I/O
00078    priority level.  */
00079 #define AIO_PRIO_DELTA_MAX  20
00080 
00081 /* Minimum size for a thread.  We are free to choose a reasonable value.  */
00082 #define PTHREAD_STACK_MIN   24576
00083 
00084 /* Maximum number of timer expiration overruns.  */
00085 #define DELAYTIMER_MAX      2147483647
00086 
00087 /* Maximum tty name length.  */
00088 #define TTY_NAME_MAX        32
00089 
00090 /* Maximum login name length.  This is arbitrary.  */
00091 #define LOGIN_NAME_MAX             256
00092 
00093 /* Maximum host name length.  */
00094 #define HOST_NAME_MAX              64
00095 
00096 /* Maximum message queue priority level.  */
00097 #define MQ_PRIO_MAX         32768
00098 
00099 /* Maximum value the semaphore can have.  */
00100 #define SEM_VALUE_MAX   (2147483647)