time_linux_riscv64.go (30988B)
1 // Code generated by 'ccgo time/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 time/time_linux_riscv64.go -pkgname time', DO NOT EDIT. 2 3 package time 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 CLOCK_BOOTTIME = 7 19 CLOCK_BOOTTIME_ALARM = 9 20 CLOCK_MONOTONIC = 1 21 CLOCK_MONOTONIC_COARSE = 6 22 CLOCK_MONOTONIC_RAW = 4 23 CLOCK_PROCESS_CPUTIME_ID = 2 24 CLOCK_REALTIME = 0 25 CLOCK_REALTIME_ALARM = 8 26 CLOCK_REALTIME_COARSE = 5 27 CLOCK_TAI = 11 28 CLOCK_THREAD_CPUTIME_ID = 3 29 TIMER_ABSTIME = 1 30 TIME_UTC = 1 31 X_ATFILE_SOURCE = 1 32 X_BITS_ENDIANNESS_H = 1 33 X_BITS_ENDIAN_H = 1 34 X_BITS_TIME64_H = 1 35 X_BITS_TIME_H = 1 36 X_BITS_TYPESIZES_H = 1 37 X_BITS_TYPES_H = 1 38 X_BITS_TYPES_LOCALE_T_H = 1 39 X_BITS_TYPES___LOCALE_T_H = 1 40 X_BSD_SIZE_T_ = 0 41 X_BSD_SIZE_T_DEFINED_ = 0 42 X_DEFAULT_SOURCE = 1 43 X_FEATURES_H = 1 44 X_FILE_OFFSET_BITS = 64 45 X_GCC_SIZE_T = 0 46 X_LP64 = 1 47 X_POSIX_C_SOURCE = 200809 48 X_POSIX_SOURCE = 1 49 X_SIZET_ = 0 50 X_SIZE_T = 0 51 X_SIZE_T_ = 0 52 X_SIZE_T_DECLARED = 0 53 X_SIZE_T_DEFINED = 0 54 X_SIZE_T_DEFINED_ = 0 55 X_STDC_PREDEF_H = 1 56 X_STRUCT_TIMESPEC = 1 57 X_SYS_CDEFS_H = 1 58 X_SYS_SIZE_T_H = 0 59 X_TIME_H = 1 60 X_T_SIZE = 0 61 X_T_SIZE_ = 0 62 Linux = 1 63 Unix = 1 64 ) 65 66 type Ptrdiff_t = int64 /* <builtin>:3:26 */ 67 68 type Size_t = uint64 /* <builtin>:9:23 */ 69 70 type Wchar_t = int32 /* <builtin>:15:24 */ 71 72 type X__int128_t = struct { 73 Flo int64 74 Fhi int64 75 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128 76 type X__uint128_t = struct { 77 Flo uint64 78 Fhi uint64 79 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128 80 81 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 82 type X__float128 = float64 /* <builtin>:47:21 */ 83 84 // Wide character type. 85 // Locale-writers should change this as necessary to 86 // be big enough to hold unique values not between 0 and 127, 87 // and not (wchar_t) -1, for each defined multibyte character. 88 89 // Define this type if we are doing the whole job, 90 // or if we want this type in particular. 91 92 // A null pointer constant. 93 94 // This defines CLOCKS_PER_SEC, which is the number of processor clock 95 // ticks per second, and possibly a number of other constants. 96 // System-dependent timing definitions. Linux version. 97 // Copyright (C) 1996-2021 Free Software Foundation, Inc. 98 // This file is part of the GNU C Library. 99 // 100 // The GNU C Library is free software; you can redistribute it and/or 101 // modify it under the terms of the GNU Lesser General Public 102 // License as published by the Free Software Foundation; either 103 // version 2.1 of the License, or (at your option) any later version. 104 // 105 // The GNU C Library is distributed in the hope that it will be useful, 106 // but WITHOUT ANY WARRANTY; without even the implied warranty of 107 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 108 // Lesser General Public License for more details. 109 // 110 // You should have received a copy of the GNU Lesser General Public 111 // License along with the GNU C Library; if not, see 112 // <https://www.gnu.org/licenses/>. 113 114 // Never include this file directly; use <time.h> instead. 115 116 // bits/types.h -- definitions of __*_t types underlying *_t types. 117 // Copyright (C) 2002-2021 Free Software Foundation, Inc. 118 // This file is part of the GNU C Library. 119 // 120 // The GNU C Library is free software; you can redistribute it and/or 121 // modify it under the terms of the GNU Lesser General Public 122 // License as published by the Free Software Foundation; either 123 // version 2.1 of the License, or (at your option) any later version. 124 // 125 // The GNU C Library is distributed in the hope that it will be useful, 126 // but WITHOUT ANY WARRANTY; without even the implied warranty of 127 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 128 // Lesser General Public License for more details. 129 // 130 // You should have received a copy of the GNU Lesser General Public 131 // License along with the GNU C Library; if not, see 132 // <https://www.gnu.org/licenses/>. 133 134 // Never include this file directly; use <sys/types.h> instead. 135 136 // Copyright (C) 1991-2021 Free Software Foundation, Inc. 137 // This file is part of the GNU C Library. 138 // 139 // The GNU C Library is free software; you can redistribute it and/or 140 // modify it under the terms of the GNU Lesser General Public 141 // License as published by the Free Software Foundation; either 142 // version 2.1 of the License, or (at your option) any later version. 143 // 144 // The GNU C Library is distributed in the hope that it will be useful, 145 // but WITHOUT ANY WARRANTY; without even the implied warranty of 146 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 147 // Lesser General Public License for more details. 148 // 149 // You should have received a copy of the GNU Lesser General Public 150 // License along with the GNU C Library; if not, see 151 // <https://www.gnu.org/licenses/>. 152 153 // Determine the wordsize from the preprocessor defines. RISC-V version. 154 // Copyright (C) 2002-2021 Free Software Foundation, Inc. 155 // This file is part of the GNU C Library. 156 // 157 // The GNU C Library is free software; you can redistribute it and/or 158 // modify it under the terms of the GNU Lesser General Public 159 // License as published by the Free Software Foundation; either 160 // version 2.1 of the License, or (at your option) any later version. 161 // 162 // The GNU C Library is distributed in the hope that it will be useful, 163 // but WITHOUT ANY WARRANTY; without even the implied warranty of 164 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 165 // Lesser General Public License for more details. 166 // 167 // You should have received a copy of the GNU Lesser General Public 168 // License along with the GNU C Library. If not, see 169 // <https://www.gnu.org/licenses/>. 170 171 // Bit size of the time_t type at glibc build time, RISC-V case. 172 // Copyright (C) 2020-2021 Free Software Foundation, Inc. 173 // This file is part of the GNU C Library. 174 // 175 // The GNU C Library is free software; you can redistribute it and/or 176 // modify it under the terms of the GNU Lesser General Public 177 // License as published by the Free Software Foundation; either 178 // version 2.1 of the License, or (at your option) any later version. 179 // 180 // The GNU C Library is distributed in the hope that it will be useful, 181 // but WITHOUT ANY WARRANTY; without even the implied warranty of 182 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 183 // Lesser General Public License for more details. 184 // 185 // You should have received a copy of the GNU Lesser General Public 186 // License along with the GNU C Library; if not, see 187 // <https://www.gnu.org/licenses/>. 188 189 // Determine the wordsize from the preprocessor defines. RISC-V version. 190 // Copyright (C) 2002-2021 Free Software Foundation, Inc. 191 // This file is part of the GNU C Library. 192 // 193 // The GNU C Library is free software; you can redistribute it and/or 194 // modify it under the terms of the GNU Lesser General Public 195 // License as published by the Free Software Foundation; either 196 // version 2.1 of the License, or (at your option) any later version. 197 // 198 // The GNU C Library is distributed in the hope that it will be useful, 199 // but WITHOUT ANY WARRANTY; without even the implied warranty of 200 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 201 // Lesser General Public License for more details. 202 // 203 // You should have received a copy of the GNU Lesser General Public 204 // License along with the GNU C Library. If not, see 205 // <https://www.gnu.org/licenses/>. 206 207 // RV32 and RV64 both use 64-bit time_t 208 209 // Convenience types. 210 type X__u_char = uint8 /* types.h:31:23 */ 211 type X__u_short = uint16 /* types.h:32:28 */ 212 type X__u_int = uint32 /* types.h:33:22 */ 213 type X__u_long = uint64 /* types.h:34:27 */ 214 215 // Fixed-size types, underlying types depend on word size and compiler. 216 type X__int8_t = int8 /* types.h:37:21 */ 217 type X__uint8_t = uint8 /* types.h:38:23 */ 218 type X__int16_t = int16 /* types.h:39:26 */ 219 type X__uint16_t = uint16 /* types.h:40:28 */ 220 type X__int32_t = int32 /* types.h:41:20 */ 221 type X__uint32_t = uint32 /* types.h:42:22 */ 222 type X__int64_t = int64 /* types.h:44:25 */ 223 type X__uint64_t = uint64 /* types.h:45:27 */ 224 225 // Smallest types with at least a given width. 226 type X__int_least8_t = X__int8_t /* types.h:52:18 */ 227 type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ 228 type X__int_least16_t = X__int16_t /* types.h:54:19 */ 229 type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ 230 type X__int_least32_t = X__int32_t /* types.h:56:19 */ 231 type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ 232 type X__int_least64_t = X__int64_t /* types.h:58:19 */ 233 type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ 234 235 // quad_t is also 64 bits. 236 type X__quad_t = int64 /* types.h:63:18 */ 237 type X__u_quad_t = uint64 /* types.h:64:27 */ 238 239 // Largest integral types. 240 type X__intmax_t = int64 /* types.h:72:18 */ 241 type X__uintmax_t = uint64 /* types.h:73:27 */ 242 243 // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE 244 // macros for each of the OS types we define below. The definitions 245 // of those macros must use the following macros for underlying types. 246 // We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned 247 // variants of each of the following integer types on this machine. 248 // 249 // 16 -- "natural" 16-bit type (always short) 250 // 32 -- "natural" 32-bit type (always int) 251 // 64 -- "natural" 64-bit type (long or long long) 252 // LONG32 -- 32-bit type, traditionally long 253 // QUAD -- 64-bit type, traditionally long long 254 // WORD -- natural type of __WORDSIZE bits (int or long) 255 // LONGWORD -- type of __WORDSIZE bits, traditionally long 256 // 257 // We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the 258 // conventional uses of `long' or `long long' type modifiers match the 259 // types we define, even when a less-adorned type would be the same size. 260 // This matters for (somewhat) portably writing printf/scanf formats for 261 // these types, where using the appropriate l or ll format modifiers can 262 // make the typedefs and the formats match up across all GNU platforms. If 263 // we used `long' when it's 64 bits where `long long' is expected, then the 264 // compiler would warn about the formats not matching the argument types, 265 // and the programmer changing them to shut up the compiler would break the 266 // program's portability. 267 // 268 // Here we assume what is presently the case in all the GCC configurations 269 // we support: long long is always 64 bits, long is always word/address size, 270 // and int is always 32 bits. 271 272 // No need to mark the typedef with __extension__. 273 // bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. 274 // Copyright (C) 2011-2021 Free Software Foundation, Inc. 275 // This file is part of the GNU C Library. 276 // Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011. 277 // 278 // The GNU C Library is free software; you can redistribute it and/or 279 // modify it under the terms of the GNU Lesser General Public 280 // License as published by the Free Software Foundation; either 281 // version 2.1 of the License, or (at your option) any later version. 282 // 283 // The GNU C Library is distributed in the hope that it will be useful, 284 // but WITHOUT ANY WARRANTY; without even the implied warranty of 285 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 286 // Lesser General Public License for more details. 287 // 288 // You should have received a copy of the GNU Lesser General Public 289 // License along with the GNU C Library. If not, see 290 // <https://www.gnu.org/licenses/>. 291 292 // See <bits/types.h> for the meaning of these macros. This file exists so 293 // that <bits/types.h> need not vary across different GNU platforms. 294 295 // Tell the libc code that off_t and off64_t are actually the same type 296 // for all ABI purposes, even if possibly expressed as different base types 297 // for C type-checking purposes. 298 299 // Same for ino_t and ino64_t. 300 301 // And for __rlim_t and __rlim64_t. 302 303 // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. 304 305 // And for getitimer, setitimer and rusage 306 307 // Number of descriptors that can fit in an `fd_set'. 308 309 // bits/time64.h -- underlying types for __time64_t. RISC-V version. 310 // Copyright (C) 2020-2021 Free Software Foundation, Inc. 311 // This file is part of the GNU C Library. 312 // 313 // The GNU C Library is free software; you can redistribute it and/or 314 // modify it under the terms of the GNU Lesser General Public 315 // License as published by the Free Software Foundation; either 316 // version 2.1 of the License, or (at your option) any later version. 317 // 318 // The GNU C Library is distributed in the hope that it will be useful, 319 // but WITHOUT ANY WARRANTY; without even the implied warranty of 320 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 321 // Lesser General Public License for more details. 322 // 323 // You should have received a copy of the GNU Lesser General Public 324 // License along with the GNU C Library; if not, see 325 // <https://www.gnu.org/licenses/>. 326 327 // Define __TIME64_T_TYPE so that it is always a 64-bit type. 328 329 // If we already have 64-bit time type then use it. 330 331 type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. 332 type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. 333 type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. 334 type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. 335 type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). 336 type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. 337 type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. 338 type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. 339 type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). 340 type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. 341 type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. 342 type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. 343 type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. 344 type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). 345 type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. 346 type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. 347 type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. 348 type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. 349 type X__suseconds64_t = int64 /* types.h:163:33 */ 350 351 type X__daddr_t = int32 /* types.h:165:27 */ // The type of a disk address. 352 type X__key_t = int32 /* types.h:166:25 */ // Type of an IPC key. 353 354 // Clock ID used in clock and timer functions. 355 type X__clockid_t = int32 /* types.h:169:29 */ 356 357 // Timer ID returned by `timer_create'. 358 type X__timer_t = uintptr /* types.h:172:12 */ 359 360 // Type to represent block size. 361 type X__blksize_t = int32 /* types.h:175:29 */ 362 363 // Types from the Large File Support interface. 364 365 // Type to count number of disk blocks. 366 type X__blkcnt_t = int64 /* types.h:180:28 */ 367 type X__blkcnt64_t = int64 /* types.h:181:30 */ 368 369 // Type to count file system blocks. 370 type X__fsblkcnt_t = uint64 /* types.h:184:30 */ 371 type X__fsblkcnt64_t = uint64 /* types.h:185:32 */ 372 373 // Type to count file system nodes. 374 type X__fsfilcnt_t = uint64 /* types.h:188:30 */ 375 type X__fsfilcnt64_t = uint64 /* types.h:189:32 */ 376 377 // Type of miscellaneous file system fields. 378 type X__fsword_t = int64 /* types.h:192:28 */ 379 380 type X__ssize_t = int64 /* types.h:194:27 */ // Type of a byte count, or error. 381 382 // Signed long type used in system calls. 383 type X__syscall_slong_t = int64 /* types.h:197:33 */ 384 // Unsigned long type used in system calls. 385 type X__syscall_ulong_t = uint64 /* types.h:199:33 */ 386 387 // These few don't really vary by system, they always correspond 388 // 389 // to one of the other defined types. 390 type X__loff_t = X__off64_t /* types.h:203:19 */ // Type of file sizes and offsets (LFS). 391 type X__caddr_t = uintptr /* types.h:204:14 */ 392 393 // Duplicates info from stdint.h but this is used in unistd.h. 394 type X__intptr_t = int64 /* types.h:207:25 */ 395 396 // Duplicate info from sys/socket.h. 397 type X__socklen_t = uint32 /* types.h:210:23 */ 398 399 // C99: An integer type that can be accessed as an atomic entity, 400 // 401 // even in the presence of asynchronous interrupts. 402 // It is not currently necessary for this to be machine-specific. 403 type X__sig_atomic_t = int32 /* types.h:215:13 */ 404 405 // Seconds since the Epoch, visible to user code when time_t is too 406 // narrow only for consistency with the old way of widening too-narrow 407 // types. User code should never use __time64_t. 408 409 // ISO/IEC 9899:1999 7.23.1: Components of time 410 // The macro `CLOCKS_PER_SEC' is an expression with type `clock_t' that is 411 // the number per second of the value returned by the `clock' function. 412 // CAE XSH, Issue 4, Version 2: <time.h> 413 // The value of CLOCKS_PER_SEC is required to be 1 million on all 414 // XSI-conformant systems. 415 416 // Identifier for system-wide realtime clock. 417 // Monotonic system-wide clock. 418 // High-resolution timer from the CPU. 419 // Thread-specific CPU-time clock. 420 // Monotonic system-wide clock, not adjusted for frequency scaling. 421 // Identifier for system-wide realtime clock, updated only on ticks. 422 // Monotonic system-wide clock, updated only on ticks. 423 // Monotonic system-wide clock that includes time spent in suspension. 424 // Like CLOCK_REALTIME but also wakes suspended system. 425 // Like CLOCK_BOOTTIME but also wakes suspended system. 426 // Like CLOCK_REALTIME but in International Atomic Time. 427 428 // Flag to indicate time is absolute. 429 430 // Many of the typedefs and structs whose official home is this header 431 // may also need to be defined by other headers. 432 433 // bits/types.h -- definitions of __*_t types underlying *_t types. 434 // Copyright (C) 2002-2021 Free Software Foundation, Inc. 435 // This file is part of the GNU C Library. 436 // 437 // The GNU C Library is free software; you can redistribute it and/or 438 // modify it under the terms of the GNU Lesser General Public 439 // License as published by the Free Software Foundation; either 440 // version 2.1 of the License, or (at your option) any later version. 441 // 442 // The GNU C Library is distributed in the hope that it will be useful, 443 // but WITHOUT ANY WARRANTY; without even the implied warranty of 444 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 445 // Lesser General Public License for more details. 446 // 447 // You should have received a copy of the GNU Lesser General Public 448 // License along with the GNU C Library; if not, see 449 // <https://www.gnu.org/licenses/>. 450 451 // Never include this file directly; use <sys/types.h> instead. 452 453 // Returned by `clock'. 454 type Clock_t = X__clock_t /* clock_t.h:7:19 */ 455 456 // bits/types.h -- definitions of __*_t types underlying *_t types. 457 // Copyright (C) 2002-2021 Free Software Foundation, Inc. 458 // This file is part of the GNU C Library. 459 // 460 // The GNU C Library is free software; you can redistribute it and/or 461 // modify it under the terms of the GNU Lesser General Public 462 // License as published by the Free Software Foundation; either 463 // version 2.1 of the License, or (at your option) any later version. 464 // 465 // The GNU C Library is distributed in the hope that it will be useful, 466 // but WITHOUT ANY WARRANTY; without even the implied warranty of 467 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 468 // Lesser General Public License for more details. 469 // 470 // You should have received a copy of the GNU Lesser General Public 471 // License along with the GNU C Library; if not, see 472 // <https://www.gnu.org/licenses/>. 473 474 // Never include this file directly; use <sys/types.h> instead. 475 476 // Returned by `time'. 477 type Time_t = X__time_t /* time_t.h:10:18 */ 478 479 // bits/types.h -- definitions of __*_t types underlying *_t types. 480 // Copyright (C) 2002-2021 Free Software Foundation, Inc. 481 // This file is part of the GNU C Library. 482 // 483 // The GNU C Library is free software; you can redistribute it and/or 484 // modify it under the terms of the GNU Lesser General Public 485 // License as published by the Free Software Foundation; either 486 // version 2.1 of the License, or (at your option) any later version. 487 // 488 // The GNU C Library is distributed in the hope that it will be useful, 489 // but WITHOUT ANY WARRANTY; without even the implied warranty of 490 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 491 // Lesser General Public License for more details. 492 // 493 // You should have received a copy of the GNU Lesser General Public 494 // License along with the GNU C Library; if not, see 495 // <https://www.gnu.org/licenses/>. 496 497 // Never include this file directly; use <sys/types.h> instead. 498 499 // ISO C `broken-down time' structure. 500 type Tm = struct { 501 Ftm_sec int32 502 Ftm_min int32 503 Ftm_hour int32 504 Ftm_mday int32 505 Ftm_mon int32 506 Ftm_year int32 507 Ftm_wday int32 508 Ftm_yday int32 509 Ftm_isdst int32 510 F__ccgo_pad1 [4]byte 511 Ftm_gmtoff int64 512 Ftm_zone uintptr 513 } /* struct_tm.h:7:1 */ 514 515 // NB: Include guard matches what <linux/time.h> uses. 516 517 // bits/types.h -- definitions of __*_t types underlying *_t types. 518 // Copyright (C) 2002-2021 Free Software Foundation, Inc. 519 // This file is part of the GNU C Library. 520 // 521 // The GNU C Library is free software; you can redistribute it and/or 522 // modify it under the terms of the GNU Lesser General Public 523 // License as published by the Free Software Foundation; either 524 // version 2.1 of the License, or (at your option) any later version. 525 // 526 // The GNU C Library is distributed in the hope that it will be useful, 527 // but WITHOUT ANY WARRANTY; without even the implied warranty of 528 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 529 // Lesser General Public License for more details. 530 // 531 // You should have received a copy of the GNU Lesser General Public 532 // License along with the GNU C Library; if not, see 533 // <https://www.gnu.org/licenses/>. 534 535 // Never include this file directly; use <sys/types.h> instead. 536 537 // Endian macros for string.h functions 538 // Copyright (C) 1992-2021 Free Software Foundation, Inc. 539 // This file is part of the GNU C Library. 540 // 541 // The GNU C Library is free software; you can redistribute it and/or 542 // modify it under the terms of the GNU Lesser General Public 543 // License as published by the Free Software Foundation; either 544 // version 2.1 of the License, or (at your option) any later version. 545 // 546 // The GNU C Library is distributed in the hope that it will be useful, 547 // but WITHOUT ANY WARRANTY; without even the implied warranty of 548 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 549 // Lesser General Public License for more details. 550 // 551 // You should have received a copy of the GNU Lesser General Public 552 // License along with the GNU C Library; if not, see 553 // <http://www.gnu.org/licenses/>. 554 555 // Definitions for byte order, according to significance of bytes, 556 // from low addresses to high addresses. The value is what you get by 557 // putting '4' in the most significant byte, '3' in the second most 558 // significant byte, '2' in the second least significant byte, and '1' 559 // in the least significant byte, and then writing down one digit for 560 // each byte, starting with the byte at the lowest address at the left, 561 // and proceeding to the byte with the highest address at the right. 562 563 // This file defines `__BYTE_ORDER' for the particular machine. 564 565 // RISC-V is little-endian. 566 567 // Some machines may need to use a different endianness for floating point 568 // values. 569 570 // POSIX.1b structure for a time value. This is like a `struct timeval' but 571 // 572 // has nanoseconds instead of microseconds. 573 type Timespec = struct { 574 Ftv_sec X__time_t 575 Ftv_nsec X__syscall_slong_t 576 } /* struct_timespec.h:11:1 */ 577 578 // bits/types.h -- definitions of __*_t types underlying *_t types. 579 // Copyright (C) 2002-2021 Free Software Foundation, Inc. 580 // This file is part of the GNU C Library. 581 // 582 // The GNU C Library is free software; you can redistribute it and/or 583 // modify it under the terms of the GNU Lesser General Public 584 // License as published by the Free Software Foundation; either 585 // version 2.1 of the License, or (at your option) any later version. 586 // 587 // The GNU C Library is distributed in the hope that it will be useful, 588 // but WITHOUT ANY WARRANTY; without even the implied warranty of 589 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 590 // Lesser General Public License for more details. 591 // 592 // You should have received a copy of the GNU Lesser General Public 593 // License along with the GNU C Library; if not, see 594 // <https://www.gnu.org/licenses/>. 595 596 // Never include this file directly; use <sys/types.h> instead. 597 598 // Clock ID used in clock and timer functions. 599 type Clockid_t = X__clockid_t /* clockid_t.h:7:21 */ 600 601 // bits/types.h -- definitions of __*_t types underlying *_t types. 602 // Copyright (C) 2002-2021 Free Software Foundation, Inc. 603 // This file is part of the GNU C Library. 604 // 605 // The GNU C Library is free software; you can redistribute it and/or 606 // modify it under the terms of the GNU Lesser General Public 607 // License as published by the Free Software Foundation; either 608 // version 2.1 of the License, or (at your option) any later version. 609 // 610 // The GNU C Library is distributed in the hope that it will be useful, 611 // but WITHOUT ANY WARRANTY; without even the implied warranty of 612 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 613 // Lesser General Public License for more details. 614 // 615 // You should have received a copy of the GNU Lesser General Public 616 // License along with the GNU C Library; if not, see 617 // <https://www.gnu.org/licenses/>. 618 619 // Never include this file directly; use <sys/types.h> instead. 620 621 // Timer ID returned by `timer_create'. 622 type Timer_t = X__timer_t /* timer_t.h:7:19 */ 623 624 // bits/types.h -- definitions of __*_t types underlying *_t types. 625 // Copyright (C) 2002-2021 Free Software Foundation, Inc. 626 // This file is part of the GNU C Library. 627 // 628 // The GNU C Library is free software; you can redistribute it and/or 629 // modify it under the terms of the GNU Lesser General Public 630 // License as published by the Free Software Foundation; either 631 // version 2.1 of the License, or (at your option) any later version. 632 // 633 // The GNU C Library is distributed in the hope that it will be useful, 634 // but WITHOUT ANY WARRANTY; without even the implied warranty of 635 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 636 // Lesser General Public License for more details. 637 // 638 // You should have received a copy of the GNU Lesser General Public 639 // License along with the GNU C Library; if not, see 640 // <https://www.gnu.org/licenses/>. 641 642 // Never include this file directly; use <sys/types.h> instead. 643 644 // NB: Include guard matches what <linux/time.h> uses. 645 646 // POSIX.1b structure for timer start values and intervals. 647 type Itimerspec = struct { 648 Fit_interval struct { 649 Ftv_sec X__time_t 650 Ftv_nsec X__syscall_slong_t 651 } 652 Fit_value struct { 653 Ftv_sec X__time_t 654 Ftv_nsec X__syscall_slong_t 655 } 656 } /* struct_itimerspec.h:8:1 */ 657 658 type Pid_t = X__pid_t /* time.h:54:17 */ 659 660 // Definition of locale_t. 661 // Copyright (C) 2017-2021 Free Software Foundation, Inc. 662 // This file is part of the GNU C Library. 663 // 664 // The GNU C Library is free software; you can redistribute it and/or 665 // modify it under the terms of the GNU Lesser General Public 666 // License as published by the Free Software Foundation; either 667 // version 2.1 of the License, or (at your option) any later version. 668 // 669 // The GNU C Library is distributed in the hope that it will be useful, 670 // but WITHOUT ANY WARRANTY; without even the implied warranty of 671 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 672 // Lesser General Public License for more details. 673 // 674 // You should have received a copy of the GNU Lesser General Public 675 // License along with the GNU C Library; if not, see 676 // <https://www.gnu.org/licenses/>. 677 678 // Definition of struct __locale_struct and __locale_t. 679 // Copyright (C) 1997-2021 Free Software Foundation, Inc. 680 // This file is part of the GNU C Library. 681 // Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997. 682 // 683 // The GNU C Library is free software; you can redistribute it and/or 684 // modify it under the terms of the GNU Lesser General Public 685 // License as published by the Free Software Foundation; either 686 // version 2.1 of the License, or (at your option) any later version. 687 // 688 // The GNU C Library is distributed in the hope that it will be useful, 689 // but WITHOUT ANY WARRANTY; without even the implied warranty of 690 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 691 // Lesser General Public License for more details. 692 // 693 // You should have received a copy of the GNU Lesser General Public 694 // License along with the GNU C Library; if not, see 695 // <https://www.gnu.org/licenses/>. 696 697 // POSIX.1-2008: the locale_t type, representing a locale context 698 // (implementation-namespace version). This type should be treated 699 // as opaque by applications; some details are exposed for the sake of 700 // efficiency in e.g. ctype functions. 701 702 type X__locale_struct = struct { 703 F__locales [13]uintptr 704 F__ctype_b uintptr 705 F__ctype_tolower uintptr 706 F__ctype_toupper uintptr 707 F__names [13]uintptr 708 } /* __locale_t.h:28:1 */ 709 710 type X__locale_t = uintptr /* __locale_t.h:42:32 */ 711 712 type Locale_t = X__locale_t /* locale_t.h:24:20 */ 713 714 var _ uint8 /* gen.c:2:13: */