modernc.org/libc@v1.24.1/stdio/stdio_windows_arm64.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_windows_arm64.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                                                 = 512
    19  	DUMMYSTRUCTNAME                                        = 0
    20  	DUMMYSTRUCTNAME1                                       = 0
    21  	DUMMYSTRUCTNAME2                                       = 0
    22  	DUMMYSTRUCTNAME3                                       = 0
    23  	DUMMYSTRUCTNAME4                                       = 0
    24  	DUMMYSTRUCTNAME5                                       = 0
    25  	DUMMYUNIONNAME                                         = 0
    26  	DUMMYUNIONNAME1                                        = 0
    27  	DUMMYUNIONNAME2                                        = 0
    28  	DUMMYUNIONNAME3                                        = 0
    29  	DUMMYUNIONNAME4                                        = 0
    30  	DUMMYUNIONNAME5                                        = 0
    31  	DUMMYUNIONNAME6                                        = 0
    32  	DUMMYUNIONNAME7                                        = 0
    33  	DUMMYUNIONNAME8                                        = 0
    34  	DUMMYUNIONNAME9                                        = 0
    35  	EOF                                                    = -1
    36  	FILENAME_MAX                                           = 260
    37  	FOPEN_MAX                                              = 20
    38  	MINGW_DDK_H                                            = 0
    39  	MINGW_HAS_DDK_H                                        = 1
    40  	MINGW_HAS_SECURE_API                                   = 1
    41  	MINGW_SDK_INIT                                         = 0
    42  	SEEK_CUR                                               = 1
    43  	SEEK_END                                               = 2
    44  	SEEK_SET                                               = 0
    45  	STDERR_FILENO                                          = 2
    46  	STDIN_FILENO                                           = 0
    47  	STDOUT_FILENO                                          = 1
    48  	SYS_OPEN                                               = 20
    49  	TMP_MAX                                                = 32767
    50  	TMP_MAX_S                                              = 32767
    51  	UNALIGNED                                              = 0
    52  	USE___UUIDOF                                           = 0
    53  	WIN32                                                  = 1
    54  	WIN64                                                  = 1
    55  	WINNT                                                  = 1
    56  	X_AGLOBAL                                              = 0
    57  	X_ANONYMOUS_STRUCT                                     = 0
    58  	X_ANONYMOUS_UNION                                      = 0
    59  	X_ARGMAX                                               = 100
    60  	X_ARM64_                                               = 1
    61  	X_CONST_RETURN                                         = 0
    62  	X_CRTNOALIAS                                           = 0
    63  	X_CRTRESTRICT                                          = 0
    64  	X_CRT_ALTERNATIVE_IMPORTED                             = 0
    65  	X_CRT_DIRECTORY_DEFINED                                = 0
    66  	X_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS                    = 4
    67  	X_CRT_INTERNAL_LOCAL_SCANF_OPTIONS                     = 2
    68  	X_CRT_INTERNAL_PRINTF_LEGACY_MSVCRT_COMPATIBILITY      = 0x0008
    69  	X_CRT_INTERNAL_PRINTF_LEGACY_THREE_DIGIT_EXPONENTS     = 0x0010
    70  	X_CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION = 0x0001
    71  	X_CRT_INTERNAL_PRINTF_LEGACY_WIDE_SPECIFIERS           = 0x0004
    72  	X_CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR       = 0x0002
    73  	X_CRT_INTERNAL_SCANF_LEGACY_MSVCRT_COMPATIBILITY       = 0x0004
    74  	X_CRT_INTERNAL_SCANF_LEGACY_WIDE_SPECIFIERS            = 0x0002
    75  	X_CRT_INTERNAL_SCANF_SECURECRT                         = 0x0001
    76  	X_CRT_MANAGED_HEAP_DEPRECATE                           = 0
    77  	X_CRT_PACKING                                          = 8
    78  	X_CRT_PERROR_DEFINED                                   = 0
    79  	X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES                 = 0
    80  	X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY          = 0
    81  	X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES               = 0
    82  	X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT         = 0
    83  	X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY        = 0
    84  	X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP                    = 0
    85  	X_CRT_WPERROR_DEFINED                                  = 0
    86  	X_DLL                                                  = 0
    87  	X_ERRCODE_DEFINED                                      = 0
    88  	X_FILE_DEFINED                                         = 0
    89  	X_FILE_OFFSET_BITS                                     = 64
    90  	X_FILE_OFFSET_BITS_SET_FSEEKO                          = 0
    91  	X_FILE_OFFSET_BITS_SET_FTELLO                          = 0
    92  	X_FILE_OFFSET_BITS_SET_OFFT                            = 0
    93  	X_FPOS_T_DEFINED                                       = 0
    94  	X_INC_CORECRT                                          = 0
    95  	X_INC_CRTDEFS_MACRO                                    = 0
    96  	X_INC_MINGW_SECAPI                                     = 0
    97  	X_INC_STDIO                                            = 0
    98  	X_INC_STDIO_S                                          = 0
    99  	X_INC_SWPRINTF_INL                                     = 0
   100  	X_INC_VADEFS                                           = 0
   101  	X_INC__MINGW_H                                         = 0
   102  	X_INT128_DEFINED                                       = 0
   103  	X_INTPTR_T_DEFINED                                     = 0
   104  	X_IOB_ENTRIES                                          = 20
   105  	X_IOFBF                                                = 0x0000
   106  	X_IOLBF                                                = 0x0040
   107  	X_IONBF                                                = 0x0004
   108  	X_MT                                                   = 0
   109  	X_M_ARM64                                              = 1
   110  	X_NFILE                                                = 512
   111  	X_NSTREAM_                                             = 512
   112  	X_OFF64_T_DEFINED                                      = 0
   113  	X_OFF_T_                                               = 0
   114  	X_OFF_T_DEFINED                                        = 0
   115  	X_OLD_P_OVERLAY                                        = 2
   116  	X_PGLOBAL                                              = 0
   117  	X_PTRDIFF_T_                                           = 0
   118  	X_PTRDIFF_T_DEFINED                                    = 0
   119  	X_P_DETACH                                             = 4
   120  	X_P_NOWAIT                                             = 1
   121  	X_P_NOWAITO                                            = 3
   122  	X_P_OVERLAY                                            = 2
   123  	X_P_WAIT                                               = 0
   124  	X_P_tmpdir                                             = "\\"
   125  	X_RSIZE_T_DEFINED                                      = 0
   126  	X_SECURECRT_FILL_BUFFER_PATTERN                        = 0xFD
   127  	X_SIZE_T_DEFINED                                       = 0
   128  	X_SPAWNV_DEFINED                                       = 0
   129  	X_SSIZE_T_DEFINED                                      = 0
   130  	X_STDIO_CONFIG_DEFINED                                 = 0
   131  	X_STDIO_DEFINED                                        = 0
   132  	X_STDIO_S_DEFINED                                      = 0
   133  	X_STDSTREAM_DEFINED                                    = 0
   134  	X_SYS_OPEN                                             = 20
   135  	X_TAGLC_ID_DEFINED                                     = 0
   136  	X_THREADLOCALEINFO                                     = 0
   137  	X_TIME32_T_DEFINED                                     = 0
   138  	X_TIME64_T_DEFINED                                     = 0
   139  	X_TIME_T_DEFINED                                       = 0
   140  	X_TWO_DIGIT_EXPONENT                                   = 0x1
   141  	X_UCRT                                                 = 0
   142  	X_UINTPTR_T_DEFINED                                    = 0
   143  	X_VA_LIST_DEFINED                                      = 0
   144  	X_W64                                                  = 0
   145  	X_WAIT_CHILD                                           = 0
   146  	X_WAIT_GRANDCHILD                                      = 1
   147  	X_WCHAR_T_DEFINED                                      = 0
   148  	X_WCTYPE_T_DEFINED                                     = 0
   149  	X_WIN32                                                = 1
   150  	X_WIN32_WINNT                                          = 0x601
   151  	X_WIN64                                                = 1
   152  	X_WINT_T                                               = 0
   153  	X_WSPAWN_DEFINED                                       = 0
   154  	X_WSTDIO_DEFINED                                       = 0
   155  	X_WSTDIO_S_DEFINED                                     = 0
   156  )
   157  
   158  type Ptrdiff_t = int64 /* <builtin>:3:26 */
   159  
   160  type Size_t = uint64 /* <builtin>:9:23 */
   161  
   162  type Wchar_t = uint16 /* <builtin>:15:24 */
   163  
   164  type X__int128_t = struct {
   165  	Flo int64
   166  	Fhi int64
   167  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
   168  type X__uint128_t = struct {
   169  	Flo uint64
   170  	Fhi uint64
   171  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
   172  
   173  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
   174  type X__float128 = float64        /* <builtin>:47:21 */
   175  
   176  type Va_list = X__builtin_va_list /* <builtin>:50:27 */
   177  
   178  // *
   179  // This file has no copyright assigned and is placed in the Public Domain.
   180  // This file is part of the mingw-w64 runtime package.
   181  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   182  
   183  // *
   184  // This file has no copyright assigned and is placed in the Public Domain.
   185  // This file is part of the Wine project.
   186  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   187  
   188  // *
   189  // This file has no copyright assigned and is placed in the Public Domain.
   190  // This file is part of the mingw-w64 runtime package.
   191  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   192  
   193  // *
   194  // This file has no copyright assigned and is placed in the Public Domain.
   195  // This file is part of the mingw-w64 runtime package.
   196  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   197  
   198  // *
   199  // This file has no copyright assigned and is placed in the Public Domain.
   200  // This file is part of the mingw-w64 runtime package.
   201  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   202  
   203  // This macro holds an monotonic increasing value, which indicates
   204  //    a specific fix/patch is present on trunk.  This value isn't related to
   205  //    minor/major version-macros.  It is increased on demand, if a big
   206  //    fix was applied to trunk.  This macro gets just increased on trunk.  For
   207  //    other branches its value won't be modified.
   208  
   209  // mingw.org's version macros: these make gcc to define
   210  //    MINGW32_SUPPORTS_MT_EH and to use the _CRT_MT global
   211  //    and the __mingwthr_key_dtor() function from the MinGW
   212  //    CRT in its private gthr-win32.h header.
   213  
   214  // Set VC specific compiler target macros.
   215  
   216  // MS does not prefix symbols by underscores for 64-bit.
   217  // As we have to support older gcc version, which are using underscores
   218  //       as symbol prefix for x64, we have to check here for the user label
   219  //       prefix defined by gcc.
   220  
   221  // Special case nameless struct/union.
   222  
   223  // MinGW-w64 has some additional C99 printf/scanf feature support.
   224  //    So we add some helper macros to ease recognition of them.
   225  
   226  // If _FORTIFY_SOURCE is enabled, some inline functions may use
   227  //    __builtin_va_arg_pack().  GCC may report an error if the address
   228  //    of such a function is used.  Set _FORTIFY_VA_ARG=0 in this case.
   229  
   230  // Enable workaround for ABI incompatibility on affected platforms
   231  
   232  // *
   233  // This file has no copyright assigned and is placed in the Public Domain.
   234  // This file is part of the mingw-w64 runtime package.
   235  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   236  
   237  // http://msdn.microsoft.com/en-us/library/ms175759%28v=VS.100%29.aspx
   238  // Templates won't work in C, will break if secure API is not enabled, disabled
   239  
   240  // https://blogs.msdn.com/b/sdl/archive/2010/02/16/vc-2010-and-memcpy.aspx?Redirected=true
   241  // fallback on default implementation if we can't know the size of the destination
   242  
   243  // Include _cygwin.h if we're building a Cygwin application.
   244  
   245  // Target specific macro replacement for type "long".  In the Windows API,
   246  //    the type long is always 32 bit, even if the target is 64 bit (LLP64).
   247  //    On 64 bit Cygwin, the type long is 64 bit (LP64).  So, to get the right
   248  //    sized definitions and declarations, all usage of type long in the Windows
   249  //    headers have to be replaced by the below defined macro __LONG32.
   250  
   251  // C/C++ specific language defines.
   252  
   253  // Note the extern. This is needed to work around GCC's
   254  // limitations in handling dllimport attribute.
   255  
   256  // Attribute `nonnull' was valid as of gcc 3.3.  We don't use GCC's
   257  //    variadiac macro facility, because variadic macros cause syntax
   258  //    errors with  --traditional-cpp.
   259  
   260  //  High byte is the major version, low byte is the minor.
   261  
   262  // Allow both 0x1400 and 0xE00 to identify UCRT
   263  
   264  // ===-------- vadefs.h ---------------------------------------------------===
   265  //
   266  // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
   267  // See https://llvm.org/LICENSE.txt for license information.
   268  // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
   269  //
   270  //===-----------------------------------------------------------------------===
   271  
   272  // Only include this if we are aiming for MSVC compatibility.
   273  // *
   274  // This file has no copyright assigned and is placed in the Public Domain.
   275  // This file is part of the mingw-w64 runtime package.
   276  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   277  
   278  // *
   279  // This file has no copyright assigned and is placed in the Public Domain.
   280  // This file is part of the mingw-w64 runtime package.
   281  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   282  
   283  // for backward compatibility
   284  
   285  type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
   286  
   287  type Ssize_t = int64 /* corecrt.h:45:35 */
   288  
   289  type Rsize_t = Size_t /* corecrt.h:52:16 */
   290  
   291  type Intptr_t = int64 /* corecrt.h:62:35 */
   292  
   293  type Uintptr_t = uint64 /* corecrt.h:75:44 */
   294  
   295  type Wint_t = uint16   /* corecrt.h:106:24 */
   296  type Wctype_t = uint16 /* corecrt.h:107:24 */
   297  
   298  type Errno_t = int32 /* corecrt.h:113:13 */
   299  
   300  type X__time32_t = int32 /* corecrt.h:118:14 */
   301  
   302  type X__time64_t = int64 /* corecrt.h:123:35 */
   303  
   304  type Time_t = X__time64_t /* corecrt.h:138:20 */
   305  
   306  type Threadlocaleinfostruct = struct {
   307  	F_locale_pctype      uintptr
   308  	F_locale_mb_cur_max  int32
   309  	F_locale_lc_codepage uint32
   310  } /* corecrt.h:430:1 */
   311  
   312  type Pthreadlocinfo = uintptr /* corecrt.h:432:39 */
   313  type Pthreadmbcinfo = uintptr /* corecrt.h:433:36 */
   314  
   315  type Localeinfo_struct = struct {
   316  	Flocinfo Pthreadlocinfo
   317  	Fmbcinfo Pthreadmbcinfo
   318  } /* corecrt.h:436:9 */
   319  
   320  type X_locale_tstruct = Localeinfo_struct /* corecrt.h:439:3 */
   321  type X_locale_t = uintptr                 /* corecrt.h:439:19 */
   322  
   323  type TagLC_ID = struct {
   324  	FwLanguage uint16
   325  	FwCountry  uint16
   326  	FwCodePage uint16
   327  } /* corecrt.h:443:9 */
   328  
   329  type LC_ID = TagLC_ID  /* corecrt.h:447:3 */
   330  type LPLC_ID = uintptr /* corecrt.h:447:9 */
   331  
   332  type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:482:3 */
   333  
   334  type X_iobuf = struct{ F_Placeholder uintptr } /* stdio.h:33:3 */
   335  
   336  type FILE = X_iobuf /* stdio.h:47:25 */
   337  
   338  type X_off_t = int32 /* _mingw_off_t.h:5:16 */
   339  type Off32_t = int32 /* _mingw_off_t.h:7:16 */
   340  
   341  type X_off64_t = int64 /* _mingw_off_t.h:13:39 */
   342  type Off64_t = int64   /* _mingw_off_t.h:15:39 */
   343  
   344  type Off_t = Off64_t /* _mingw_off_t.h:24:17 */
   345  
   346  type Fpos_t = int64 /* stdio.h:115:37 */
   347  
   348  var _ int8 /* gen.c:2:13: */