| 1 | // Code generated by 'ccgo wctype/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o wctype/wctype_linux_riscv64.go -pkgname wctype', DO NOT EDIT. |
| 2 | |
| 3 | package wctype |
| 4 | |
| 5 | import ( |
| 6 | "math" |
| 7 | "reflect" |
| 8 | "sync/atomic" |
| 9 | "unsafe" |
| 10 | ) |
| 11 | |
| 12 | var _ = math.Pi |
| 13 | var _ reflect.Kind |
| 14 | var _ atomic.Value |
| 15 | var _ unsafe.Pointer |
| 16 | |
| 17 | const ( |
| 18 | WEOF = 4294967295 |
| 19 | X_ATFILE_SOURCE = 1 |
| 20 | X_BITS_ENDIANNESS_H = 1 |
| 21 | X_BITS_ENDIAN_H = 1 |
| 22 | X_BITS_TIME64_H = 1 |
| 23 | X_BITS_TYPESIZES_H = 1 |
| 24 | X_BITS_TYPES_H = 1 |
| 25 | X_BITS_TYPES_LOCALE_T_H = 1 |
| 26 | X_BITS_TYPES___LOCALE_T_H = 1 |
| 27 | X_BITS_WCTYPE_WCHAR_H = 1 |
| 28 | X_DEFAULT_SOURCE = 1 |
| 29 | X_FEATURES_H = 1 |
| 30 | X_FILE_OFFSET_BITS = 64 |
| 31 | X_LP64 = 1 |
| 32 | X_POSIX_C_SOURCE = 200809 |
| 33 | X_POSIX_SOURCE = 1 |
| 34 | X_STDC_PREDEF_H = 1 |
| 35 | X_SYS_CDEFS_H = 1 |
| 36 | X_WCTYPE_H = 1 |
| 37 | X_WINT_T = 1 |
| 38 | Linux = 1 |
| 39 | Unix = 1 |
| 40 | ) |
| 41 | |
| 42 | // The characteristics are stored always in network byte order (big |
| 43 | // endian). We define the bit value interpretations here dependent on the |
| 44 | // machine's byte order. |
| 45 | |
| 46 | // Endian macros for string.h functions |
| 47 | // Copyright (C) 1992-2021 Free Software Foundation, Inc. |
| 48 | // This file is part of the GNU C Library. |
| 49 | // |
| 50 | // The GNU C Library is free software; you can redistribute it and/or |
| 51 | // modify it under the terms of the GNU Lesser General Public |
| 52 | // License as published by the Free Software Foundation; either |
| 53 | // version 2.1 of the License, or (at your option) any later version. |
| 54 | // |
| 55 | // The GNU C Library is distributed in the hope that it will be useful, |
| 56 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 57 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 58 | // Lesser General Public License for more details. |
| 59 | // |
| 60 | // You should have received a copy of the GNU Lesser General Public |
| 61 | // License along with the GNU C Library; if not, see |
| 62 | // <http://www.gnu.org/licenses/>. |
| 63 | |
| 64 | // Definitions for byte order, according to significance of bytes, |
| 65 | // from low addresses to high addresses. The value is what you get by |
| 66 | // putting '4' in the most significant byte, '3' in the second most |
| 67 | // significant byte, '2' in the second least significant byte, and '1' |
| 68 | // in the least significant byte, and then writing down one digit for |
| 69 | // each byte, starting with the byte at the lowest address at the left, |
| 70 | // and proceeding to the byte with the highest address at the right. |
| 71 | |
| 72 | // This file defines `__BYTE_ORDER' for the particular machine. |
| 73 | |
| 74 | // RISC-V is little-endian. |
| 75 | |
| 76 | // Some machines may need to use a different endianness for floating point |
| 77 | // values. |
| 78 | |
| 79 | const ( /* wctype-wchar.h:56:1: */ |
| 80 | X__ISwupper = 0 // UPPERCASE. |
| 81 | X__ISwlower = 1 // lowercase. |
| 82 | X__ISwalpha = 2 // Alphabetic. |
| 83 | X__ISwdigit = 3 // Numeric. |
| 84 | X__ISwxdigit = 4 // Hexadecimal numeric. |
| 85 | X__ISwspace = 5 // Whitespace. |
| 86 | X__ISwprint = 6 // Printing. |
| 87 | X__ISwgraph = 7 // Graphical. |
| 88 | X__ISwblank = 8 // Blank (usually SPC and TAB). |
| 89 | X__ISwcntrl = 9 // Control character. |
| 90 | X__ISwpunct = 10 // Punctuation. |
| 91 | X__ISwalnum = 11 // Alphanumeric. |
| 92 | |
| 93 | X_ISwupper = 16777216 // UPPERCASE. |
| 94 | X_ISwlower = 33554432 // lowercase. |
| 95 | X_ISwalpha = 67108864 // Alphabetic. |
| 96 | X_ISwdigit = 134217728 // Numeric. |
| 97 | X_ISwxdigit = 268435456 // Hexadecimal numeric. |
| 98 | X_ISwspace = 536870912 // Whitespace. |
| 99 | X_ISwprint = 1073741824 // Printing. |
| 100 | X_ISwgraph = -2147483648 // Graphical. |
| 101 | X_ISwblank = 65536 // Blank (usually SPC and TAB). |
| 102 | X_ISwcntrl = 131072 // Control character. |
| 103 | X_ISwpunct = 262144 // Punctuation. |
| 104 | X_ISwalnum = 524288 |
| 105 | ) |
| 106 | |
| 107 | type Ptrdiff_t = int64 /* <builtin>:3:26 */ |
| 108 | |
| 109 | type Size_t = uint64 /* <builtin>:9:23 */ |
| 110 | |
| 111 | type Wchar_t = int32 /* <builtin>:15:24 */ |
| 112 | |
| 113 | type X__int128_t = struct { |
| 114 | Flo int64 |
| 115 | Fhi int64 |
| 116 | } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128 |
| 117 | type X__uint128_t = struct { |
| 118 | Flo uint64 |
| 119 | Fhi uint64 |
| 120 | } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128 |
| 121 | |
| 122 | type X__builtin_va_list = uintptr /* <builtin>:46:14 */ |
| 123 | type X__float128 = float64 /* <builtin>:47:21 */ |
| 124 | |
| 125 | // Copyright (C) 1996-2021 Free Software Foundation, Inc. |
| 126 | // This file is part of the GNU C Library. |
| 127 | // |
| 128 | // The GNU C Library is free software; you can redistribute it and/or |
| 129 | // modify it under the terms of the GNU Lesser General Public |
| 130 | // License as published by the Free Software Foundation; either |
| 131 | // version 2.1 of the License, or (at your option) any later version. |
| 132 | // |
| 133 | // The GNU C Library is distributed in the hope that it will be useful, |
| 134 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 135 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 136 | // Lesser General Public License for more details. |
| 137 | // |
| 138 | // You should have received a copy of the GNU Lesser General Public |
| 139 | // License along with the GNU C Library; if not, see |
| 140 | // <https://www.gnu.org/licenses/>. |
| 141 | |
| 142 | // ISO C99 Standard: 7.25 |
| 143 | // Wide character classification and mapping utilities <wctype.h> |
| 144 | |
| 145 | // Copyright (C) 1991-2021 Free Software Foundation, Inc. |
| 146 | // This file is part of the GNU C Library. |
| 147 | // |
| 148 | // The GNU C Library is free software; you can redistribute it and/or |
| 149 | // modify it under the terms of the GNU Lesser General Public |
| 150 | // License as published by the Free Software Foundation; either |
| 151 | // version 2.1 of the License, or (at your option) any later version. |
| 152 | // |
| 153 | // The GNU C Library is distributed in the hope that it will be useful, |
| 154 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 155 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 156 | // Lesser General Public License for more details. |
| 157 | // |
| 158 | // You should have received a copy of the GNU Lesser General Public |
| 159 | // License along with the GNU C Library; if not, see |
| 160 | // <https://www.gnu.org/licenses/>. |
| 161 | |
| 162 | // These are defined by the user (or the compiler) |
| 163 | // to specify the desired environment: |
| 164 | // |
| 165 | // __STRICT_ANSI__ ISO Standard C. |
| 166 | // _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. |
| 167 | // _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. |
| 168 | // _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X. |
| 169 | // __STDC_WANT_LIB_EXT2__ |
| 170 | // Extensions to ISO C99 from TR 27431-2:2010. |
| 171 | // __STDC_WANT_IEC_60559_BFP_EXT__ |
| 172 | // Extensions to ISO C11 from TS 18661-1:2014. |
| 173 | // __STDC_WANT_IEC_60559_FUNCS_EXT__ |
| 174 | // Extensions to ISO C11 from TS 18661-4:2015. |
| 175 | // __STDC_WANT_IEC_60559_TYPES_EXT__ |
| 176 | // Extensions to ISO C11 from TS 18661-3:2015. |
| 177 | // __STDC_WANT_IEC_60559_EXT__ |
| 178 | // ISO C2X interfaces defined only in Annex F. |
| 179 | // |
| 180 | // _POSIX_SOURCE IEEE Std 1003.1. |
| 181 | // _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; |
| 182 | // if >=199309L, add IEEE Std 1003.1b-1993; |
| 183 | // if >=199506L, add IEEE Std 1003.1c-1995; |
| 184 | // if >=200112L, all of IEEE 1003.1-2004 |
| 185 | // if >=200809L, all of IEEE 1003.1-2008 |
| 186 | // _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if |
| 187 | // Single Unix conformance is wanted, to 600 for the |
| 188 | // sixth revision, to 700 for the seventh revision. |
| 189 | // _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. |
| 190 | // _LARGEFILE_SOURCE Some more functions for correct standard I/O. |
| 191 | // _LARGEFILE64_SOURCE Additional functionality from LFS for large files. |
| 192 | // _FILE_OFFSET_BITS=N Select default filesystem interface. |
| 193 | // _ATFILE_SOURCE Additional *at interfaces. |
| 194 | // _DYNAMIC_STACK_SIZE_SOURCE Select correct (but non compile-time constant) |
| 195 | // MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. |
| 196 | // _GNU_SOURCE All of the above, plus GNU extensions. |
| 197 | // _DEFAULT_SOURCE The default set of features (taking precedence over |
| 198 | // __STRICT_ANSI__). |
| 199 | // |
| 200 | // _FORTIFY_SOURCE Add security hardening to many library functions. |
| 201 | // Set to 1 or 2; 2 performs stricter checks than 1. |
| 202 | // |
| 203 | // _REENTRANT, _THREAD_SAFE |
| 204 | // Obsolete; equivalent to _POSIX_C_SOURCE=199506L. |
| 205 | // |
| 206 | // The `-ansi' switch to the GNU C compiler, and standards conformance |
| 207 | // options such as `-std=c99', define __STRICT_ANSI__. If none of |
| 208 | // these are defined, or if _DEFAULT_SOURCE is defined, the default is |
| 209 | // to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to |
| 210 | // 200809L, as well as enabling miscellaneous functions from BSD and |
| 211 | // SVID. If more than one of these are defined, they accumulate. For |
| 212 | // example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together |
| 213 | // give you ISO C, 1003.1, and 1003.2, but nothing else. |
| 214 | // |
| 215 | // These are defined by this file and are used by the |
| 216 | // header files to decide what to declare or define: |
| 217 | // |
| 218 | // __GLIBC_USE (F) Define things from feature set F. This is defined |
| 219 | // to 1 or 0; the subsequent macros are either defined |
| 220 | // or undefined, and those tests should be moved to |
| 221 | // __GLIBC_USE. |
| 222 | // __USE_ISOC11 Define ISO C11 things. |
| 223 | // __USE_ISOC99 Define ISO C99 things. |
| 224 | // __USE_ISOC95 Define ISO C90 AMD1 (C95) things. |
| 225 | // __USE_ISOCXX11 Define ISO C++11 things. |
| 226 | // __USE_POSIX Define IEEE Std 1003.1 things. |
| 227 | // __USE_POSIX2 Define IEEE Std 1003.2 things. |
| 228 | // __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. |
| 229 | // __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. |
| 230 | // __USE_XOPEN Define XPG things. |
| 231 | // __USE_XOPEN_EXTENDED Define X/Open Unix things. |
| 232 | // __USE_UNIX98 Define Single Unix V2 things. |
| 233 | // __USE_XOPEN2K Define XPG6 things. |
| 234 | // __USE_XOPEN2KXSI Define XPG6 XSI things. |
| 235 | // __USE_XOPEN2K8 Define XPG7 things. |
| 236 | // __USE_XOPEN2K8XSI Define XPG7 XSI things. |
| 237 | // __USE_LARGEFILE Define correct standard I/O things. |
| 238 | // __USE_LARGEFILE64 Define LFS things with separate names. |
| 239 | // __USE_FILE_OFFSET64 Define 64bit interface as default. |
| 240 | // __USE_MISC Define things from 4.3BSD or System V Unix. |
| 241 | // __USE_ATFILE Define *at interfaces and AT_* constants for them. |
| 242 | // __USE_DYNAMIC_STACK_SIZE Define correct (but non compile-time constant) |
| 243 | // MINSIGSTKSZ, SIGSTKSZ and PTHREAD_STACK_MIN. |
| 244 | // __USE_GNU Define GNU extensions. |
| 245 | // __USE_FORTIFY_LEVEL Additional security measures used, according to level. |
| 246 | // |
| 247 | // The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are |
| 248 | // defined by this file unconditionally. `__GNU_LIBRARY__' is provided |
| 249 | // only for compatibility. All new code should use the other symbols |
| 250 | // to test for features. |
| 251 | // |
| 252 | // All macros listed above as possibly being defined by this file are |
| 253 | // explicitly undefined if they are not explicitly defined. |
| 254 | // Feature-test macros that are not defined by the user or compiler |
| 255 | // but are implied by the other feature-test macros defined (or by the |
| 256 | // lack of any definitions) are defined by the file. |
| 257 | // |
| 258 | // ISO C feature test macros depend on the definition of the macro |
| 259 | // when an affected header is included, not when the first system |
| 260 | // header is included, and so they are handled in |
| 261 | // <bits/libc-header-start.h>, which does not have a multiple include |
| 262 | // guard. Feature test macros that can be handled from the first |
| 263 | // system header included are handled here. |
| 264 | |
| 265 | // Undefine everything, so we get a clean slate. |
| 266 | |
| 267 | // Suppress kernel-name space pollution unless user expressedly asks |
| 268 | // for it. |
| 269 | |
| 270 | // Convenience macro to test the version of gcc. |
| 271 | // Use like this: |
| 272 | // #if __GNUC_PREREQ (2,8) |
| 273 | // ... code requiring gcc 2.8 or later ... |
| 274 | // #endif |
| 275 | // Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was |
| 276 | // added in 2.0. |
| 277 | |
| 278 | // Similarly for clang. Features added to GCC after version 4.2 may |
| 279 | // or may not also be available in clang, and clang's definitions of |
| 280 | // __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such |
| 281 | // features can be queried via __has_extension/__has_feature. |
| 282 | |
| 283 | // Whether to use feature set F. |
| 284 | |
| 285 | // _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for |
| 286 | // _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not |
| 287 | // issue a warning; the expectation is that the source is being |
| 288 | // transitioned to use the new macro. |
| 289 | |
| 290 | // If _GNU_SOURCE was defined by the user, turn on all the other features. |
| 291 | |
| 292 | // If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, |
| 293 | // define _DEFAULT_SOURCE. |
| 294 | |
| 295 | // This is to enable the ISO C2X extension. |
| 296 | |
| 297 | // This is to enable the ISO C11 extension. |
| 298 | |
| 299 | // This is to enable the ISO C99 extension. |
| 300 | |
| 301 | // This is to enable the ISO C90 Amendment 1:1995 extension. |
| 302 | |
| 303 | // If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE |
| 304 | // is defined, use POSIX.1-2008 (or another version depending on |
| 305 | // _XOPEN_SOURCE). |
| 306 | |
| 307 | // Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be |
| 308 | // defined in all multithreaded code. GNU libc has not required this |
| 309 | // for many years. We now treat them as compatibility synonyms for |
| 310 | // _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with |
| 311 | // comprehensive support for multithreaded code. Using them never |
| 312 | // lowers the selected level of POSIX conformance, only raises it. |
| 313 | |
| 314 | // Features part to handle 64-bit time_t support. |
| 315 | // Copyright (C) 2021 Free Software Foundation, Inc. |
| 316 | // This file is part of the GNU C Library. |
| 317 | // |
| 318 | // The GNU C Library is free software; you can redistribute it and/or |
| 319 | // modify it under the terms of the GNU Lesser General Public |
| 320 | // License as published by the Free Software Foundation; either |
| 321 | // version 2.1 of the License, or (at your option) any later version. |
| 322 | // |
| 323 | // The GNU C Library is distributed in the hope that it will be useful, |
| 324 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 325 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 326 | // Lesser General Public License for more details. |
| 327 | // |
| 328 | // You should have received a copy of the GNU Lesser General Public |
| 329 | // License along with the GNU C Library; if not, see |
| 330 | // <https://www.gnu.org/licenses/>. |
| 331 | |
| 332 | // We need to know the word size in order to check the time size. |
| 333 | // Determine the wordsize from the preprocessor defines. RISC-V version. |
| 334 | // Copyright (C) 2002-2021 Free Software Foundation, Inc. |
| 335 | // This file is part of the GNU C Library. |
| 336 | // |
| 337 | // The GNU C Library is free software; you can redistribute it and/or |
| 338 | // modify it under the terms of the GNU Lesser General Public |
| 339 | // License as published by the Free Software Foundation; either |
| 340 | // version 2.1 of the License, or (at your option) any later version. |
| 341 | // |
| 342 | // The GNU C Library is distributed in the hope that it will be useful, |
| 343 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 344 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 345 | // Lesser General Public License for more details. |
| 346 | // |
| 347 | // You should have received a copy of the GNU Lesser General Public |
| 348 | // License along with the GNU C Library. If not, see |
| 349 | // <https://www.gnu.org/licenses/>. |
| 350 | |
| 351 | // Bit size of the time_t type at glibc build time, RISC-V case. |
| 352 | // Copyright (C) 2020-2021 Free Software Foundation, Inc. |
| 353 | // This file is part of the GNU C Library. |
| 354 | // |
| 355 | // The GNU C Library is free software; you can redistribute it and/or |
| 356 | // modify it under the terms of the GNU Lesser General Public |
| 357 | // License as published by the Free Software Foundation; either |
| 358 | // version 2.1 of the License, or (at your option) any later version. |
| 359 | // |
| 360 | // The GNU C Library is distributed in the hope that it will be useful, |
| 361 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 362 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 363 | // Lesser General Public License for more details. |
| 364 | // |
| 365 | // You should have received a copy of the GNU Lesser General Public |
| 366 | // License along with the GNU C Library; if not, see |
| 367 | // <https://www.gnu.org/licenses/>. |
| 368 | |
| 369 | // Determine the wordsize from the preprocessor defines. RISC-V version. |
| 370 | // Copyright (C) 2002-2021 Free Software Foundation, Inc. |
| 371 | // This file is part of the GNU C Library. |
| 372 | // |
| 373 | // The GNU C Library is free software; you can redistribute it and/or |
| 374 | // modify it under the terms of the GNU Lesser General Public |
| 375 | // License as published by the Free Software Foundation; either |
| 376 | // version 2.1 of the License, or (at your option) any later version. |
| 377 | // |
| 378 | // The GNU C Library is distributed in the hope that it will be useful, |
| 379 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 380 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 381 | // Lesser General Public License for more details. |
| 382 | // |
| 383 | // You should have received a copy of the GNU Lesser General Public |
| 384 | // License along with the GNU C Library. If not, see |
| 385 | // <https://www.gnu.org/licenses/>. |
| 386 | |
| 387 | // RV32 and RV64 both use 64-bit time_t |
| 388 | |
| 389 | // The function 'gets' existed in C89, but is impossible to use |
| 390 | // safely. It has been removed from ISO C11 and ISO C++14. Note: for |
| 391 | // compatibility with various implementations of <cstdio>, this test |
| 392 | // must consider only the value of __cplusplus when compiling C++. |
| 393 | |
| 394 | // GNU formerly extended the scanf functions with modified format |
| 395 | // specifiers %as, %aS, and %a[...] that allocate a buffer for the |
| 396 | // input using malloc. This extension conflicts with ISO C99, which |
| 397 | // defines %a as a standalone format specifier that reads a floating- |
| 398 | // point number; moreover, POSIX.1-2008 provides the same feature |
| 399 | // using the modifier letter 'm' instead (%ms, %mS, %m[...]). |
| 400 | // |
| 401 | // We now follow C99 unless GNU extensions are active and the compiler |
| 402 | // is specifically in C89 or C++98 mode (strict or not). For |
| 403 | // instance, with GCC, -std=gnu11 will have C99-compliant scanf with |
| 404 | // or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the |
| 405 | // old extension. |
| 406 | |
| 407 | // Get definitions of __STDC_* predefined macros, if the compiler has |
| 408 | // not preincluded this header automatically. |
| 409 | // Copyright (C) 1991-2021 Free Software Foundation, Inc. |
| 410 | // This file is part of the GNU C Library. |
| 411 | // |
| 412 | // The GNU C Library is free software; you can redistribute it and/or |
| 413 | // modify it under the terms of the GNU Lesser General Public |
| 414 | // License as published by the Free Software Foundation; either |
| 415 | // version 2.1 of the License, or (at your option) any later version. |
| 416 | // |
| 417 | // The GNU C Library is distributed in the hope that it will be useful, |
| 418 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 419 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 420 | // Lesser General Public License for more details. |
| 421 | // |
| 422 | // You should have received a copy of the GNU Lesser General Public |
| 423 | // License along with the GNU C Library; if not, see |
| 424 | // <https://www.gnu.org/licenses/>. |
| 425 | |
| 426 | // This macro indicates that the installed library is the GNU C Library. |
| 427 | // For historic reasons the value now is 6 and this will stay from now |
| 428 | // on. The use of this variable is deprecated. Use __GLIBC__ and |
| 429 | // __GLIBC_MINOR__ now (see below) when you want to test for a specific |
| 430 | // GNU C library version and use the values in <gnu/lib-names.h> to get |
| 431 | // the sonames of the shared libraries. |
| 432 | |
| 433 | // Major and minor version number of the GNU C library package. Use |
| 434 | // these macros to test for features in specific releases. |
| 435 | |
| 436 | // This is here only because every header file already includes this one. |
| 437 | // Copyright (C) 1992-2021 Free Software Foundation, Inc. |
| 438 | // This file is part of the GNU C Library. |
| 439 | // |
| 440 | // The GNU C Library is free software; you can redistribute it and/or |
| 441 | // modify it under the terms of the GNU Lesser General Public |
| 442 | // License as published by the Free Software Foundation; either |
| 443 | // version 2.1 of the License, or (at your option) any later version. |
| 444 | // |
| 445 | // The GNU C Library is distributed in the hope that it will be useful, |
| 446 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 447 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 448 | // Lesser General Public License for more details. |
| 449 | // |
| 450 | // You should have received a copy of the GNU Lesser General Public |
| 451 | // License along with the GNU C Library; if not, see |
| 452 | // <https://www.gnu.org/licenses/>. |
| 453 | |
| 454 | // We are almost always included from features.h. |
| 455 | |
| 456 | // The GNU libc does not support any K&R compilers or the traditional mode |
| 457 | // of ISO C compilers anymore. Check for some of the combinations not |
| 458 | // supported anymore. |
| 459 | |
| 460 | // Some user header file might have defined this before. |
| 461 | |
| 462 | // Compilers that lack __has_attribute may object to |
| 463 | // #if defined __has_attribute && __has_attribute (...) |
| 464 | // even though they do not need to evaluate the right-hand side of the &&. |
| 465 | // Similarly for __has_builtin, etc. |
| 466 | |
| 467 | // All functions, except those with callbacks or those that |
| 468 | // synchronize memory, are leaf functions. |
| 469 | |
| 470 | // GCC can always grok prototypes. For C++ programs we add throw() |
| 471 | // to help it optimize the function calls. But this only works with |
| 472 | // gcc 2.8.x and egcs. For gcc 3.4 and up we even mark C functions |
| 473 | // as non-throwing using a function attribute since programs can use |
| 474 | // the -fexceptions options for C code as well. |
| 475 | |
| 476 | // These two macros are not used in glibc anymore. They are kept here |
| 477 | // only because some other projects expect the macros to be defined. |
| 478 | |
| 479 | // For these things, GCC behaves the ANSI way normally, |
| 480 | // and the non-ANSI way under -traditional. |
| 481 | |
| 482 | // This is not a typedef so `const __ptr_t' does the right thing. |
| 483 | |
| 484 | // C++ needs to know that types and declarations are C, not C++. |
| 485 | |
| 486 | // Fortify support. |
| 487 | |
| 488 | // Use __builtin_dynamic_object_size at _FORTIFY_SOURCE=3 when available. |
| 489 | |
| 490 | // Support for flexible arrays. |
| 491 | // Headers that should use flexible arrays only if they're "real" |
| 492 | // (e.g. only if they won't affect sizeof()) should test |
| 493 | // #if __glibc_c99_flexarr_available. |
| 494 | |
| 495 | // __asm__ ("xyz") is used throughout the headers to rename functions |
| 496 | // at the assembly language level. This is wrapped by the __REDIRECT |
| 497 | // macro, in order to support compilers that can do this some other |
| 498 | // way. When compilers don't support asm-names at all, we have to do |
| 499 | // preprocessor tricks instead (which don't have exactly the right |
| 500 | // semantics, but it's the best we can do). |
| 501 | // |
| 502 | // Example: |
| 503 | // int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); |
| 504 | |
| 505 | // |
| 506 | // #elif __SOME_OTHER_COMPILER__ |
| 507 | // |
| 508 | // # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias) |
| 509 | |
| 510 | // GCC and clang have various useful declarations that can be made with |
| 511 | // the '__attribute__' syntax. All of the ways we use this do fine if |
| 512 | // they are omitted for compilers that don't understand it. |
| 513 | |
| 514 | // At some point during the gcc 2.96 development the `malloc' attribute |
| 515 | // for functions was introduced. We don't want to use it unconditionally |
| 516 | // (although this would be possible) since it generates warnings. |
| 517 | |
| 518 | // Tell the compiler which arguments to an allocation function |
| 519 | // indicate the size of the allocation. |
| 520 | |
| 521 | // At some point during the gcc 2.96 development the `pure' attribute |
| 522 | // for functions was introduced. We don't want to use it unconditionally |
| 523 | // (although this would be possible) since it generates warnings. |
| 524 | |
| 525 | // This declaration tells the compiler that the value is constant. |
| 526 | |
| 527 | // At some point during the gcc 3.1 development the `used' attribute |
| 528 | // for functions was introduced. We don't want to use it unconditionally |
| 529 | // (although this would be possible) since it generates warnings. |
| 530 | |
| 531 | // Since version 3.2, gcc allows marking deprecated functions. |
| 532 | |
| 533 | // Since version 4.5, gcc also allows one to specify the message printed |
| 534 | // when a deprecated function is used. clang claims to be gcc 4.2, but |
| 535 | // may also support this feature. |
| 536 | |
| 537 | // At some point during the gcc 2.8 development the `format_arg' attribute |
| 538 | // for functions was introduced. We don't want to use it unconditionally |
| 539 | // (although this would be possible) since it generates warnings. |
| 540 | // If several `format_arg' attributes are given for the same function, in |
| 541 | // gcc-3.0 and older, all but the last one are ignored. In newer gccs, |
| 542 | // all designated arguments are considered. |
| 543 | |
| 544 | // At some point during the gcc 2.97 development the `strfmon' format |
| 545 | // attribute for functions was introduced. We don't want to use it |
| 546 | // unconditionally (although this would be possible) since it |
| 547 | // generates warnings. |
| 548 | |
| 549 | // The nonnull function attribute marks pointer parameters that |
| 550 | // must not be NULL. |
| 551 | |
| 552 | // The returns_nonnull function attribute marks the return type of the function |
| 553 | // as always being non-null. |
| 554 | |
| 555 | // If fortification mode, we warn about unused results of certain |
| 556 | // function calls which can lead to problems. |
| 557 | |
| 558 | // Forces a function to be always inlined. |
| 559 | // The Linux kernel defines __always_inline in stddef.h (283d7573), and |
| 560 | // it conflicts with this definition. Therefore undefine it first to |
| 561 | // allow either header to be included first. |
| 562 | |
| 563 | // Associate error messages with the source location of the call site rather |
| 564 | // than with the source location inside the function. |
| 565 | |
| 566 | // GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 |
| 567 | // inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__ |
| 568 | // or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions |
| 569 | // older than 4.3 may define these macros and still not guarantee GNU inlining |
| 570 | // semantics. |
| 571 | // |
| 572 | // clang++ identifies itself as gcc-4.2, but has support for GNU inlining |
| 573 | // semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and |
| 574 | // __GNUC_GNU_INLINE__ macro definitions. |
| 575 | |
| 576 | // GCC 4.3 and above allow passing all anonymous arguments of an |
| 577 | // __extern_always_inline function to some other vararg function. |
| 578 | |
| 579 | // It is possible to compile containing GCC extensions even if GCC is |
| 580 | // run in pedantic mode if the uses are carefully marked using the |
| 581 | // `__extension__' keyword. But this is not generally available before |
| 582 | // version 2.8. |
| 583 | |
| 584 | // __restrict is known in EGCS 1.2 and above, and in clang. |
| 585 | // It works also in C++ mode (outside of arrays), but only when spelled |
| 586 | // as '__restrict', not 'restrict'. |
| 587 | |
| 588 | // ISO C99 also allows to declare arrays as non-overlapping. The syntax is |
| 589 | // array_name[restrict] |
| 590 | // GCC 3.1 and clang support this. |
| 591 | // This syntax is not usable in C++ mode. |
| 592 | |
| 593 | // Describes a char array whose address can safely be passed as the first |
| 594 | // argument to strncpy and strncat, as the char array is not necessarily |
| 595 | // a NUL-terminated string. |
| 596 | |
| 597 | // Undefine (also defined in libc-symbols.h). |
| 598 | // Copies attributes from the declaration or type referenced by |
| 599 | // the argument. |
| 600 | |
| 601 | // The #ifndef lets Gnulib avoid including these on non-glibc |
| 602 | // platforms, where the includes typically do not exist. |
| 603 | // Determine the wordsize from the preprocessor defines. RISC-V version. |
| 604 | // Copyright (C) 2002-2021 Free Software Foundation, Inc. |
| 605 | // This file is part of the GNU C Library. |
| 606 | // |
| 607 | // The GNU C Library is free software; you can redistribute it and/or |
| 608 | // modify it under the terms of the GNU Lesser General Public |
| 609 | // License as published by the Free Software Foundation; either |
| 610 | // version 2.1 of the License, or (at your option) any later version. |
| 611 | // |
| 612 | // The GNU C Library is distributed in the hope that it will be useful, |
| 613 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 614 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 615 | // Lesser General Public License for more details. |
| 616 | // |
| 617 | // You should have received a copy of the GNU Lesser General Public |
| 618 | // License along with the GNU C Library. If not, see |
| 619 | // <https://www.gnu.org/licenses/>. |
| 620 | |
| 621 | // Properties of long double type. ldbl-128 version. |
| 622 | // Copyright (C) 2016-2021 Free Software Foundation, Inc. |
| 623 | // This file is part of the GNU C Library. |
| 624 | // |
| 625 | // The GNU C Library is free software; you can redistribute it and/or |
| 626 | // modify it under the terms of the GNU Lesser General Public |
| 627 | // License published by the Free Software Foundation; either |
| 628 | // version 2.1 of the License, or (at your option) any later version. |
| 629 | // |
| 630 | // The GNU C Library is distributed in the hope that it will be useful, |
| 631 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 632 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 633 | // Lesser General Public License for more details. |
| 634 | // |
| 635 | // You should have received a copy of the GNU Lesser General Public |
| 636 | // License along with the GNU C Library; if not, see |
| 637 | // <https://www.gnu.org/licenses/>. |
| 638 | |
| 639 | // long double is distinct from double, so there is nothing to |
| 640 | // define here. |
| 641 | |
| 642 | // __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is |
| 643 | // intended for use in preprocessor macros. |
| 644 | // |
| 645 | // Note: MESSAGE must be a _single_ string; concatenation of string |
| 646 | // literals is not supported. |
| 647 | |
| 648 | // Generic selection (ISO C11) is a C-only feature, available in GCC |
| 649 | // since version 4.9. Previous versions do not provide generic |
| 650 | // selection, even though they might set __STDC_VERSION__ to 201112L, |
| 651 | // when in -std=c11 mode. Thus, we must check for !defined __GNUC__ |
| 652 | // when testing __STDC_VERSION__ for generic selection support. |
| 653 | // On the other hand, Clang also defines __GNUC__, so a clang-specific |
| 654 | // check is required to enable the use of generic selection. |
| 655 | |
| 656 | // Designates a 1-based positional argument ref-index of pointer type |
| 657 | // that can be used to access size-index elements of the pointed-to |
| 658 | // array according to access mode, or at least one element when |
| 659 | // size-index is not provided: |
| 660 | // access (access-mode, <ref-index> [, <size-index>]) |
| 661 | |
| 662 | // Designates dealloc as a function to call to deallocate objects |
| 663 | // allocated by the declared function. |
| 664 | |
| 665 | // Specify that a function such as setjmp or vfork may return |
| 666 | // twice. |
| 667 | |
| 668 | // If we don't have __REDIRECT, prototypes will be missing if |
| 669 | // __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. |
| 670 | |
| 671 | // Decide whether we can define 'extern inline' functions in headers. |
| 672 | |
| 673 | // This is here only because every header file already includes this one. |
| 674 | // Get the definitions of all the appropriate `__stub_FUNCTION' symbols. |
| 675 | // <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub |
| 676 | // that will always return failure (and set errno to ENOSYS). |
| 677 | // This file is automatically generated. |
| 678 | // This file selects the right generated file of `__stub_FUNCTION' macros |
| 679 | // based on the architecture being compiled for. |
| 680 | |
| 681 | // Determine the wordsize from the preprocessor defines. RISC-V version. |
| 682 | // Copyright (C) 2002-2021 Free Software Foundation, Inc. |
| 683 | // This file is part of the GNU C Library. |
| 684 | // |
| 685 | // The GNU C Library is free software; you can redistribute it and/or |
| 686 | // modify it under the terms of the GNU Lesser General Public |
| 687 | // License as published by the Free Software Foundation; either |
| 688 | // version 2.1 of the License, or (at your option) any later version. |
| 689 | // |
| 690 | // The GNU C Library is distributed in the hope that it will be useful, |
| 691 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 692 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 693 | // Lesser General Public License for more details. |
| 694 | // |
| 695 | // You should have received a copy of the GNU Lesser General Public |
| 696 | // License along with the GNU C Library. If not, see |
| 697 | // <https://www.gnu.org/licenses/>. |
| 698 | |
| 699 | // This file is automatically generated. |
| 700 | // It defines a symbol `__stub_FUNCTION' for each function |
| 701 | // in the C library which is a stub, meaning it will fail |
| 702 | // every time called, usually setting errno to ENOSYS. |
| 703 | |
| 704 | // bits/types.h -- definitions of __*_t types underlying *_t types. |
| 705 | // Copyright (C) 2002-2021 Free Software Foundation, Inc. |
| 706 | // This file is part of the GNU C Library. |
| 707 | // |
| 708 | // The GNU C Library is free software; you can redistribute it and/or |
| 709 | // modify it under the terms of the GNU Lesser General Public |
| 710 | // License as published by the Free Software Foundation; either |
| 711 | // version 2.1 of the License, or (at your option) any later version. |
| 712 | // |
| 713 | // The GNU C Library is distributed in the hope that it will be useful, |
| 714 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 715 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 716 | // Lesser General Public License for more details. |
| 717 | // |
| 718 | // You should have received a copy of the GNU Lesser General Public |
| 719 | // License along with the GNU C Library; if not, see |
| 720 | // <https://www.gnu.org/licenses/>. |
| 721 | |
| 722 | // Never include this file directly; use <sys/types.h> instead. |
| 723 | |
| 724 | // Copyright (C) 1991-2021 Free Software Foundation, Inc. |
| 725 | // This file is part of the GNU C Library. |
| 726 | // |
| 727 | // The GNU C Library is free software; you can redistribute it and/or |
| 728 | // modify it under the terms of the GNU Lesser General Public |
| 729 | // License as published by the Free Software Foundation; either |
| 730 | // version 2.1 of the License, or (at your option) any later version. |
| 731 | // |
| 732 | // The GNU C Library is distributed in the hope that it will be useful, |
| 733 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 734 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 735 | // Lesser General Public License for more details. |
| 736 | // |
| 737 | // You should have received a copy of the GNU Lesser General Public |
| 738 | // License along with the GNU C Library; if not, see |
| 739 | // <https://www.gnu.org/licenses/>. |
| 740 | |
| 741 | // Determine the wordsize from the preprocessor defines. RISC-V version. |
| 742 | // Copyright (C) 2002-2021 Free Software Foundation, Inc. |
| 743 | // This file is part of the GNU C Library. |
| 744 | // |
| 745 | // The GNU C Library is free software; you can redistribute it and/or |
| 746 | // modify it under the terms of the GNU Lesser General Public |
| 747 | // License as published by the Free Software Foundation; either |
| 748 | // version 2.1 of the License, or (at your option) any later version. |
| 749 | // |
| 750 | // The GNU C Library is distributed in the hope that it will be useful, |
| 751 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 752 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 753 | // Lesser General Public License for more details. |
| 754 | // |
| 755 | // You should have received a copy of the GNU Lesser General Public |
| 756 | // License along with the GNU C Library. If not, see |
| 757 | // <https://www.gnu.org/licenses/>. |
| 758 | |
| 759 | // Bit size of the time_t type at glibc build time, RISC-V case. |
| 760 | // Copyright (C) 2020-2021 Free Software Foundation, Inc. |
| 761 | // This file is part of the GNU C Library. |
| 762 | // |
| 763 | // The GNU C Library is free software; you can redistribute it and/or |
| 764 | // modify it under the terms of the GNU Lesser General Public |
| 765 | // License as published by the Free Software Foundation; either |
| 766 | // version 2.1 of the License, or (at your option) any later version. |
| 767 | // |
| 768 | // The GNU C Library is distributed in the hope that it will be useful, |
| 769 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 770 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 771 | // Lesser General Public License for more details. |
| 772 | // |
| 773 | // You should have received a copy of the GNU Lesser General Public |
| 774 | // License along with the GNU C Library; if not, see |
| 775 | // <https://www.gnu.org/licenses/>. |
| 776 | |
| 777 | // Determine the wordsize from the preprocessor defines. RISC-V version. |
| 778 | // Copyright (C) 2002-2021 Free Software Foundation, Inc. |
| 779 | // This file is part of the GNU C Library. |
| 780 | // |
| 781 | // The GNU C Library is free software; you can redistribute it and/or |
| 782 | // modify it under the terms of the GNU Lesser General Public |
| 783 | // License as published by the Free Software Foundation; either |
| 784 | // version 2.1 of the License, or (at your option) any later version. |
| 785 | // |
| 786 | // The GNU C Library is distributed in the hope that it will be useful, |
| 787 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 788 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 789 | // Lesser General Public License for more details. |
| 790 | // |
| 791 | // You should have received a copy of the GNU Lesser General Public |
| 792 | // License along with the GNU C Library. If not, see |
| 793 | // <https://www.gnu.org/licenses/>. |
| 794 | |
| 795 | // RV32 and RV64 both use 64-bit time_t |
| 796 | |
| 797 | // Convenience types. |
| 798 | type X__u_char = uint8 /* types.h:31:23 */ |
| 799 | type X__u_short = uint16 /* types.h:32:28 */ |
| 800 | type X__u_int = uint32 /* types.h:33:22 */ |
| 801 | type X__u_long = uint64 /* types.h:34:27 */ |
| 802 | |
| 803 | // Fixed-size types, underlying types depend on word size and compiler. |
| 804 | type X__int8_t = int8 /* types.h:37:21 */ |
| 805 | type X__uint8_t = uint8 /* types.h:38:23 */ |
| 806 | type X__int16_t = int16 /* types.h:39:26 */ |
| 807 | type X__uint16_t = uint16 /* types.h:40:28 */ |
| 808 | type X__int32_t = int32 /* types.h:41:20 */ |
| 809 | type X__uint32_t = uint32 /* types.h:42:22 */ |
| 810 | type X__int64_t = int64 /* types.h:44:25 */ |
| 811 | type X__uint64_t = uint64 /* types.h:45:27 */ |
| 812 | |
| 813 | // Smallest types with at least a given width. |
| 814 | type X__int_least8_t = X__int8_t /* types.h:52:18 */ |
| 815 | type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ |
| 816 | type X__int_least16_t = X__int16_t /* types.h:54:19 */ |
| 817 | type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ |
| 818 | type X__int_least32_t = X__int32_t /* types.h:56:19 */ |
| 819 | type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ |
| 820 | type X__int_least64_t = X__int64_t /* types.h:58:19 */ |
| 821 | type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ |
| 822 | |
| 823 | // quad_t is also 64 bits. |
| 824 | type X__quad_t = int64 /* types.h:63:18 */ |
| 825 | type X__u_quad_t = uint64 /* types.h:64:27 */ |
| 826 | |
| 827 | // Largest integral types. |
| 828 | type X__intmax_t = int64 /* types.h:72:18 */ |
| 829 | type X__uintmax_t = uint64 /* types.h:73:27 */ |
| 830 | |
| 831 | // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE |
| 832 | // macros for each of the OS types we define below. The definitions |
| 833 | // of those macros must use the following macros for underlying types. |
| 834 | // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned |
| 835 | // variants of each of the following integer types on this machine. |
| 836 | // |
| 837 | // 16 -- "natural" 16-bit type (always short) |
| 838 | // 32 -- "natural" 32-bit type (always int) |
| 839 | // 64 -- "natural" 64-bit type (long or long long) |
| 840 | // LONG32 -- 32-bit type, traditionally long |
| 841 | // QUAD -- 64-bit type, traditionally long long |
| 842 | // WORD -- natural type of __WORDSIZE bits (int or long) |
| 843 | // LONGWORD -- type of __WORDSIZE bits, traditionally long |
| 844 | // |
| 845 | // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the |
| 846 | // conventional uses of `long' or `long long' type modifiers match the |
| 847 | // types we define, even when a less-adorned type would be the same size. |
| 848 | // This matters for (somewhat) portably writing printf/scanf formats for |
| 849 | // these types, where using the appropriate l or ll format modifiers can |
| 850 | // make the typedefs and the formats match up across all GNU platforms. If |
| 851 | // we used `long' when it's 64 bits where `long long' is expected, then the |
| 852 | // compiler would warn about the formats not matching the argument types, |
| 853 | // and the programmer changing them to shut up the compiler would break the |
| 854 | // program's portability. |
| 855 | // |
| 856 | // Here we assume what is presently the case in all the GCC configurations |
| 857 | // we support: long long is always 64 bits, long is always word/address size, |
| 858 | // and int is always 32 bits. |
| 859 | |
| 860 | // No need to mark the typedef with __extension__. |
| 861 | // bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. |
| 862 | // Copyright (C) 2011-2021 Free Software Foundation, Inc. |
| 863 | // This file is part of the GNU C Library. |
| 864 | // Contributed by Chris Metcalf <[email protected]>, 2011. |
| 865 | // |
| 866 | // The GNU C Library is free software; you can redistribute it and/or |
| 867 | // modify it under the terms of the GNU Lesser General Public |
| 868 | // License as published by the Free Software Foundation; either |
| 869 | // version 2.1 of the License, or (at your option) any later version. |
| 870 | // |
| 871 | // The GNU C Library is distributed in the hope that it will be useful, |
| 872 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 873 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 874 | // Lesser General Public License for more details. |
| 875 | // |
| 876 | // You should have received a copy of the GNU Lesser General Public |
| 877 | // License along with the GNU C Library. If not, see |
| 878 | // <https://www.gnu.org/licenses/>. |
| 879 | |
| 880 | // See <bits/types.h> for the meaning of these macros. This file exists so |
| 881 | // that <bits/types.h> need not vary across different GNU platforms. |
| 882 | |
| 883 | // Tell the libc code that off_t and off64_t are actually the same type |
| 884 | // for all ABI purposes, even if possibly expressed as different base types |
| 885 | // for C type-checking purposes. |
| 886 | |
| 887 | // Same for ino_t and ino64_t. |
| 888 | |
| 889 | // And for __rlim_t and __rlim64_t. |
| 890 | |
| 891 | // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. |
| 892 | |
| 893 | // And for getitimer, setitimer and rusage |
| 894 | |
| 895 | // Number of descriptors that can fit in an `fd_set'. |
| 896 | |
| 897 | // bits/time64.h -- underlying types for __time64_t. RISC-V version. |
| 898 | // Copyright (C) 2020-2021 Free Software Foundation, Inc. |
| 899 | // This file is part of the GNU C Library. |
| 900 | // |
| 901 | // The GNU C Library is free software; you can redistribute it and/or |
| 902 | // modify it under the terms of the GNU Lesser General Public |
| 903 | // License as published by the Free Software Foundation; either |
| 904 | // version 2.1 of the License, or (at your option) any later version. |
| 905 | // |
| 906 | // The GNU C Library is distributed in the hope that it will be useful, |
| 907 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 908 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 909 | // Lesser General Public License for more details. |
| 910 | // |
| 911 | // You should have received a copy of the GNU Lesser General Public |
| 912 | // License along with the GNU C Library; if not, see |
| 913 | // <https://www.gnu.org/licenses/>. |
| 914 | |
| 915 | // Define __TIME64_T_TYPE so that it is always a 64-bit type. |
| 916 | |
| 917 | // If we already have 64-bit time type then use it. |
| 918 | |
| 919 | type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. |
| 920 | type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. |
| 921 | type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. |
| 922 | type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. |
| 923 | type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). |
| 924 | type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. |
| 925 | type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. |
| 926 | type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. |
| 927 | type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). |
| 928 | type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. |
| 929 | type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. |
| 930 | type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. |
| 931 | type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. |
| 932 | type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). |
| 933 | type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. |
| 934 | type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. |
| 935 | type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. |
| 936 | type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. |
| 937 | type X__suseconds64_t = int64 /* types.h:163:33 */ |
| 938 | |
| 939 | type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address. |
| 940 | type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key. |
| 941 | |
| 942 | // Clock ID used in clock and timer functions. |
| 943 | type X__clockid_t = int32 /* types.h:169:29 */ |
| 944 | |
| 945 | // Timer ID returned by `timer_create'. |
| 946 | type X__timer_t = uintptr /* types.h:172:12 */ |
| 947 | |
| 948 | // Type to represent block size. |
| 949 | type X__blksize_t = int32 /* types.h:175:29 */ |
| 950 | |
| 951 | // Types from the Large File Support interface. |
| 952 | |
| 953 | // Type to count number of disk blocks. |
| 954 | type X__blkcnt_t = int64 /* types.h:180:28 */ |
| 955 | type X__blkcnt64_t = int64 /* types.h:181:30 */ |
| 956 | |
| 957 | // Type to count file system blocks. |
| 958 | type X__fsblkcnt_t = uint64 /* types.h:184:30 */ |
| 959 | type X__fsblkcnt64_t = uint64 /* types.h:185:32 */ |
| 960 | |
| 961 | // Type to count file system nodes. |
| 962 | type X__fsfilcnt_t = uint64 /* types.h:188:30 */ |
| 963 | type X__fsfilcnt64_t = uint64 /* types.h:189:32 */ |
| 964 | |
| 965 | // Type of miscellaneous file system fields. |
| 966 | type X__fsword_t = int64 /* types.h:192:28 */ |
| 967 | |
| 968 | type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error. |
| 969 | |
| 970 | // Signed long type used in system calls. |
| 971 | type X__syscall_slong_t = int64 /* types.h:197:33 */ |
| 972 | // Unsigned long type used in system calls. |
| 973 | type X__syscall_ulong_t = uint64 /* types.h:199:33 */ |
| 974 | |
| 975 | // These few don't really vary by system, they always correspond |
| 976 | // |
| 977 | // to one of the other defined types. |
| 978 | type X__loff_t = X__off64_t /* types.h:203:19 */ // Type of file sizes and offsets (LFS). |
| 979 | type X__caddr_t = uintptr /* types.h:204:14 */ |
| 980 | |
| 981 | // Duplicates info from stdint.h but this is used in unistd.h. |
| 982 | type X__intptr_t = int64 /* types.h:207:25 */ |
| 983 | |
| 984 | // Duplicate info from sys/socket.h. |
| 985 | type X__socklen_t = uint32 /* types.h:210:23 */ |
| 986 | |
| 987 | // C99: An integer type that can be accessed as an atomic entity, |
| 988 | // |
| 989 | // even in the presence of asynchronous interrupts. |
| 990 | // It is not currently necessary for this to be machine-specific. |
| 991 | type X__sig_atomic_t = int32 /* types.h:215:13 */ |
| 992 | |
| 993 | // Seconds since the Epoch, visible to user code when time_t is too |
| 994 | // narrow only for consistency with the old way of widening too-narrow |
| 995 | // types. User code should never use __time64_t. |
| 996 | |
| 997 | // Some versions of stddef.h provide wint_t, even though neither the |
| 998 | // C nor C++ standards, nor POSIX, specifies this. We assume that |
| 999 | // stddef.h will define the macro _WINT_T if and only if it provides |
| 1000 | // wint_t, and conversely, that it will avoid providing wint_t if |
| 1001 | // _WINT_T is already defined. |
| 1002 | |
| 1003 | // Integral type unchanged by default argument promotions that can |
| 1004 | // hold any value corresponding to members of the extended character |
| 1005 | // set, as well as at least one value that does not correspond to any |
| 1006 | // member of the extended character set. |
| 1007 | |
| 1008 | type Wint_t = uint32 /* wint_t.h:20:23 */ |
| 1009 | |
| 1010 | // Constant expression of type `wint_t' whose value does not correspond |
| 1011 | // to any member of the extended character set. |
| 1012 | |
| 1013 | // Some definitions from this header also appear in <wchar.h> in |
| 1014 | // Unix98 mode. |
| 1015 | // Copyright (C) 1996-2021 Free Software Foundation, Inc. |
| 1016 | // This file is part of the GNU C Library. |
| 1017 | // |
| 1018 | // The GNU C Library is free software; you can redistribute it and/or |
| 1019 | // modify it under the terms of the GNU Lesser General Public |
| 1020 | // License as published by the Free Software Foundation; either |
| 1021 | // version 2.1 of the License, or (at your option) any later version. |
| 1022 | // |
| 1023 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1024 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1025 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1026 | // Lesser General Public License for more details. |
| 1027 | // |
| 1028 | // You should have received a copy of the GNU Lesser General Public |
| 1029 | // License along with the GNU C Library; if not, see |
| 1030 | // <https://www.gnu.org/licenses/>. |
| 1031 | |
| 1032 | // ISO C99 Standard: 7.25 |
| 1033 | // Wide character classification and mapping utilities <wctype.h> |
| 1034 | |
| 1035 | // bits/types.h -- definitions of __*_t types underlying *_t types. |
| 1036 | // Copyright (C) 2002-2021 Free Software Foundation, Inc. |
| 1037 | // This file is part of the GNU C Library. |
| 1038 | // |
| 1039 | // The GNU C Library is free software; you can redistribute it and/or |
| 1040 | // modify it under the terms of the GNU Lesser General Public |
| 1041 | // License as published by the Free Software Foundation; either |
| 1042 | // version 2.1 of the License, or (at your option) any later version. |
| 1043 | // |
| 1044 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1045 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1046 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1047 | // Lesser General Public License for more details. |
| 1048 | // |
| 1049 | // You should have received a copy of the GNU Lesser General Public |
| 1050 | // License along with the GNU C Library; if not, see |
| 1051 | // <https://www.gnu.org/licenses/>. |
| 1052 | |
| 1053 | // Never include this file directly; use <sys/types.h> instead. |
| 1054 | |
| 1055 | // The definitions in this header are specified to appear in <wctype.h> |
| 1056 | // in ISO C99, but in <wchar.h> in Unix98. _GNU_SOURCE follows C99. |
| 1057 | |
| 1058 | // Scalar type that can hold values which represent locale-specific |
| 1059 | // |
| 1060 | // character classifications. |
| 1061 | type Wctype_t = uint64 /* wctype-wchar.h:38:27 */ |
| 1062 | |
| 1063 | // Extensible wide-character mapping functions: 7.15.3.2. |
| 1064 | |
| 1065 | // Scalar type that can hold values which represent locale-specific |
| 1066 | // |
| 1067 | // character mappings. |
| 1068 | type Wctrans_t = uintptr /* wctype.h:48:25 */ |
| 1069 | |
| 1070 | // POSIX.1-2008 extended locale interface (see locale.h). |
| 1071 | // Definition of locale_t. |
| 1072 | // Copyright (C) 2017-2021 Free Software Foundation, Inc. |
| 1073 | // This file is part of the GNU C Library. |
| 1074 | // |
| 1075 | // The GNU C Library is free software; you can redistribute it and/or |
| 1076 | // modify it under the terms of the GNU Lesser General Public |
| 1077 | // License as published by the Free Software Foundation; either |
| 1078 | // version 2.1 of the License, or (at your option) any later version. |
| 1079 | // |
| 1080 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1081 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1082 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1083 | // Lesser General Public License for more details. |
| 1084 | // |
| 1085 | // You should have received a copy of the GNU Lesser General Public |
| 1086 | // License along with the GNU C Library; if not, see |
| 1087 | // <https://www.gnu.org/licenses/>. |
| 1088 | |
| 1089 | // Definition of struct __locale_struct and __locale_t. |
| 1090 | // Copyright (C) 1997-2021 Free Software Foundation, Inc. |
| 1091 | // This file is part of the GNU C Library. |
| 1092 | // Contributed by Ulrich Drepper <[email protected]>, 1997. |
| 1093 | // |
| 1094 | // The GNU C Library is free software; you can redistribute it and/or |
| 1095 | // modify it under the terms of the GNU Lesser General Public |
| 1096 | // License as published by the Free Software Foundation; either |
| 1097 | // version 2.1 of the License, or (at your option) any later version. |
| 1098 | // |
| 1099 | // The GNU C Library is distributed in the hope that it will be useful, |
| 1100 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 1101 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 1102 | // Lesser General Public License for more details. |
| 1103 | // |
| 1104 | // You should have received a copy of the GNU Lesser General Public |
| 1105 | // License along with the GNU C Library; if not, see |
| 1106 | // <https://www.gnu.org/licenses/>. |
| 1107 | |
| 1108 | // POSIX.1-2008: the locale_t type, representing a locale context |
| 1109 | // (implementation-namespace version). This type should be treated |
| 1110 | // as opaque by applications; some details are exposed for the sake of |
| 1111 | // efficiency in e.g. ctype functions. |
| 1112 | |
| 1113 | type X__locale_struct = struct { |
| 1114 | F__locales [13]uintptr |
| 1115 | F__ctype_b uintptr |
| 1116 | F__ctype_tolower uintptr |
| 1117 | F__ctype_toupper uintptr |
| 1118 | F__names [13]uintptr |
| 1119 | } /* __locale_t.h:28:1 */ |
| 1120 | |
| 1121 | type X__locale_t = uintptr /* __locale_t.h:42:32 */ |
| 1122 | |
| 1123 | type Locale_t = X__locale_t /* locale_t.h:24:20 */ |
| 1124 | |
| 1125 | var _ uint8 /* gen.c:2:13: */ |