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