1*53ee8cc1Swenshuai.xi /* Copyright (C) 1991, 1996, 1999, 2000, 2001 Free Software Foundation, Inc. 2*53ee8cc1Swenshuai.xi This file is part of the GNU C Library. 3*53ee8cc1Swenshuai.xi 4*53ee8cc1Swenshuai.xi The GNU C Library is free software; you can redistribute it and/or 5*53ee8cc1Swenshuai.xi modify it under the terms of the GNU Lesser General Public 6*53ee8cc1Swenshuai.xi License as published by the Free Software Foundation; either 7*53ee8cc1Swenshuai.xi version 2.1 of the License, or (at your option) any later version. 8*53ee8cc1Swenshuai.xi 9*53ee8cc1Swenshuai.xi The GNU C Library is distributed in the hope that it will be useful, 10*53ee8cc1Swenshuai.xi but WITHOUT ANY WARRANTY; without even the implied warranty of 11*53ee8cc1Swenshuai.xi MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12*53ee8cc1Swenshuai.xi Lesser General Public License for more details. 13*53ee8cc1Swenshuai.xi 14*53ee8cc1Swenshuai.xi You should have received a copy of the GNU Lesser General Public 15*53ee8cc1Swenshuai.xi License along with the GNU C Library; if not, write to the Free 16*53ee8cc1Swenshuai.xi Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 17*53ee8cc1Swenshuai.xi 02111-1307 USA. */ 18*53ee8cc1Swenshuai.xi 19*53ee8cc1Swenshuai.xi /* 20*53ee8cc1Swenshuai.xi * Never include this file directly; include <limits.h> instead. 21*53ee8cc1Swenshuai.xi */ 22*53ee8cc1Swenshuai.xi 23*53ee8cc1Swenshuai.xi #ifndef _BITS_POSIX2_LIM_H 24*53ee8cc1Swenshuai.xi #define _BITS_POSIX2_LIM_H 1 25*53ee8cc1Swenshuai.xi 26*53ee8cc1Swenshuai.xi 27*53ee8cc1Swenshuai.xi /* The maximum `ibase' and `obase' values allowed by the `bc' utility. */ 28*53ee8cc1Swenshuai.xi #define _POSIX2_BC_BASE_MAX 99 29*53ee8cc1Swenshuai.xi 30*53ee8cc1Swenshuai.xi /* The maximum number of elements allowed in an array by the `bc' utility. */ 31*53ee8cc1Swenshuai.xi #define _POSIX2_BC_DIM_MAX 2048 32*53ee8cc1Swenshuai.xi 33*53ee8cc1Swenshuai.xi /* The maximum `scale' value allowed by the `bc' utility. */ 34*53ee8cc1Swenshuai.xi #define _POSIX2_BC_SCALE_MAX 99 35*53ee8cc1Swenshuai.xi 36*53ee8cc1Swenshuai.xi /* The maximum length of a string constant accepted by the `bc' utility. */ 37*53ee8cc1Swenshuai.xi #define _POSIX2_BC_STRING_MAX 1000 38*53ee8cc1Swenshuai.xi 39*53ee8cc1Swenshuai.xi /* The maximum number of weights that can be assigned to an entry of 40*53ee8cc1Swenshuai.xi the LC_COLLATE `order' keyword in the locale definition file. */ 41*53ee8cc1Swenshuai.xi #define _POSIX2_COLL_WEIGHTS_MAX 2 42*53ee8cc1Swenshuai.xi 43*53ee8cc1Swenshuai.xi /* The maximum number of expressions that can be nested 44*53ee8cc1Swenshuai.xi within parentheses by the `expr' utility. */ 45*53ee8cc1Swenshuai.xi #define _POSIX2_EXPR_NEST_MAX 32 46*53ee8cc1Swenshuai.xi 47*53ee8cc1Swenshuai.xi /* The maximum length, in bytes, of an input line. */ 48*53ee8cc1Swenshuai.xi #define _POSIX2_LINE_MAX 2048 49*53ee8cc1Swenshuai.xi 50*53ee8cc1Swenshuai.xi /* The maximum number of repeated occurrences of a regular expression 51*53ee8cc1Swenshuai.xi permitted when using the interval notation `\{M,N\}'. */ 52*53ee8cc1Swenshuai.xi #define _POSIX2_RE_DUP_MAX 255 53*53ee8cc1Swenshuai.xi 54*53ee8cc1Swenshuai.xi /* The maximum number of bytes in a character class name. We have no 55*53ee8cc1Swenshuai.xi fixed limit, 2048 is a high number. */ 56*53ee8cc1Swenshuai.xi #define _POSIX2_CHARCLASS_NAME_MAX 14 57*53ee8cc1Swenshuai.xi 58*53ee8cc1Swenshuai.xi 59*53ee8cc1Swenshuai.xi /* These values are implementation-specific, 60*53ee8cc1Swenshuai.xi and may vary within the implementation. 61*53ee8cc1Swenshuai.xi Their precise values can be obtained from sysconf. */ 62*53ee8cc1Swenshuai.xi 63*53ee8cc1Swenshuai.xi #ifndef BC_BASE_MAX 64*53ee8cc1Swenshuai.xi #define BC_BASE_MAX _POSIX2_BC_BASE_MAX 65*53ee8cc1Swenshuai.xi #endif 66*53ee8cc1Swenshuai.xi #ifndef BC_DIM_MAX 67*53ee8cc1Swenshuai.xi #define BC_DIM_MAX _POSIX2_BC_DIM_MAX 68*53ee8cc1Swenshuai.xi #endif 69*53ee8cc1Swenshuai.xi #ifndef BC_SCALE_MAX 70*53ee8cc1Swenshuai.xi #define BC_SCALE_MAX _POSIX2_BC_SCALE_MAX 71*53ee8cc1Swenshuai.xi #endif 72*53ee8cc1Swenshuai.xi #ifndef BC_STRING_MAX 73*53ee8cc1Swenshuai.xi #define BC_STRING_MAX _POSIX2_BC_STRING_MAX 74*53ee8cc1Swenshuai.xi #endif 75*53ee8cc1Swenshuai.xi #ifndef COLL_WEIGHTS_MAX 76*53ee8cc1Swenshuai.xi #define COLL_WEIGHTS_MAX 255 77*53ee8cc1Swenshuai.xi #endif 78*53ee8cc1Swenshuai.xi #ifndef EXPR_NEST_MAX 79*53ee8cc1Swenshuai.xi #define EXPR_NEST_MAX _POSIX2_EXPR_NEST_MAX 80*53ee8cc1Swenshuai.xi #endif 81*53ee8cc1Swenshuai.xi #ifndef LINE_MAX 82*53ee8cc1Swenshuai.xi #define LINE_MAX _POSIX2_LINE_MAX 83*53ee8cc1Swenshuai.xi #endif 84*53ee8cc1Swenshuai.xi #ifndef CHARCLASS_NAME_MAX 85*53ee8cc1Swenshuai.xi #define CHARCLASS_NAME_MAX 2048 86*53ee8cc1Swenshuai.xi #endif 87*53ee8cc1Swenshuai.xi 88*53ee8cc1Swenshuai.xi /* This value is defined like this in regex.h. */ 89*53ee8cc1Swenshuai.xi #define RE_DUP_MAX (0x7fff) 90*53ee8cc1Swenshuai.xi 91*53ee8cc1Swenshuai.xi #endif /* bits/posix2_lim.h */ 92