modernc.org/cc@v1.0.1/v2/headers/linux_386/usr/include/i386-linux-gnu/bits/xopen_lim.h (about) 1 /* Copyright (C) 1996-2018 Free Software Foundation, Inc. 2 This file is part of the GNU C Library. 3 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. 8 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. 13 14 You should have received a copy of the GNU Lesser General Public 15 License along with the GNU C Library; if not, see 16 <http://www.gnu.org/licenses/>. */ 17 18 /* 19 * Never include this file directly; use <limits.h> instead. 20 */ 21 22 /* Additional definitions from X/Open Portability Guide, Issue 4, Version 2 23 System Interfaces and Headers, 4.16 <limits.h> 24 25 Please note only the values which are not greater than the minimum 26 stated in the standard document are listed. The `sysconf' functions 27 should be used to obtain the actual value. */ 28 29 #ifndef _XOPEN_LIM_H 30 #define _XOPEN_LIM_H 1 31 32 /* We do not provide fixed values for 33 34 ARG_MAX Maximum length of argument to the `exec' function 35 including environment data. 36 37 ATEXIT_MAX Maximum number of functions that may be registered 38 with `atexit'. 39 40 CHILD_MAX Maximum number of simultaneous processes per real 41 user ID. 42 43 OPEN_MAX Maximum number of files that one process can have open 44 at anyone time. 45 46 PAGESIZE 47 PAGE_SIZE Size of bytes of a page. 48 49 PASS_MAX Maximum number of significant bytes in a password. 50 51 We only provide a fixed limit for 52 53 IOV_MAX Maximum number of `iovec' structures that one process has 54 available for use with `readv' or writev'. 55 56 if this is indeed fixed by the underlying system. 57 */ 58 59 /* Maximum number of `iovec' structures that may be used in a single call 60 to `readv', `writev', etc. */ 61 #define _XOPEN_IOV_MAX _POSIX_UIO_MAXIOV 62 63 #include <bits/uio_lim.h> 64 #ifdef __IOV_MAX 65 # define IOV_MAX __IOV_MAX 66 #else 67 # undef IOV_MAX 68 #endif 69 70 /* Maximum value of `digit' in calls to the `printf' and `scanf' 71 functions. We have no limit, so return a reasonable value. */ 72 #define NL_ARGMAX _POSIX_ARG_MAX 73 74 /* Maximum number of bytes in a `LANG' name. We have no limit. */ 75 #define NL_LANGMAX _POSIX2_LINE_MAX 76 77 /* Maximum message number. We have no limit. */ 78 #define NL_MSGMAX INT_MAX 79 80 /* Maximum number of bytes in N-to-1 collation mapping. We have no 81 limit. */ 82 #if defined __USE_GNU || !defined __USE_XOPEN2K8 83 # define NL_NMAX INT_MAX 84 #endif 85 86 /* Maximum set number. We have no limit. */ 87 #define NL_SETMAX INT_MAX 88 89 /* Maximum number of bytes in a message. We have no limit. */ 90 #define NL_TEXTMAX INT_MAX 91 92 /* Default process priority. */ 93 #define NZERO 20 94 95 /* Number of bits in a word of type `int'. */ 96 #ifdef INT_MAX 97 # if INT_MAX == 32767 98 # define WORD_BIT 16 99 # else 100 # if INT_MAX == 2147483647 101 # define WORD_BIT 32 102 # else 103 /* Safe assumption. */ 104 # define WORD_BIT 64 105 # endif 106 # endif 107 #elif defined __INT_MAX__ 108 # if __INT_MAX__ == 32767 109 # define WORD_BIT 16 110 # else 111 # if __INT_MAX__ == 2147483647 112 # define WORD_BIT 32 113 # else 114 /* Safe assumption. */ 115 # define WORD_BIT 64 116 # endif 117 # endif 118 #else 119 # define WORD_BIT 32 120 #endif 121 122 /* Number of bits in a word of type `long int'. */ 123 #ifdef LONG_MAX 124 # if LONG_MAX == 2147483647 125 # define LONG_BIT 32 126 # else 127 /* Safe assumption. */ 128 # define LONG_BIT 64 129 # endif 130 #elif defined __LONG_MAX__ 131 # if __LONG_MAX__ == 2147483647 132 # define LONG_BIT 32 133 # else 134 /* Safe assumption. */ 135 # define LONG_BIT 64 136 # endif 137 #else 138 # include <bits/wordsize.h> 139 # if __WORDSIZE == 64 140 # define LONG_BIT 64 141 # else 142 # define LONG_BIT 32 143 # endif 144 #endif 145 146 #endif /* bits/xopen_lim.h */