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