github.com/afumu/libc@v0.0.6/stdio/stdio_linux_loong64.go (about)

     1  // Code generated by 'ccgo stdio/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 stdio/stdio_linux_loong64.go -pkgname stdio', DO NOT EDIT.
     2  
     3  package stdio
     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  	BUFSIZ                = 8192
    19  	EOF                   = -1
    20  	FILENAME_MAX          = 4096
    21  	FOPEN_MAX             = 16
    22  	L_ctermid             = 9
    23  	L_tmpnam              = 20
    24  	P_tmpdir              = "/tmp"
    25  	SEEK_CUR              = 1
    26  	SEEK_END              = 2
    27  	SEEK_SET              = 0
    28  	TMP_MAX               = 238328
    29  	X_ATFILE_SOURCE       = 1
    30  	X_BITS_STDIO_LIM_H    = 1
    31  	X_BITS_TIME64_H       = 1
    32  	X_BITS_TYPESIZES_H    = 1
    33  	X_BITS_TYPES_H        = 1
    34  	X_BSD_SIZE_T_         = 0
    35  	X_BSD_SIZE_T_DEFINED_ = 0
    36  	X_DEFAULT_SOURCE      = 1
    37  	X_FEATURES_H          = 1
    38  	X_FILE_OFFSET_BITS    = 64
    39  	X_GCC_SIZE_T          = 0
    40  	X_IOFBF               = 0
    41  	X_IOLBF               = 1
    42  	X_IONBF               = 2
    43  	X_IO_EOF_SEEN         = 0x0010
    44  	X_IO_ERR_SEEN         = 0x0020
    45  	X_IO_USER_LOCK        = 0x8000
    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_STDIO_H             = 1
    57  	X_SYS_CDEFS_H         = 1
    58  	X_SYS_SIZE_T_H        = 0
    59  	X_T_SIZE              = 0
    60  	X_T_SIZE_             = 0
    61  	X_VA_LIST_DEFINED     = 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  // Copyright (C) 1989-2020 Free Software Foundation, Inc.
    95  //
    96  // This file is part of GCC.
    97  //
    98  // GCC is free software; you can redistribute it and/or modify
    99  // it under the terms of the GNU General Public License as published by
   100  // the Free Software Foundation; either version 3, or (at your option)
   101  // any later version.
   102  //
   103  // GCC is distributed in the hope that it will be useful,
   104  // but WITHOUT ANY WARRANTY; without even the implied warranty of
   105  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   106  // GNU General Public License for more details.
   107  //
   108  // Under Section 7 of GPL version 3, you are granted additional
   109  // permissions described in the GCC Runtime Library Exception, version
   110  // 3.1, as published by the Free Software Foundation.
   111  //
   112  // You should have received a copy of the GNU General Public License and
   113  // a copy of the GCC Runtime Library Exception along with this program;
   114  // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
   115  // <http://www.gnu.org/licenses/>.
   116  
   117  // ISO C Standard:  7.15  Variable arguments  <stdarg.h>
   118  
   119  // Define __gnuc_va_list.
   120  
   121  type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */
   122  
   123  // Define the standard macros for the user,
   124  //    if this invocation was from the user program.
   125  
   126  // bits/types.h -- definitions of __*_t types underlying *_t types.
   127  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   128  //    This file is part of the GNU C Library.
   129  //
   130  //    The GNU C Library is free software; you can redistribute it and/or
   131  //    modify it under the terms of the GNU Lesser General Public
   132  //    License as published by the Free Software Foundation; either
   133  //    version 2.1 of the License, or (at your option) any later version.
   134  //
   135  //    The GNU C Library is distributed in the hope that it will be useful,
   136  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   137  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   138  //    Lesser General Public License for more details.
   139  //
   140  //    You should have received a copy of the GNU Lesser General Public
   141  //    License along with the GNU C Library; if not, see
   142  //    <https://www.gnu.org/licenses/>.
   143  
   144  // Never include this file directly; use <sys/types.h> instead.
   145  
   146  // Copyright (C) 1991-2020 Free Software Foundation, Inc.
   147  //    This file is part of the GNU C Library.
   148  //
   149  //    The GNU C Library is free software; you can redistribute it and/or
   150  //    modify it under the terms of the GNU Lesser General Public
   151  //    License as published by the Free Software Foundation; either
   152  //    version 2.1 of the License, or (at your option) any later version.
   153  //
   154  //    The GNU C Library is distributed in the hope that it will be useful,
   155  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   156  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   157  //    Lesser General Public License for more details.
   158  //
   159  //    You should have received a copy of the GNU Lesser General Public
   160  //    License along with the GNU C Library; if not, see
   161  //    <https://www.gnu.org/licenses/>.
   162  
   163  // Determine the wordsize from the preprocessor defines.
   164  //
   165  //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   166  //    This file is part of the GNU C Library.
   167  //
   168  //    The GNU C Library is free software; you can redistribute it and/or
   169  //    modify it under the terms of the GNU Lesser General Public
   170  //    License as published by the Free Software Foundation; either
   171  //    version 2.1 of the License, or (at your option) any later version.
   172  //
   173  //    The GNU C Library is distributed in the hope that it will be useful,
   174  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   175  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   176  //    Lesser General Public License for more details.
   177  //
   178  //    You should have received a copy of the GNU Lesser General Public
   179  //    License along with the GNU C Library; if not, see
   180  //    <https://www.gnu.org/licenses/>.
   181  
   182  // Bit size of the time_t type at glibc build time, general case.
   183  //    Copyright (C) 2018-2020 Free Software Foundation, Inc.
   184  //    This file is part of the GNU C Library.
   185  //
   186  //    The GNU C Library is free software; you can redistribute it and/or
   187  //    modify it under the terms of the GNU Lesser General Public
   188  //    License as published by the Free Software Foundation; either
   189  //    version 2.1 of the License, or (at your option) any later version.
   190  //
   191  //    The GNU C Library is distributed in the hope that it will be useful,
   192  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   193  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   194  //    Lesser General Public License for more details.
   195  //
   196  //    You should have received a copy of the GNU Lesser General Public
   197  //    License along with the GNU C Library; if not, see
   198  //    <https://www.gnu.org/licenses/>.
   199  
   200  // Determine the wordsize from the preprocessor defines.
   201  //
   202  //    Copyright (C) 2016-2020 Free Software Foundation, Inc.
   203  //    This file is part of the GNU C Library.
   204  //
   205  //    The GNU C Library is free software; you can redistribute it and/or
   206  //    modify it under the terms of the GNU Lesser General Public
   207  //    License as published by the Free Software Foundation; either
   208  //    version 2.1 of the License, or (at your option) any later version.
   209  //
   210  //    The GNU C Library is distributed in the hope that it will be useful,
   211  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   212  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   213  //    Lesser General Public License for more details.
   214  //
   215  //    You should have received a copy of the GNU Lesser General Public
   216  //    License along with the GNU C Library; if not, see
   217  //    <https://www.gnu.org/licenses/>.
   218  
   219  // Size in bits of the 'time_t' type of the default ABI.
   220  
   221  // Convenience types.
   222  type X__u_char = uint8   /* types.h:31:23 */
   223  type X__u_short = uint16 /* types.h:32:28 */
   224  type X__u_int = uint32   /* types.h:33:22 */
   225  type X__u_long = uint64  /* types.h:34:27 */
   226  
   227  // Fixed-size types, underlying types depend on word size and compiler.
   228  type X__int8_t = int8     /* types.h:37:21 */
   229  type X__uint8_t = uint8   /* types.h:38:23 */
   230  type X__int16_t = int16   /* types.h:39:26 */
   231  type X__uint16_t = uint16 /* types.h:40:28 */
   232  type X__int32_t = int32   /* types.h:41:20 */
   233  type X__uint32_t = uint32 /* types.h:42:22 */
   234  type X__int64_t = int64   /* types.h:44:25 */
   235  type X__uint64_t = uint64 /* types.h:45:27 */
   236  
   237  // Smallest types with at least a given width.
   238  type X__int_least8_t = X__int8_t     /* types.h:52:18 */
   239  type X__uint_least8_t = X__uint8_t   /* types.h:53:19 */
   240  type X__int_least16_t = X__int16_t   /* types.h:54:19 */
   241  type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
   242  type X__int_least32_t = X__int32_t   /* types.h:56:19 */
   243  type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
   244  type X__int_least64_t = X__int64_t   /* types.h:58:19 */
   245  type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
   246  
   247  // quad_t is also 64 bits.
   248  type X__quad_t = int64    /* types.h:63:18 */
   249  type X__u_quad_t = uint64 /* types.h:64:27 */
   250  
   251  // Largest integral types.
   252  type X__intmax_t = int64   /* types.h:72:18 */
   253  type X__uintmax_t = uint64 /* types.h:73:27 */
   254  
   255  // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
   256  //    macros for each of the OS types we define below.  The definitions
   257  //    of those macros must use the following macros for underlying types.
   258  //    We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
   259  //    variants of each of the following integer types on this machine.
   260  //
   261  // 	16		-- "natural" 16-bit type (always short)
   262  // 	32		-- "natural" 32-bit type (always int)
   263  // 	64		-- "natural" 64-bit type (long or long long)
   264  // 	LONG32		-- 32-bit type, traditionally long
   265  // 	QUAD		-- 64-bit type, traditionally long long
   266  // 	WORD		-- natural type of __WORDSIZE bits (int or long)
   267  // 	LONGWORD	-- type of __WORDSIZE bits, traditionally long
   268  //
   269  //    We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
   270  //    conventional uses of `long' or `long long' type modifiers match the
   271  //    types we define, even when a less-adorned type would be the same size.
   272  //    This matters for (somewhat) portably writing printf/scanf formats for
   273  //    these types, where using the appropriate l or ll format modifiers can
   274  //    make the typedefs and the formats match up across all GNU platforms.  If
   275  //    we used `long' when it's 64 bits where `long long' is expected, then the
   276  //    compiler would warn about the formats not matching the argument types,
   277  //    and the programmer changing them to shut up the compiler would break the
   278  //    program's portability.
   279  //
   280  //    Here we assume what is presently the case in all the GCC configurations
   281  //    we support: long long is always 64 bits, long is always word/address size,
   282  //    and int is always 32 bits.
   283  
   284  // No need to mark the typedef with __extension__.
   285  // bits/typesizes.h -- underlying types for *_t.  For the generic Linux ABI.
   286  //    Copyright (C) 2011-2020 Free Software Foundation, Inc.
   287  //    This file is part of the GNU C Library.
   288  //    Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
   289  //
   290  //    The GNU C Library is free software; you can redistribute it and/or
   291  //    modify it under the terms of the GNU Lesser General Public
   292  //    License as published by the Free Software Foundation; either
   293  //    version 2.1 of the License, or (at your option) any later version.
   294  //
   295  //    The GNU C Library is distributed in the hope that it will be useful,
   296  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   297  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   298  //    Lesser General Public License for more details.
   299  //
   300  //    You should have received a copy of the GNU Lesser General Public
   301  //    License along with the GNU C Library.  If not, see
   302  //    <https://www.gnu.org/licenses/>.
   303  
   304  // See <bits/types.h> for the meaning of these macros.  This file exists so
   305  //    that <bits/types.h> need not vary across different GNU platforms.
   306  
   307  // Tell the libc code that off_t and off64_t are actually the same type
   308  //    for all ABI purposes, even if possibly expressed as different base types
   309  //    for C type-checking purposes.
   310  
   311  // Same for ino_t and ino64_t.
   312  
   313  // And for __rlim_t and __rlim64_t.
   314  
   315  // And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
   316  // Number of descriptors that can fit in an `fd_set'.
   317  
   318  // bits/time64.h -- underlying types for __time64_t.  Generic version.
   319  //    Copyright (C) 2018-2020 Free Software Foundation, Inc.
   320  //    This file is part of the GNU C Library.
   321  //
   322  //    The GNU C Library is free software; you can redistribute it and/or
   323  //    modify it under the terms of the GNU Lesser General Public
   324  //    License as published by the Free Software Foundation; either
   325  //    version 2.1 of the License, or (at your option) any later version.
   326  //
   327  //    The GNU C Library is distributed in the hope that it will be useful,
   328  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   329  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   330  //    Lesser General Public License for more details.
   331  //
   332  //    You should have received a copy of the GNU Lesser General Public
   333  //    License along with the GNU C Library; if not, see
   334  //    <https://www.gnu.org/licenses/>.
   335  
   336  // Define __TIME64_T_TYPE so that it is always a 64-bit type.
   337  
   338  // If we already have 64-bit time type then use it.
   339  
   340  type X__dev_t = uint64                     /* types.h:145:25 */ // Type of device numbers.
   341  type X__uid_t = uint32                     /* types.h:146:25 */ // Type of user identifications.
   342  type X__gid_t = uint32                     /* types.h:147:25 */ // Type of group identifications.
   343  type X__ino_t = uint64                     /* types.h:148:25 */ // Type of file serial numbers.
   344  type X__ino64_t = uint64                   /* types.h:149:27 */ // Type of file serial numbers (LFS).
   345  type X__mode_t = uint32                    /* types.h:150:26 */ // Type of file attribute bitmasks.
   346  type X__nlink_t = uint32                   /* types.h:151:27 */ // Type of file link counts.
   347  type X__off_t = int64                      /* types.h:152:25 */ // Type of file sizes and offsets.
   348  type X__off64_t = int64                    /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
   349  type X__pid_t = int32                      /* types.h:154:25 */ // Type of process identifications.
   350  type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
   351  type X__clock_t = int64                    /* types.h:156:27 */ // Type of CPU usage counts.
   352  type X__rlim_t = uint64                    /* types.h:157:26 */ // Type for resource measurement.
   353  type X__rlim64_t = uint64                  /* types.h:158:28 */ // Type for resource measurement (LFS).
   354  type X__id_t = uint32                      /* types.h:159:24 */ // General type for IDs.
   355  type X__time_t = int64                     /* types.h:160:26 */ // Seconds since the Epoch.
   356  type X__useconds_t = uint32                /* types.h:161:30 */ // Count of microseconds.
   357  type X__suseconds_t = int64                /* types.h:162:31 */ // Signed count of microseconds.
   358  
   359  type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
   360  type X__key_t = int32   /* types.h:165:25 */ // Type of an IPC key.
   361  
   362  // Clock ID used in clock and timer functions.
   363  type X__clockid_t = int32 /* types.h:168:29 */
   364  
   365  // Timer ID returned by `timer_create'.
   366  type X__timer_t = uintptr /* types.h:171:12 */
   367  
   368  // Type to represent block size.
   369  type X__blksize_t = int32 /* types.h:174:29 */
   370  
   371  // Types from the Large File Support interface.
   372  
   373  // Type to count number of disk blocks.
   374  type X__blkcnt_t = int64   /* types.h:179:28 */
   375  type X__blkcnt64_t = int64 /* types.h:180:30 */
   376  
   377  // Type to count file system blocks.
   378  type X__fsblkcnt_t = uint64   /* types.h:183:30 */
   379  type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
   380  
   381  // Type to count file system nodes.
   382  type X__fsfilcnt_t = uint64   /* types.h:187:30 */
   383  type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
   384  
   385  // Type of miscellaneous file system fields.
   386  type X__fsword_t = int64 /* types.h:191:28 */
   387  
   388  type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
   389  
   390  // Signed long type used in system calls.
   391  type X__syscall_slong_t = int64 /* types.h:196:33 */
   392  // Unsigned long type used in system calls.
   393  type X__syscall_ulong_t = uint64 /* types.h:198:33 */
   394  
   395  // These few don't really vary by system, they always correspond
   396  //
   397  //	to one of the other defined types.
   398  type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
   399  type X__caddr_t = uintptr   /* types.h:203:14 */
   400  
   401  // Duplicates info from stdint.h but this is used in unistd.h.
   402  type X__intptr_t = int64 /* types.h:206:25 */
   403  
   404  // Duplicate info from sys/socket.h.
   405  type X__socklen_t = uint32 /* types.h:209:23 */
   406  
   407  // C99: An integer type that can be accessed as an atomic entity,
   408  //
   409  //	even in the presence of asynchronous interrupts.
   410  //	It is not currently necessary for this to be machine-specific.
   411  type X__sig_atomic_t = int32 /* types.h:214:13 */
   412  
   413  // Seconds since the Epoch, visible to user code when time_t is too
   414  //    narrow only for consistency with the old way of widening too-narrow
   415  //    types.  User code should never use __time64_t.
   416  
   417  // bits/types.h -- definitions of __*_t types underlying *_t types.
   418  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   419  //    This file is part of the GNU C Library.
   420  //
   421  //    The GNU C Library is free software; you can redistribute it and/or
   422  //    modify it under the terms of the GNU Lesser General Public
   423  //    License as published by the Free Software Foundation; either
   424  //    version 2.1 of the License, or (at your option) any later version.
   425  //
   426  //    The GNU C Library is distributed in the hope that it will be useful,
   427  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   428  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   429  //    Lesser General Public License for more details.
   430  //
   431  //    You should have received a copy of the GNU Lesser General Public
   432  //    License along with the GNU C Library; if not, see
   433  //    <https://www.gnu.org/licenses/>.
   434  
   435  // Never include this file directly; use <sys/types.h> instead.
   436  
   437  // Integral type unchanged by default argument promotions that can
   438  //    hold any value corresponding to members of the extended character
   439  //    set, as well as at least one value that does not correspond to any
   440  //    member of the extended character set.
   441  
   442  // Conversion state information.
   443  type X__mbstate_t = struct {
   444  	F__count int32
   445  	F__value struct{ F__wch uint32 }
   446  } /* __mbstate_t.h:21:3 */
   447  
   448  // The tag name of this struct is _G_fpos_t to preserve historic
   449  //
   450  //	C++ mangled names for functions taking fpos_t arguments.
   451  //	That name should not be used in new code.
   452  type X_G_fpos_t = struct {
   453  	F__pos   X__off_t
   454  	F__state X__mbstate_t
   455  } /* __fpos_t.h:10:9 */
   456  
   457  // The tag name of this struct is _G_fpos_t to preserve historic
   458  //
   459  //	C++ mangled names for functions taking fpos_t arguments.
   460  //	That name should not be used in new code.
   461  type X__fpos_t = X_G_fpos_t /* __fpos_t.h:14:3 */
   462  
   463  // bits/types.h -- definitions of __*_t types underlying *_t types.
   464  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   465  //    This file is part of the GNU C Library.
   466  //
   467  //    The GNU C Library is free software; you can redistribute it and/or
   468  //    modify it under the terms of the GNU Lesser General Public
   469  //    License as published by the Free Software Foundation; either
   470  //    version 2.1 of the License, or (at your option) any later version.
   471  //
   472  //    The GNU C Library is distributed in the hope that it will be useful,
   473  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   474  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   475  //    Lesser General Public License for more details.
   476  //
   477  //    You should have received a copy of the GNU Lesser General Public
   478  //    License along with the GNU C Library; if not, see
   479  //    <https://www.gnu.org/licenses/>.
   480  
   481  // Never include this file directly; use <sys/types.h> instead.
   482  
   483  // The tag name of this struct is _G_fpos64_t to preserve historic
   484  //
   485  //	C++ mangled names for functions taking fpos_t and/or fpos64_t
   486  //	arguments.  That name should not be used in new code.
   487  type X_G_fpos64_t = struct {
   488  	F__pos   X__off64_t
   489  	F__state X__mbstate_t
   490  } /* __fpos64_t.h:10:9 */
   491  
   492  // bits/types.h -- definitions of __*_t types underlying *_t types.
   493  //    Copyright (C) 2002-2020 Free Software Foundation, Inc.
   494  //    This file is part of the GNU C Library.
   495  //
   496  //    The GNU C Library is free software; you can redistribute it and/or
   497  //    modify it under the terms of the GNU Lesser General Public
   498  //    License as published by the Free Software Foundation; either
   499  //    version 2.1 of the License, or (at your option) any later version.
   500  //
   501  //    The GNU C Library is distributed in the hope that it will be useful,
   502  //    but WITHOUT ANY WARRANTY; without even the implied warranty of
   503  //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   504  //    Lesser General Public License for more details.
   505  //
   506  //    You should have received a copy of the GNU Lesser General Public
   507  //    License along with the GNU C Library; if not, see
   508  //    <https://www.gnu.org/licenses/>.
   509  
   510  // Never include this file directly; use <sys/types.h> instead.
   511  
   512  // The tag name of this struct is _G_fpos64_t to preserve historic
   513  //
   514  //	C++ mangled names for functions taking fpos_t and/or fpos64_t
   515  //	arguments.  That name should not be used in new code.
   516  type X__fpos64_t = X_G_fpos64_t /* __fpos64_t.h:14:3 */
   517  
   518  type X_IO_FILE = struct {
   519  	F_flags          int32
   520  	F__ccgo_pad1     [4]byte
   521  	F_IO_read_ptr    uintptr
   522  	F_IO_read_end    uintptr
   523  	F_IO_read_base   uintptr
   524  	F_IO_write_base  uintptr
   525  	F_IO_write_ptr   uintptr
   526  	F_IO_write_end   uintptr
   527  	F_IO_buf_base    uintptr
   528  	F_IO_buf_end     uintptr
   529  	F_IO_save_base   uintptr
   530  	F_IO_backup_base uintptr
   531  	F_IO_save_end    uintptr
   532  	F_markers        uintptr
   533  	F_chain          uintptr
   534  	F_fileno         int32
   535  	F_flags2         int32
   536  	F_old_offset     X__off_t
   537  	F_cur_column     uint16
   538  	F_vtable_offset  int8
   539  	F_shortbuf       [1]uint8
   540  	F__ccgo_pad2     [4]byte
   541  	F_lock           uintptr
   542  	F_offset         X__off64_t
   543  	F_codecvt        uintptr
   544  	F_wide_data      uintptr
   545  	F_freeres_list   uintptr
   546  	F_freeres_buf    uintptr
   547  	F__pad5          Size_t
   548  	F_mode           int32
   549  	F_unused2        [20]uint8
   550  } /* __FILE.h:4:1 */
   551  
   552  type X__FILE = X_IO_FILE /* __FILE.h:5:25 */
   553  
   554  // The opaque type of streams.  This is the definition used elsewhere.
   555  type FILE = X_IO_FILE /* FILE.h:7:25 */
   556  
   557  // These macros are used by bits/stdio.h and internal headers.
   558  
   559  // Many more flag bits are defined internally.
   560  
   561  type Va_list = X__gnuc_va_list /* stdio.h:52:24 */
   562  
   563  type Off_t = X__off64_t /* stdio.h:65:19 */
   564  
   565  type Ssize_t = X__ssize_t /* stdio.h:77:19 */
   566  
   567  // The type of the second argument to `fgetpos' and `fsetpos'.
   568  type Fpos_t = X__fpos64_t /* stdio.h:86:20 */
   569  
   570  // If we are compiling with optimizing read this file.  It contains
   571  //    several optimizing inline functions and macros.
   572  
   573  var _ uint8 /* gen.c:2:13: */