]> git.ipfire.org Git - thirdparty/glibc.git/blame - posix/bits/posix2_lim.h
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / posix / bits / posix2_lim.h
CommitLineData
d614a753 1/* Copyright (C) 1991-2020 Free Software Foundation, Inc.
54d79e99
UD
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
41bdb6e2
AJ
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
54d79e99
UD
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
41bdb6e2 12 Lesser General Public License for more details.
54d79e99 13
41bdb6e2 14 You should have received a copy of the GNU Lesser General Public
59ba27a6 15 License along with the GNU C Library; if not, see
5a82c748 16 <https://www.gnu.org/licenses/>. */
28f540f4 17
5107cf1d
UD
18/*
19 * Never include this file directly; include <limits.h> instead.
20 */
28f540f4 21
5107cf1d
UD
22#ifndef _BITS_POSIX2_LIM_H
23#define _BITS_POSIX2_LIM_H 1
28f540f4
RM
24
25
26/* The maximum `ibase' and `obase' values allowed by the `bc' utility. */
75cd5204 27#define _POSIX2_BC_BASE_MAX 99
28f540f4
RM
28
29/* The maximum number of elements allowed in an array by the `bc' utility. */
75cd5204 30#define _POSIX2_BC_DIM_MAX 2048
28f540f4
RM
31
32/* The maximum `scale' value allowed by the `bc' utility. */
75cd5204 33#define _POSIX2_BC_SCALE_MAX 99
28f540f4
RM
34
35/* The maximum length of a string constant accepted by the `bc' utility. */
75cd5204 36#define _POSIX2_BC_STRING_MAX 1000
28f540f4
RM
37
38/* The maximum number of weights that can be assigned to an entry of
dbc3e61b
UD
39 the LC_COLLATE `order' keyword in the locale definition file. */
40#define _POSIX2_COLL_WEIGHTS_MAX 2
036cc82f 41
28f540f4
RM
42/* The maximum number of expressions that can be nested
43 within parentheses by the `expr' utility. */
75cd5204 44#define _POSIX2_EXPR_NEST_MAX 32
28f540f4
RM
45
46/* The maximum length, in bytes, of an input line. */
75cd5204 47#define _POSIX2_LINE_MAX 2048
28f540f4
RM
48
49/* The maximum number of repeated occurrences of a regular expression
50 permitted when using the interval notation `\{M,N\}'. */
75cd5204
RM
51#define _POSIX2_RE_DUP_MAX 255
52
036cc82f
RM
53/* The maximum number of bytes in a character class name. We have no
54 fixed limit, 2048 is a high number. */
dbc3e61b 55#define _POSIX2_CHARCLASS_NAME_MAX 14
28f540f4
RM
56
57
58/* These values are implementation-specific,
59 and may vary within the implementation.
60 Their precise values can be obtained from sysconf. */
61
62#ifndef BC_BASE_MAX
75cd5204 63#define BC_BASE_MAX _POSIX2_BC_BASE_MAX
28f540f4
RM
64#endif
65#ifndef BC_DIM_MAX
75cd5204 66#define BC_DIM_MAX _POSIX2_BC_DIM_MAX
28f540f4
RM
67#endif
68#ifndef BC_SCALE_MAX
75cd5204 69#define BC_SCALE_MAX _POSIX2_BC_SCALE_MAX
28f540f4
RM
70#endif
71#ifndef BC_STRING_MAX
75cd5204 72#define BC_STRING_MAX _POSIX2_BC_STRING_MAX
28f540f4 73#endif
036cc82f 74#ifndef COLL_WEIGHTS_MAX
dbc3e61b 75#define COLL_WEIGHTS_MAX 255
28f540f4
RM
76#endif
77#ifndef EXPR_NEST_MAX
75cd5204 78#define EXPR_NEST_MAX _POSIX2_EXPR_NEST_MAX
28f540f4
RM
79#endif
80#ifndef LINE_MAX
75cd5204 81#define LINE_MAX _POSIX2_LINE_MAX
28f540f4 82#endif
75cd5204 83#ifndef CHARCLASS_NAME_MAX
dbc3e61b 84#define CHARCLASS_NAME_MAX 2048
28f540f4
RM
85#endif
86
9281f45d
UD
87/* This value is defined like this in regex.h. */
88#define RE_DUP_MAX (0x7fff)
28f540f4 89
5107cf1d 90#endif /* bits/posix2_lim.h */