modernc.org/libc@v1.24.1/stdio/stdio_windows_amd64.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_amd64.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_DDRAW_VERSION                             = 7
    40  	MINGW_HAS_DDK_H                                 = 1
    41  	MINGW_HAS_DDRAW_H                               = 1
    42  	MINGW_HAS_SECURE_API                            = 1
    43  	MINGW_SDK_INIT                                  = 0
    44  	SEEK_CUR                                        = 1
    45  	SEEK_END                                        = 2
    46  	SEEK_SET                                        = 0
    47  	STDERR_FILENO                                   = 2
    48  	STDIN_FILENO                                    = 0
    49  	STDOUT_FILENO                                   = 1
    50  	SYS_OPEN                                        = 20
    51  	TMP_MAX                                         = 32767
    52  	UNALIGNED                                       = 0
    53  	USE___UUIDOF                                    = 0
    54  	WIN32                                           = 1
    55  	WIN64                                           = 1
    56  	WINNT                                           = 1
    57  	X_AGLOBAL                                       = 0
    58  	X_ANONYMOUS_STRUCT                              = 0
    59  	X_ANONYMOUS_UNION                               = 0
    60  	X_ARGMAX                                        = 100
    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_MANAGED_HEAP_DEPRECATE                    = 0
    67  	X_CRT_PACKING                                   = 8
    68  	X_CRT_PERROR_DEFINED                            = 0
    69  	X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES          = 0
    70  	X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY   = 0
    71  	X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES        = 0
    72  	X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT  = 0
    73  	X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
    74  	X_CRT_WPERROR_DEFINED                           = 0
    75  	X_DLL                                           = 0
    76  	X_ERRCODE_DEFINED                               = 0
    77  	X_FILE_DEFINED                                  = 0
    78  	X_FILE_OFFSET_BITS                              = 64
    79  	X_FILE_OFFSET_BITS_SET_FSEEKO                   = 0
    80  	X_FILE_OFFSET_BITS_SET_FTELLO                   = 0
    81  	X_FILE_OFFSET_BITS_SET_OFFT                     = 0
    82  	X_FPOS_T_DEFINED                                = 0
    83  	X_INC_CRTDEFS                                   = 0
    84  	X_INC_CRTDEFS_MACRO                             = 0
    85  	X_INC_MINGW_SECAPI                              = 0
    86  	X_INC_STDIO                                     = 0
    87  	X_INC_STDIO_S                                   = 0
    88  	X_INC_SWPRINTF_INL                              = 0
    89  	X_INC_VADEFS                                    = 0
    90  	X_INC__MINGW_H                                  = 0
    91  	X_INT128_DEFINED                                = 0
    92  	X_INTEGRAL_MAX_BITS                             = 64
    93  	X_INTPTR_T_DEFINED                              = 0
    94  	X_IOB_ENTRIES                                   = 20
    95  	X_IOEOF                                         = 0x0010
    96  	X_IOERR                                         = 0x0020
    97  	X_IOFBF                                         = 0x0000
    98  	X_IOLBF                                         = 0x0040
    99  	X_IOMYBUF                                       = 0x0008
   100  	X_IONBF                                         = 0x0004
   101  	X_IOREAD                                        = 0x0001
   102  	X_IORW                                          = 0x0080
   103  	X_IOSTRG                                        = 0x0040
   104  	X_IOWRT                                         = 0x0002
   105  	X_MT                                            = 0
   106  	X_M_AMD64                                       = 100
   107  	X_M_X64                                         = 100
   108  	X_NFILE                                         = 512
   109  	X_NSTREAM_                                      = 512
   110  	X_OFF64_T_DEFINED                               = 0
   111  	X_OFF_T_                                        = 0
   112  	X_OFF_T_DEFINED                                 = 0
   113  	X_OLD_P_OVERLAY                                 = 2
   114  	X_PGLOBAL                                       = 0
   115  	X_PTRDIFF_T_                                    = 0
   116  	X_PTRDIFF_T_DEFINED                             = 0
   117  	X_P_DETACH                                      = 4
   118  	X_P_NOWAIT                                      = 1
   119  	X_P_NOWAITO                                     = 3
   120  	X_P_OVERLAY                                     = 2
   121  	X_P_WAIT                                        = 0
   122  	X_P_tmpdir                                      = "\\"
   123  	X_REENTRANT                                     = 1
   124  	X_RSIZE_T_DEFINED                               = 0
   125  	X_SECURECRT_FILL_BUFFER_PATTERN                 = 0xFD
   126  	X_SIZE_T_DEFINED                                = 0
   127  	X_SPAWNV_DEFINED                                = 0
   128  	X_SSIZE_T_DEFINED                               = 0
   129  	X_STDIO_DEFINED                                 = 0
   130  	X_STDIO_S_DEFINED                               = 0
   131  	X_STDSTREAM_DEFINED                             = 0
   132  	X_SYS_OPEN                                      = 20
   133  	X_TAGLC_ID_DEFINED                              = 0
   134  	X_THREADLOCALEINFO                              = 0
   135  	X_TIME32_T_DEFINED                              = 0
   136  	X_TIME64_T_DEFINED                              = 0
   137  	X_TIME_T_DEFINED                                = 0
   138  	X_TWO_DIGIT_EXPONENT                            = 0x1
   139  	X_UINTPTR_T_DEFINED                             = 0
   140  	X_VA_LIST_DEFINED                               = 0
   141  	X_W64                                           = 0
   142  	X_WAIT_CHILD                                    = 0
   143  	X_WAIT_GRANDCHILD                               = 1
   144  	X_WCHAR_T_DEFINED                               = 0
   145  	X_WCTYPE_T_DEFINED                              = 0
   146  	X_WIN32                                         = 1
   147  	X_WIN32_WINNT                                   = 0x502
   148  	X_WIN64                                         = 1
   149  	X_WINT_T                                        = 0
   150  	X_WSPAWN_DEFINED                                = 0
   151  	X_WSTDIO_DEFINED                                = 0
   152  	X_WSTDIO_S_DEFINED                              = 0
   153  )
   154  
   155  type Ptrdiff_t = int64 /* <builtin>:3:26 */
   156  
   157  type Size_t = uint64 /* <builtin>:9:23 */
   158  
   159  type Wchar_t = uint16 /* <builtin>:15:24 */
   160  
   161  type X__int128_t = struct {
   162  	Flo int64
   163  	Fhi int64
   164  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
   165  type X__uint128_t = struct {
   166  	Flo uint64
   167  	Fhi uint64
   168  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
   169  
   170  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
   171  type X__float128 = float64        /* <builtin>:47:21 */
   172  
   173  type Va_list = X__builtin_va_list /* <builtin>:50:27 */
   174  
   175  // *
   176  // This file has no copyright assigned and is placed in the Public Domain.
   177  // This file is part of the mingw-w64 runtime package.
   178  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   179  
   180  // *
   181  // This file has no copyright assigned and is placed in the Public Domain.
   182  // This file is part of the mingw-w64 runtime package.
   183  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   184  
   185  // *
   186  // This file has no copyright assigned and is placed in the Public Domain.
   187  // This file is part of the mingw-w64 runtime package.
   188  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   189  
   190  // *
   191  // This file has no copyright assigned and is placed in the Public Domain.
   192  // This file is part of the mingw-w64 runtime package.
   193  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   194  
   195  // This macro holds an monotonic increasing value, which indicates
   196  //    a specific fix/patch is present on trunk.  This value isn't related to
   197  //    minor/major version-macros.  It is increased on demand, if a big
   198  //    fix was applied to trunk.  This macro gets just increased on trunk.  For
   199  //    other branches its value won't be modified.
   200  
   201  // mingw.org's version macros: these make gcc to define
   202  //    MINGW32_SUPPORTS_MT_EH and to use the _CRT_MT global
   203  //    and the __mingwthr_key_dtor() function from the MinGW
   204  //    CRT in its private gthr-win32.h header.
   205  
   206  // Set VC specific compiler target macros.
   207  
   208  // MS does not prefix symbols by underscores for 64-bit.
   209  // As we have to support older gcc version, which are using underscores
   210  //       as symbol prefix for x64, we have to check here for the user label
   211  //       prefix defined by gcc.
   212  
   213  // Special case nameless struct/union.
   214  
   215  // MinGW-w64 has some additional C99 printf/scanf feature support.
   216  //    So we add some helper macros to ease recognition of them.
   217  
   218  // *
   219  // This file has no copyright assigned and is placed in the Public Domain.
   220  // This file is part of the mingw-w64 runtime package.
   221  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   222  
   223  // http://msdn.microsoft.com/en-us/library/ms175759%28v=VS.100%29.aspx
   224  // Templates won't work in C, will break if secure API is not enabled, disabled
   225  
   226  // https://blogs.msdn.com/b/sdl/archive/2010/02/16/vc-2010-and-memcpy.aspx?Redirected=true
   227  // fallback on default implementation if we can't know the size of the destination
   228  
   229  // Include _cygwin.h if we're building a Cygwin application.
   230  
   231  // Target specific macro replacement for type "long".  In the Windows API,
   232  //    the type long is always 32 bit, even if the target is 64 bit (LLP64).
   233  //    On 64 bit Cygwin, the type long is 64 bit (LP64).  So, to get the right
   234  //    sized definitions and declarations, all usage of type long in the Windows
   235  //    headers have to be replaced by the below defined macro __LONG32.
   236  
   237  // C/C++ specific language defines.
   238  
   239  // Note the extern. This is needed to work around GCC's
   240  // limitations in handling dllimport attribute.
   241  
   242  // Attribute `nonnull' was valid as of gcc 3.3.  We don't use GCC's
   243  //    variadiac macro facility, because variadic macros cause syntax
   244  //    errors with  --traditional-cpp.
   245  
   246  //  High byte is the major version, low byte is the minor.
   247  
   248  // *
   249  // This file has no copyright assigned and is placed in the Public Domain.
   250  // This file is part of the mingw-w64 runtime package.
   251  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   252  
   253  // *
   254  // This file has no copyright assigned and is placed in the Public Domain.
   255  // This file is part of the mingw-w64 runtime package.
   256  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   257  
   258  type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
   259  
   260  type Ssize_t = int64 /* crtdefs.h:45:35 */
   261  
   262  type Rsize_t = Size_t /* crtdefs.h:52:16 */
   263  
   264  type Intptr_t = int64 /* crtdefs.h:62:35 */
   265  
   266  type Uintptr_t = uint64 /* crtdefs.h:75:44 */
   267  
   268  type Wint_t = uint16   /* crtdefs.h:106:24 */
   269  type Wctype_t = uint16 /* crtdefs.h:107:24 */
   270  
   271  type Errno_t = int32 /* crtdefs.h:113:13 */
   272  
   273  type X__time32_t = int32 /* crtdefs.h:118:14 */
   274  
   275  type X__time64_t = int64 /* crtdefs.h:123:35 */
   276  
   277  type Time_t = X__time64_t /* crtdefs.h:138:20 */
   278  
   279  type Threadlocaleinfostruct = struct {
   280  	Frefcount      int32
   281  	Flc_codepage   uint32
   282  	Flc_collate_cp uint32
   283  	Flc_handle     [6]uint32
   284  	Flc_id         [6]LC_ID
   285  	Flc_category   [6]struct {
   286  		Flocale    uintptr
   287  		Fwlocale   uintptr
   288  		Frefcount  uintptr
   289  		Fwrefcount uintptr
   290  	}
   291  	Flc_clike            int32
   292  	Fmb_cur_max          int32
   293  	Flconv_intl_refcount uintptr
   294  	Flconv_num_refcount  uintptr
   295  	Flconv_mon_refcount  uintptr
   296  	Flconv               uintptr
   297  	Fctype1_refcount     uintptr
   298  	Fctype1              uintptr
   299  	Fpctype              uintptr
   300  	Fpclmap              uintptr
   301  	Fpcumap              uintptr
   302  	Flc_time_curr        uintptr
   303  } /* crtdefs.h:422:1 */
   304  
   305  type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
   306  type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
   307  
   308  type Localeinfo_struct = struct {
   309  	Flocinfo Pthreadlocinfo
   310  	Fmbcinfo Pthreadmbcinfo
   311  } /* crtdefs.h:428:9 */
   312  
   313  type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
   314  type X_locale_t = uintptr                 /* crtdefs.h:431:19 */
   315  
   316  type TagLC_ID = struct {
   317  	FwLanguage uint16
   318  	FwCountry  uint16
   319  	FwCodePage uint16
   320  } /* crtdefs.h:422:1 */
   321  
   322  type LC_ID = TagLC_ID  /* crtdefs.h:439:3 */
   323  type LPLC_ID = uintptr /* crtdefs.h:439:9 */
   324  
   325  type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
   326  
   327  // *
   328  // This file has no copyright assigned and is placed in the Public Domain.
   329  // This file is part of the mingw-w64 runtime package.
   330  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   331  
   332  // Undefine __mingw_<printf> macros.
   333  
   334  type X_iobuf = struct {
   335  	F_ptr        uintptr
   336  	F_cnt        int32
   337  	F__ccgo_pad1 [4]byte
   338  	F_base       uintptr
   339  	F_flag       int32
   340  	F_file       int32
   341  	F_charbuf    int32
   342  	F_bufsiz     int32
   343  	F_tmpfname   uintptr
   344  } /* stdio.h:26:3 */
   345  
   346  type FILE = X_iobuf /* stdio.h:36:25 */
   347  
   348  type X_off_t = int32 /* _mingw_off_t.h:5:16 */
   349  type Off32_t = int32 /* _mingw_off_t.h:7:16 */
   350  
   351  type X_off64_t = int64 /* _mingw_off_t.h:13:39 */
   352  type Off64_t = int64   /* _mingw_off_t.h:15:39 */
   353  
   354  type Off_t = Off64_t /* _mingw_off_t.h:24:17 */
   355  
   356  type Fpos_t = int64 /* stdio.h:104:37 */
   357  
   358  // *
   359  // This file has no copyright assigned and is placed in the Public Domain.
   360  // This file is part of the mingw-w64 runtime package.
   361  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   362  
   363  // Define __mingw_<printf> macros.
   364  
   365  var _ int8 /* gen.c:2:13: */