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