posix2_lim.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /* Copyright (C) 1991, 1996, 2000 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 Library General Public License as
  5. published by the Free Software Foundation; either version 2 of the
  6. 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. Library General Public License for more details.
  11. You should have received a copy of the GNU Library General Public
  12. License along with the GNU C Library; see the file COPYING.LIB. If not,
  13. write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  14. Boston, MA 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. We have no fixed limit, 255 is very high. */
  31. #define _POSIX2_COLL_WEIGHTS_MAX 255
  32. /* The maximum number of weights that can be assigned to an entry of
  33. the LC_COLLATE category `order' keyword in a locale definition.
  34. We have no fixed limit, 255 is a high number. */
  35. #define _POSIX2_EQUIV_CLASS_MAX 255
  36. /* The maximum number of expressions that can be nested
  37. within parentheses by the `expr' utility. */
  38. #define _POSIX2_EXPR_NEST_MAX 32
  39. /* The maximum length, in bytes, of an input line. */
  40. #define _POSIX2_LINE_MAX 2048
  41. /* The maximum number of repeated occurrences of a regular expression
  42. permitted when using the interval notation `\{M,N\}'. */
  43. #define _POSIX2_RE_DUP_MAX 255
  44. /* The maximum number of bytes in a character class name. We have no
  45. fixed limit, 2048 is a high number. */
  46. #define _POSIX2_CHARCLASS_NAME_MAX 2048
  47. /* These values are implementation-specific,
  48. and may vary within the implementation.
  49. Their precise values can be obtained from sysconf. */
  50. #ifndef BC_BASE_MAX
  51. #define BC_BASE_MAX _POSIX2_BC_BASE_MAX
  52. #endif
  53. #ifndef BC_DIM_MAX
  54. #define BC_DIM_MAX _POSIX2_BC_DIM_MAX
  55. #endif
  56. #ifndef BC_SCALE_MAX
  57. #define BC_SCALE_MAX _POSIX2_BC_SCALE_MAX
  58. #endif
  59. #ifndef BC_STRING_MAX
  60. #define BC_STRING_MAX _POSIX2_BC_STRING_MAX
  61. #endif
  62. #ifndef COLL_WEIGHTS_MAX
  63. #define COLL_WEIGHTS_MAX _POSIX2_COLL_WEIGHTS_MAX
  64. #endif
  65. #ifndef EQUIV_CLASS_MAX
  66. #define EQUIV_CLASS_MAX _POSIX2_EQUIV_CLASS_MAX
  67. #endif
  68. #ifndef EXPR_NEST_MAX
  69. #define EXPR_NEST_MAX _POSIX2_EXPR_NEST_MAX
  70. #endif
  71. #ifndef LINE_MAX
  72. #define LINE_MAX _POSIX2_LINE_MAX
  73. #endif
  74. #ifndef CHARCLASS_NAME_MAX
  75. #define CHARCLASS_NAME_MAX _POSIX2_CHARCLASS_NAME_MAX
  76. #endif
  77. /* This value is defined like this in regex.h. */
  78. #define RE_DUP_MAX (0x7fff)
  79. #endif /* bits/posix2_lim.h */