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