1 /* Copyright (C) 1996, 1997, 1999, 2001 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
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.
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
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
20 * Never include this file directly; use <limits.h> instead.
23 /* Additional definitions from X/Open Portability Guide, Issue 4, Version 2
24 System Interfaces and Headers, 4.16 <limits.h>
26 Please note only the values which are not greater than the minimum
27 stated in the standard document are listed. The `sysconf' functions
28 should be used to obtain the actual value. */
31 #define _XOPEN_LIM_H 1
33 #define __need_IOV_MAX
34 #include <bits/stdio_lim.h>
36 /* We do not provide fixed values for
38 ARG_MAX Maximum length of argument to the `exec' function
39 including environment data.
41 ATEXIT_MAX Maximum number of functions that may be registered
44 CHILD_MAX Maximum number of simultaneous processes per real
47 OPEN_MAX Maximum number of files that one process can have open
51 PAGE_SIZE Size of bytes of a page.
53 PASS_MAX Maximum number of significant bytes in a password.
55 We only provide a fixed limit for
57 IOV_MAX Maximum number of `iovec' structures that one process has
58 available for use with `readv' or writev'.
60 if this is indeed fixed by the underlying system.
64 /* Maximum number of `iovec' structures that one process has available
65 for use with `readv' or writev'. */
66 #define _XOPEN_IOV_MAX _POSIX_UIO_MAXIOV
69 /* Maximum value of `digit' in calls to the `printf' and `scanf'
70 functions. We have no limit, so return a reasonable value. */
71 #define NL_ARGMAX _POSIX_ARG_MAX
73 /* Maximum number of bytes in a `LANG' name. We have no limit. */
74 #define NL_LANGMAX _POSIX2_LINE_MAX
76 /* Maximum message number. We have no limit. */
77 #define NL_MSGMAX INT_MAX
79 /* Maximum number of bytes in N-to-1 collation mapping. We have no
81 #define NL_NMAX INT_MAX
83 /* Maximum set number. We have no limit. */
84 #define NL_SETMAX INT_MAX
86 /* Maximum number of bytes in a message. We have no limit. */
87 #define NL_TEXTMAX INT_MAX
89 /* Default process priority. */
93 /* Number of bits in a word of type `int'. */
98 # if INT_MAX == 2147483647
101 /* Safe assumption. */
105 #elif defined __INT_MAX__
106 # if __INT_MAX__ == 32767
109 # if __INT_MAX__ == 2147483647
112 /* Safe assumption. */
120 /* Number of bits in a word of type `long int'. */
122 # if LONG_MAX == 2147483647
125 /* Safe assumption. */
128 #elif defined __LONG_MAX__
129 # if __LONG_MAX__ == 2147483647
132 /* Safe assumption. */
136 # include <bits/wordsize.h>
137 # if __WORDSIZE == 64
144 #endif /* bits/xopen_lim.h */