Blame posix/bits/posix2_lim.h

Packit 6c4009
/* Copyright (C) 1991-2018 Free Software Foundation, Inc.
Packit 6c4009
   This file is part of the GNU C Library.
Packit 6c4009
Packit 6c4009
   The GNU C Library is free software; you can redistribute it and/or
Packit 6c4009
   modify it under the terms of the GNU Lesser General Public
Packit 6c4009
   License as published by the Free Software Foundation; either
Packit 6c4009
   version 2.1 of the License, or (at your option) any later version.
Packit 6c4009
Packit 6c4009
   The GNU C Library is distributed in the hope that it will be useful,
Packit 6c4009
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6c4009
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 6c4009
   Lesser General Public License for more details.
Packit 6c4009
Packit 6c4009
   You should have received a copy of the GNU Lesser General Public
Packit 6c4009
   License along with the GNU C Library; if not, see
Packit 6c4009
   <http://www.gnu.org/licenses/>.  */
Packit 6c4009
Packit 6c4009
/*
Packit 6c4009
 * Never include this file directly; include <limits.h> instead.
Packit 6c4009
 */
Packit 6c4009
Packit 6c4009
#ifndef	_BITS_POSIX2_LIM_H
Packit 6c4009
#define	_BITS_POSIX2_LIM_H	1
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* The maximum `ibase' and `obase' values allowed by the `bc' utility.  */
Packit 6c4009
#define	_POSIX2_BC_BASE_MAX		99
Packit 6c4009
Packit 6c4009
/* The maximum number of elements allowed in an array by the `bc' utility.  */
Packit 6c4009
#define	_POSIX2_BC_DIM_MAX		2048
Packit 6c4009
Packit 6c4009
/* The maximum `scale' value allowed by the `bc' utility.  */
Packit 6c4009
#define	_POSIX2_BC_SCALE_MAX		99
Packit 6c4009
Packit 6c4009
/* The maximum length of a string constant accepted by the `bc' utility.  */
Packit 6c4009
#define	_POSIX2_BC_STRING_MAX		1000
Packit 6c4009
Packit 6c4009
/* The maximum number of weights that can be assigned to an entry of
Packit 6c4009
   the LC_COLLATE `order' keyword in the locale definition file.  */
Packit 6c4009
#define	_POSIX2_COLL_WEIGHTS_MAX	2
Packit 6c4009
Packit 6c4009
/* The maximum number of expressions that can be nested
Packit 6c4009
   within parentheses by the `expr' utility.  */
Packit 6c4009
#define	_POSIX2_EXPR_NEST_MAX		32
Packit 6c4009
Packit 6c4009
/* The maximum length, in bytes, of an input line.  */
Packit 6c4009
#define	_POSIX2_LINE_MAX		2048
Packit 6c4009
Packit 6c4009
/* The maximum number of repeated occurrences of a regular expression
Packit 6c4009
   permitted when using the interval notation `\{M,N\}'.  */
Packit 6c4009
#define	_POSIX2_RE_DUP_MAX		255
Packit 6c4009
Packit 6c4009
/* The maximum number of bytes in a character class name.  We have no
Packit 6c4009
   fixed limit, 2048 is a high number.  */
Packit 6c4009
#define	_POSIX2_CHARCLASS_NAME_MAX	14
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* These values are implementation-specific,
Packit 6c4009
   and may vary within the implementation.
Packit 6c4009
   Their precise values can be obtained from sysconf.  */
Packit 6c4009
Packit 6c4009
#ifndef	BC_BASE_MAX
Packit 6c4009
#define	BC_BASE_MAX		_POSIX2_BC_BASE_MAX
Packit 6c4009
#endif
Packit 6c4009
#ifndef	BC_DIM_MAX
Packit 6c4009
#define	BC_DIM_MAX		_POSIX2_BC_DIM_MAX
Packit 6c4009
#endif
Packit 6c4009
#ifndef	BC_SCALE_MAX
Packit 6c4009
#define	BC_SCALE_MAX		_POSIX2_BC_SCALE_MAX
Packit 6c4009
#endif
Packit 6c4009
#ifndef	BC_STRING_MAX
Packit 6c4009
#define	BC_STRING_MAX		_POSIX2_BC_STRING_MAX
Packit 6c4009
#endif
Packit 6c4009
#ifndef	COLL_WEIGHTS_MAX
Packit 6c4009
#define	COLL_WEIGHTS_MAX	255
Packit 6c4009
#endif
Packit 6c4009
#ifndef	EXPR_NEST_MAX
Packit 6c4009
#define	EXPR_NEST_MAX		_POSIX2_EXPR_NEST_MAX
Packit 6c4009
#endif
Packit 6c4009
#ifndef	LINE_MAX
Packit 6c4009
#define	LINE_MAX		_POSIX2_LINE_MAX
Packit 6c4009
#endif
Packit 6c4009
#ifndef	CHARCLASS_NAME_MAX
Packit 6c4009
#define	CHARCLASS_NAME_MAX	2048
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
/* This value is defined like this in regex.h.  */
Packit 6c4009
#define	RE_DUP_MAX (0x7fff)
Packit 6c4009
Packit 6c4009
#endif	/* bits/posix2_lim.h */