Back to index

glibc  2.9
posix2_lim.h
Go to the documentation of this file.
00001 /* Copyright (C) 1991, 1996, 1999, 2000, 2001 Free Software Foundation, Inc.
00002    This file is part of the GNU C Library.
00003 
00004    The GNU C Library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Lesser General Public
00006    License as published by the Free Software Foundation; either
00007    version 2.1 of the License, or (at your option) any later version.
00008 
00009    The GNU C Library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Lesser General Public License for more details.
00013 
00014    You should have received a copy of the GNU Lesser General Public
00015    License along with the GNU C Library; if not, write to the Free
00016    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00017    02111-1307 USA.  */
00018 
00019 /*
00020  * Never include this file directly; include <limits.h> instead.
00021  */
00022 
00023 #ifndef       _BITS_POSIX2_LIM_H
00024 #define       _BITS_POSIX2_LIM_H   1
00025 
00026 
00027 /* The maximum `ibase' and `obase' values allowed by the `bc' utility.  */
00028 #define       _POSIX2_BC_BASE_MAX         99
00029 
00030 /* The maximum number of elements allowed in an array by the `bc' utility.  */
00031 #define       _POSIX2_BC_DIM_MAX          2048
00032 
00033 /* The maximum `scale' value allowed by the `bc' utility.  */
00034 #define       _POSIX2_BC_SCALE_MAX        99
00035 
00036 /* The maximum length of a string constant accepted by the `bc' utility.  */
00037 #define       _POSIX2_BC_STRING_MAX              1000
00038 
00039 /* The maximum number of weights that can be assigned to an entry of
00040    the LC_COLLATE `order' keyword in the locale definition file.  */
00041 #define       _POSIX2_COLL_WEIGHTS_MAX    2
00042 
00043 /* The maximum number of expressions that can be nested
00044    within parentheses by the `expr' utility.  */
00045 #define       _POSIX2_EXPR_NEST_MAX              32
00046 
00047 /* The maximum length, in bytes, of an input line.  */
00048 #define       _POSIX2_LINE_MAX            2048
00049 
00050 /* The maximum number of repeated occurrences of a regular expression
00051    permitted when using the interval notation `\{M,N\}'.  */
00052 #define       _POSIX2_RE_DUP_MAX          255
00053 
00054 /* The maximum number of bytes in a character class name.  We have no
00055    fixed limit, 2048 is a high number.  */
00056 #define       _POSIX2_CHARCLASS_NAME_MAX  14
00057 
00058 
00059 /* These values are implementation-specific,
00060    and may vary within the implementation.
00061    Their precise values can be obtained from sysconf.  */
00062 
00063 #ifndef       BC_BASE_MAX
00064 #define       BC_BASE_MAX          _POSIX2_BC_BASE_MAX
00065 #endif
00066 #ifndef       BC_DIM_MAX
00067 #define       BC_DIM_MAX           _POSIX2_BC_DIM_MAX
00068 #endif
00069 #ifndef       BC_SCALE_MAX
00070 #define       BC_SCALE_MAX         _POSIX2_BC_SCALE_MAX
00071 #endif
00072 #ifndef       BC_STRING_MAX
00073 #define       BC_STRING_MAX        _POSIX2_BC_STRING_MAX
00074 #endif
00075 #ifndef       COLL_WEIGHTS_MAX
00076 #define       COLL_WEIGHTS_MAX     255
00077 #endif
00078 #ifndef       EXPR_NEST_MAX
00079 #define       EXPR_NEST_MAX        _POSIX2_EXPR_NEST_MAX
00080 #endif
00081 #ifndef       LINE_MAX
00082 #define       LINE_MAX             _POSIX2_LINE_MAX
00083 #endif
00084 #ifndef       CHARCLASS_NAME_MAX
00085 #define       CHARCLASS_NAME_MAX   2048
00086 #endif
00087 
00088 /* This value is defined like this in regex.h.  */
00089 #define       RE_DUP_MAX (0x7fff)
00090 
00091 #endif /* bits/posix2_lim.h */