github.com/afumu/libc@v0.0.6/time/time_linux_ppc64le.go (about)

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