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