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