update from main archive 961016
[glibc.git] / posix / posix2_lim.h
blobb81dfd0694daa1e23a2fa5ed3a17b096355178b9
1 /* Copyright (C) 1991, 1996 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
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.
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.
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
16 not, write to the Free Software Foundation, Inc., 675 Mass Ave,
17 Cambridge, MA 02139, USA. */
19 #ifndef _POSIX2_LIMITS_H
21 #define _POSIX2_LIMITS_H 1
24 /* The maximum `ibase' and `obase' values allowed by the `bc' utility. */
25 #define _POSIX2_BC_BASE_MAX 99
27 /* The maximum number of elements allowed in an array by the `bc' utility. */
28 #define _POSIX2_BC_DIM_MAX 2048
30 /* The maximum `scale' value allowed by the `bc' utility. */
31 #define _POSIX2_BC_SCALE_MAX 99
33 /* The maximum length of a string constant accepted by the `bc' utility. */
34 #define _POSIX2_BC_STRING_MAX 1000
36 /* The maximum number of weights that can be assigned to an entry of
37 the LC_COLLATE `order' keyword in the locale definition file.
38 We have no fixed limit, 255 is very high. */
39 #define _POSIX2_COLL_WEIGHTS_MAX 255
41 /* The maximum number of weights that can be assigned to an entry of
42 the LC_COLLATE category `order' keyword in a locale definition.
43 We have no fixed limit, 255 is a high number. */
44 #define _POSIX2_EQUIV_CLASS_MAX 255
46 /* The maximum number of expressions that can be nested
47 within parentheses by the `expr' utility. */
48 #define _POSIX2_EXPR_NEST_MAX 32
50 /* The maximum length, in bytes, of an input line. */
51 #define _POSIX2_LINE_MAX 2048
53 /* The maximum number of repeated occurrences of a regular expression
54 permitted when using the interval notation `\{M,N\}'. */
55 #define _POSIX2_RE_DUP_MAX 255
57 /* The maximum number of bytes in a character class name. We have no
58 fixed limit, 2048 is a high number. */
59 #define _POSIX2_CHARCLASS_NAME_MAX 2048
62 /* These values are implementation-specific,
63 and may vary within the implementation.
64 Their precise values can be obtained from sysconf. */
66 #ifndef BC_BASE_MAX
67 #define BC_BASE_MAX _POSIX2_BC_BASE_MAX
68 #endif
69 #ifndef BC_DIM_MAX
70 #define BC_DIM_MAX _POSIX2_BC_DIM_MAX
71 #endif
72 #ifndef BC_SCALE_MAX
73 #define BC_SCALE_MAX _POSIX2_BC_SCALE_MAX
74 #endif
75 #ifndef BC_STRING_MAX
76 #define BC_STRING_MAX _POSIX2_BC_STRING_MAX
77 #endif
78 #ifndef COLL_WEIGHTS_MAX
79 #define COLL_WEIGHTS_MAX _POSIX2_COLL_WEIGHTS_MAX
80 #endif
81 #ifndef EQUIV_CLASS_MAX
82 #define EQUIV_CLASS_MAX _POSIX2_EQUIV_CLASS_MAX
83 #endif
84 #ifndef EXPR_NEST_MAX
85 #define EXPR_NEST_MAX _POSIX2_EXPR_NEST_MAX
86 #endif
87 #ifndef LINE_MAX
88 #define LINE_MAX _POSIX2_LINE_MAX
89 #endif
90 #ifndef RE_DUP_MAX
91 #define RE_DUP_MAX _POSIX2_RE_DUP_MAX
92 #endif
93 #ifndef CHARCLASS_NAME_MAX
94 #define CHARCLASS_NAME_MAX _POSIX2_CHARCLASS_NAME_MAX
95 #endif
98 #endif /* posix2_limits.h */