Hurd select fixes.
[glibc.git] / posix / posix2_lim.h
blob05565024f60d5781d5a83c6e96891059bc665692
1 /* Copyright (C) 1991 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 category `order' keyword in a locale definition. */
38 #define _POSIX2_EQUIV_CLASS_MAX 2
40 /* The maximum number of expressions that can be nested
41 within parentheses by the `expr' utility. */
42 #define _POSIX2_EXPR_NEST_MAX 32
44 /* The maximum length, in bytes, of an input line. */
45 #define _POSIX2_LINE_MAX 2048
47 /* The maximum number of repeated occurrences of a regular expression
48 permitted when using the interval notation `\{M,N\}'. */
49 #define _POSIX2_RE_DUP_MAX 255
52 /* These values are implementation-specific,
53 and may vary within the implementation.
54 Their precise values can be obtained from sysconf. */
56 #ifndef BC_BASE_MAX
57 #define BC_BASE_MAX _POSIX2_BC_BASE_MAX
58 #endif
59 #ifndef BC_DIM_MAX
60 #define BC_DIM_MAX _POSIX2_BC_DIM_MAX
61 #endif
62 #ifndef BC_SCALE_MAX
63 #define BC_SCALE_MAX _POSIX2_BC_SCALE_MAX
64 #endif
65 #ifndef BC_STRING_MAX
66 #define BC_STRING_MAX _POSIX2_BC_STRING_MAX
67 #endif
68 #ifndef EQUIV_CLASS_MAX
69 #define EQUIV_CLASS_MAX _POSIX2_EQUIV_CLASS_MAX
70 #endif
71 #ifndef EXPR_NEST_MAX
72 #define EXPR_NEST_MAX _POSIX2_EXPR_NEST_MAX
73 #endif
74 #ifndef LINE_MAX
75 #define LINE_MAX _POSIX2_LINE_MAX
76 #endif
77 #ifndef RE_DUP_MAX
78 #define RE_DUP_MAX _POSIX2_RE_DUP_MAX
79 #endif
82 #endif /* posix2_limits.h */