gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

time_linux_s390x.go (29170B)


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