xopen_lim.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /* Copyright (C) 1996, 1997 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; use <limits.h> instead.
  17. */
  18. /* Additional definitions from X/Open Portability Guide, Issue 4, Version 2
  19. System Interfaces and Headers, 4.16 <limits.h>
  20. Please note only the values which are not greater than the minimum
  21. stated in the standard document are listed. The `sysconf' functions
  22. should be used to obtain the actual value. */
  23. #ifndef _XOPEN_LIM_H
  24. #define _XOPEN_LIM_H 1
  25. #define __need_FOPEN_MAX
  26. #include <bits/stdio_lim.h>
  27. /* We do not provide fixed values for
  28. ARG_MAX Maximum length of argument to the `exec' function
  29. including environment data.
  30. ATEXIT_MAX Maximum number of functions that may be registered
  31. with `atexit'.
  32. CHILD_MAX Maximum number of simultaneous processes per real
  33. user ID.
  34. OPEN_MAX Maximum number of files that one process can have open
  35. at anyone time.
  36. PAGESIZE
  37. PAGE_SIZE Size of bytes of a page.
  38. PASS_MAX Maximum number of significant bytes in a password.
  39. */
  40. /* Maximum number of `iovec' structures that one process has available
  41. for use with `readv' or writev'. */
  42. #define IOV_MAX _XOPEN_IOV_MAX
  43. /* The number of streams that one process can have open at one time. */
  44. #define STREAM_MAX FOPEN_MAX
  45. /* Maximum number of bytes supported for the name of a time zone. */
  46. #define TZNAME_MAX _POSIX_TZNAME_MAX
  47. /* Maximum number of `iovec' structures that one process has available
  48. for use with `readv' or writev'. */
  49. #define _XOPEN_IOV_MAX _POSIX_UIO_MAXIOV
  50. /* Maximum value of `digit' in calls to the `printf' and `scanf'
  51. functions. We have no limit, so return a reasonable value. */
  52. #define NL_ARGMAX _POSIX_ARG_MAX
  53. /* Maximum number of bytes in a `LANG' name. We have no limit. */
  54. #define NL_LANGMAX _POSIX2_LINE_MAX
  55. /* Maximum message number. We have no limit. */
  56. #define NL_MSGMAX INT_MAX
  57. /* Maximum number of bytes in N-to-1 collation mapping. We have no
  58. limit. */
  59. #define NL_NMAX INT_MAX
  60. /* Maximum set number. We have no limit. */
  61. #define NL_SETMAX INT_MAX
  62. /* Maximum number of bytes in a message. We have no limit. */
  63. #define NL_TEXTMAX INT_MAX
  64. /* Default process priority. */
  65. #define NZERO 20
  66. #endif /* bits/xopen_lim.h */