posix2_lim.h 2.9 KB

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