github.com/afumu/libc@v0.0.6/fcntl/fcntl_windows_arm64.go (about)

     1  // Code generated by 'ccgo fcntl\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 fcntl\fcntl_windows_arm64.go -pkgname fcntl', DO NOT EDIT.
     2  
     3  package fcntl
     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  	DUMMYSTRUCTNAME                                 = 0
    19  	DUMMYSTRUCTNAME1                                = 0
    20  	DUMMYSTRUCTNAME2                                = 0
    21  	DUMMYSTRUCTNAME3                                = 0
    22  	DUMMYSTRUCTNAME4                                = 0
    23  	DUMMYSTRUCTNAME5                                = 0
    24  	DUMMYUNIONNAME                                  = 0
    25  	DUMMYUNIONNAME1                                 = 0
    26  	DUMMYUNIONNAME2                                 = 0
    27  	DUMMYUNIONNAME3                                 = 0
    28  	DUMMYUNIONNAME4                                 = 0
    29  	DUMMYUNIONNAME5                                 = 0
    30  	DUMMYUNIONNAME6                                 = 0
    31  	DUMMYUNIONNAME7                                 = 0
    32  	DUMMYUNIONNAME8                                 = 0
    33  	DUMMYUNIONNAME9                                 = 0
    34  	F_OK                                            = 0
    35  	MINGW_DDK_H                                     = 0
    36  	MINGW_HAS_DDK_H                                 = 1
    37  	MINGW_HAS_SECURE_API                            = 1
    38  	MINGW_SDK_INIT                                  = 0
    39  	O_ACCMODE                                       = 3
    40  	O_APPEND                                        = 8
    41  	O_BINARY                                        = 32768
    42  	O_CREAT                                         = 256
    43  	O_EXCL                                          = 1024
    44  	O_NOINHERIT                                     = 128
    45  	O_RANDOM                                        = 16
    46  	O_RAW                                           = 32768
    47  	O_RDONLY                                        = 0
    48  	O_RDWR                                          = 2
    49  	O_SEQUENTIAL                                    = 32
    50  	O_TEMPORARY                                     = 64
    51  	O_TEXT                                          = 16384
    52  	O_TRUNC                                         = 512
    53  	O_WRONLY                                        = 1
    54  	R_OK                                            = 4
    55  	UNALIGNED                                       = 0
    56  	USE___UUIDOF                                    = 0
    57  	WIN32                                           = 1
    58  	WIN64                                           = 1
    59  	WINNT                                           = 1
    60  	W_OK                                            = 2
    61  	X_OK                                            = 1
    62  	X_AGLOBAL                                       = 0
    63  	X_ANONYMOUS_STRUCT                              = 0
    64  	X_ANONYMOUS_UNION                               = 0
    65  	X_ARGMAX                                        = 100
    66  	X_ARM64_                                        = 1
    67  	X_A_ARCH                                        = 0x20
    68  	X_A_HIDDEN                                      = 0x02
    69  	X_A_NORMAL                                      = 0x00
    70  	X_A_RDONLY                                      = 0x01
    71  	X_A_SUBDIR                                      = 0x10
    72  	X_A_SYSTEM                                      = 0x04
    73  	X_CONST_RETURN                                  = 0
    74  	X_CRTNOALIAS                                    = 0
    75  	X_CRTRESTRICT                                   = 0
    76  	X_CRT_ALTERNATIVE_IMPORTED                      = 0
    77  	X_CRT_DIRECTORY_DEFINED                         = 0
    78  	X_CRT_MANAGED_HEAP_DEPRECATE                    = 0
    79  	X_CRT_MEMORY_DEFINED                            = 0
    80  	X_CRT_PACKING                                   = 8
    81  	X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES          = 0
    82  	X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY   = 0
    83  	X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES        = 0
    84  	X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT  = 0
    85  	X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
    86  	X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP             = 0
    87  	X_DLL                                           = 0
    88  	X_ERRCODE_DEFINED                               = 0
    89  	X_FILE_OFFSET_BITS                              = 64
    90  	X_FILE_OFFSET_BITS_SET_LSEEK                    = 0
    91  	X_FILE_OFFSET_BITS_SET_OFFT                     = 0
    92  	X_FINDDATA_T_DEFINED                            = 0
    93  	X_FSIZE_T_DEFINED                               = 0
    94  	X_INC_CORECRT                                   = 0
    95  	X_INC_CRTDEFS                                   = 0
    96  	X_INC_CRTDEFS_MACRO                             = 0
    97  	X_INC_FCNTL                                     = 0
    98  	X_INC_MINGW_SECAPI                              = 0
    99  	X_INC_STRING                                    = 0
   100  	X_INC_STRING_S                                  = 0
   101  	X_INC_VADEFS                                    = 0
   102  	X_INC__MINGW_H                                  = 0
   103  	X_INT128_DEFINED                                = 0
   104  	X_INTPTR_T_DEFINED                              = 0
   105  	X_IO_H_                                         = 0
   106  	X_MT                                            = 0
   107  	X_M_ARM64                                       = 1
   108  	X_NLSCMPERROR                                   = 2147483647
   109  	X_NLSCMP_DEFINED                                = 0
   110  	X_OFF64_T_DEFINED                               = 0
   111  	X_OFF_T_                                        = 0
   112  	X_OFF_T_DEFINED                                 = 0
   113  	X_O_ACCMODE                                     = 3
   114  	X_O_APPEND                                      = 0x0008
   115  	X_O_BINARY                                      = 0x8000
   116  	X_O_CREAT                                       = 0x0100
   117  	X_O_EXCL                                        = 0x0400
   118  	X_O_NOINHERIT                                   = 0x0080
   119  	X_O_RANDOM                                      = 0x0010
   120  	X_O_RAW                                         = 32768
   121  	X_O_RDONLY                                      = 0x0000
   122  	X_O_RDWR                                        = 0x0002
   123  	X_O_SEQUENTIAL                                  = 0x0020
   124  	X_O_SHORT_LIVED                                 = 0x1000
   125  	X_O_TEMPORARY                                   = 0x0040
   126  	X_O_TEXT                                        = 0x4000
   127  	X_O_TRUNC                                       = 0x0200
   128  	X_O_U16TEXT                                     = 0x20000
   129  	X_O_U8TEXT                                      = 0x40000
   130  	X_O_WRONLY                                      = 0x0001
   131  	X_O_WTEXT                                       = 0x10000
   132  	X_PGLOBAL                                       = 0
   133  	X_PTRDIFF_T_                                    = 0
   134  	X_PTRDIFF_T_DEFINED                             = 0
   135  	X_RSIZE_T_DEFINED                               = 0
   136  	X_SECURECRT_FILL_BUFFER_PATTERN                 = 0xFD
   137  	X_SIZE_T_DEFINED                                = 0
   138  	X_SSIZE_T_DEFINED                               = 0
   139  	X_TAGLC_ID_DEFINED                              = 0
   140  	X_THREADLOCALEINFO                              = 0
   141  	X_TIME32_T_DEFINED                              = 0
   142  	X_TIME64_T_DEFINED                              = 0
   143  	X_TIME_T_DEFINED                                = 0
   144  	X_UCRT                                          = 0
   145  	X_UINTPTR_T_DEFINED                             = 0
   146  	X_VA_LIST_DEFINED                               = 0
   147  	X_W64                                           = 0
   148  	X_WCHAR_T_DEFINED                               = 0
   149  	X_WCTYPE_T_DEFINED                              = 0
   150  	X_WConst_return                                 = 0
   151  	X_WFINDDATA_T_DEFINED                           = 0
   152  	X_WIN32                                         = 1
   153  	X_WIN32_WINNT                                   = 0x601
   154  	X_WIN64                                         = 1
   155  	X_WINT_T                                        = 0
   156  	X_WIO_DEFINED                                   = 0
   157  	X_WSTRING_DEFINED                               = 0
   158  	X_WSTRING_S_DEFINED                             = 0
   159  )
   160  
   161  type Ptrdiff_t = int64 /* <builtin>:3:26 */
   162  
   163  type Size_t = uint64 /* <builtin>:9:23 */
   164  
   165  type Wchar_t = uint16 /* <builtin>:15:24 */
   166  
   167  type X__int128_t = struct {
   168  	Flo int64
   169  	Fhi int64
   170  } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
   171  type X__uint128_t = struct {
   172  	Flo uint64
   173  	Fhi uint64
   174  } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
   175  
   176  type X__builtin_va_list = uintptr /* <builtin>:46:14 */
   177  type X__float128 = float64        /* <builtin>:47:21 */
   178  
   179  type Va_list = X__builtin_va_list /* <builtin>:50:27 */
   180  
   181  // *
   182  // This file has no copyright assigned and is placed in the Public Domain.
   183  // This file is part of the mingw-w64 runtime package.
   184  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   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  // *
   196  // This file has no copyright assigned and is placed in the Public Domain.
   197  // This file is part of the mingw-w64 runtime package.
   198  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   199  
   200  // *
   201  // This file has no copyright assigned and is placed in the Public Domain.
   202  // This file is part of the mingw-w64 runtime package.
   203  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   204  
   205  // This macro holds an monotonic increasing value, which indicates
   206  //    a specific fix/patch is present on trunk.  This value isn't related to
   207  //    minor/major version-macros.  It is increased on demand, if a big
   208  //    fix was applied to trunk.  This macro gets just increased on trunk.  For
   209  //    other branches its value won't be modified.
   210  
   211  // mingw.org's version macros: these make gcc to define
   212  //    MINGW32_SUPPORTS_MT_EH and to use the _CRT_MT global
   213  //    and the __mingwthr_key_dtor() function from the MinGW
   214  //    CRT in its private gthr-win32.h header.
   215  
   216  // Set VC specific compiler target macros.
   217  
   218  // MS does not prefix symbols by underscores for 64-bit.
   219  // As we have to support older gcc version, which are using underscores
   220  //       as symbol prefix for x64, we have to check here for the user label
   221  //       prefix defined by gcc.
   222  
   223  // Special case nameless struct/union.
   224  
   225  // MinGW-w64 has some additional C99 printf/scanf feature support.
   226  //    So we add some helper macros to ease recognition of them.
   227  
   228  // If _FORTIFY_SOURCE is enabled, some inline functions may use
   229  //    __builtin_va_arg_pack().  GCC may report an error if the address
   230  //    of such a function is used.  Set _FORTIFY_VA_ARG=0 in this case.
   231  
   232  // Enable workaround for ABI incompatibility on affected platforms
   233  
   234  // *
   235  // This file has no copyright assigned and is placed in the Public Domain.
   236  // This file is part of the mingw-w64 runtime package.
   237  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   238  
   239  // http://msdn.microsoft.com/en-us/library/ms175759%28v=VS.100%29.aspx
   240  // Templates won't work in C, will break if secure API is not enabled, disabled
   241  
   242  // https://blogs.msdn.com/b/sdl/archive/2010/02/16/vc-2010-and-memcpy.aspx?Redirected=true
   243  // fallback on default implementation if we can't know the size of the destination
   244  
   245  // Include _cygwin.h if we're building a Cygwin application.
   246  
   247  // Target specific macro replacement for type "long".  In the Windows API,
   248  //    the type long is always 32 bit, even if the target is 64 bit (LLP64).
   249  //    On 64 bit Cygwin, the type long is 64 bit (LP64).  So, to get the right
   250  //    sized definitions and declarations, all usage of type long in the Windows
   251  //    headers have to be replaced by the below defined macro __LONG32.
   252  
   253  // C/C++ specific language defines.
   254  
   255  // Note the extern. This is needed to work around GCC's
   256  // limitations in handling dllimport attribute.
   257  
   258  // Attribute `nonnull' was valid as of gcc 3.3.  We don't use GCC's
   259  //    variadiac macro facility, because variadic macros cause syntax
   260  //    errors with  --traditional-cpp.
   261  
   262  //  High byte is the major version, low byte is the minor.
   263  
   264  // Allow both 0x1400 and 0xE00 to identify UCRT
   265  
   266  // ===-------- vadefs.h ---------------------------------------------------===
   267  //
   268  // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
   269  // See https://llvm.org/LICENSE.txt for license information.
   270  // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
   271  //
   272  //===-----------------------------------------------------------------------===
   273  
   274  // Only include this if we are aiming for MSVC compatibility.
   275  // *
   276  // This file has no copyright assigned and is placed in the Public Domain.
   277  // This file is part of the mingw-w64 runtime package.
   278  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   279  
   280  // *
   281  // This file has no copyright assigned and is placed in the Public Domain.
   282  // This file is part of the mingw-w64 runtime package.
   283  // No warranty is given; refer to the file DISCLAIMER.PD within this package.
   284  
   285  // for backward compatibility
   286  
   287  type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
   288  
   289  type Ssize_t = int64 /* corecrt.h:45:35 */
   290  
   291  type Rsize_t = Size_t /* corecrt.h:52:16 */
   292  
   293  type Intptr_t = int64 /* corecrt.h:62:35 */
   294  
   295  type Uintptr_t = uint64 /* corecrt.h:75:44 */
   296  
   297  type Wint_t = uint16   /* corecrt.h:106:24 */
   298  type Wctype_t = uint16 /* corecrt.h:107:24 */
   299  
   300  type Errno_t = int32 /* corecrt.h:113:13 */
   301  
   302  type X__time32_t = int32 /* corecrt.h:118:14 */
   303  
   304  type X__time64_t = int64 /* corecrt.h:123:35 */
   305  
   306  type Time_t = X__time64_t /* corecrt.h:138:20 */
   307  
   308  type Threadlocaleinfostruct = struct {
   309  	F_locale_pctype      uintptr
   310  	F_locale_mb_cur_max  int32
   311  	F_locale_lc_codepage uint32
   312  } /* corecrt.h:430:1 */
   313  
   314  type Pthreadlocinfo = uintptr /* corecrt.h:432:39 */
   315  type Pthreadmbcinfo = uintptr /* corecrt.h:433:36 */
   316  
   317  type Localeinfo_struct = struct {
   318  	Flocinfo Pthreadlocinfo
   319  	Fmbcinfo Pthreadmbcinfo
   320  } /* corecrt.h:436:9 */
   321  
   322  type X_locale_tstruct = Localeinfo_struct /* corecrt.h:439:3 */
   323  type X_locale_t = uintptr                 /* corecrt.h:439:19 */
   324  
   325  type TagLC_ID = struct {
   326  	FwLanguage uint16
   327  	FwCountry  uint16
   328  	FwCodePage uint16
   329  } /* corecrt.h:443:9 */
   330  
   331  type LC_ID = TagLC_ID  /* corecrt.h:447:3 */
   332  type LPLC_ID = uintptr /* corecrt.h:447:9 */
   333  
   334  type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:482:3 */
   335  type X_fsize_t = uint32                     /* io.h:29:25 */
   336  
   337  type X_finddata32_t = struct {
   338  	Fattrib      uint32
   339  	Ftime_create X__time32_t
   340  	Ftime_access X__time32_t
   341  	Ftime_write  X__time32_t
   342  	Fsize        X_fsize_t
   343  	Fname        [260]int8
   344  } /* io.h:35:3 */
   345  
   346  type X_finddata32i64_t = struct {
   347  	Fattrib      uint32
   348  	Ftime_create X__time32_t
   349  	Ftime_access X__time32_t
   350  	Ftime_write  X__time32_t
   351  	Fsize        int64
   352  	Fname        [260]int8
   353  	F__ccgo_pad1 [4]byte
   354  } /* io.h:44:3 */
   355  
   356  type X_finddata64i32_t = struct {
   357  	Fattrib      uint32
   358  	F__ccgo_pad1 [4]byte
   359  	Ftime_create X__time64_t
   360  	Ftime_access X__time64_t
   361  	Ftime_write  X__time64_t
   362  	Fsize        X_fsize_t
   363  	Fname        [260]int8
   364  } /* io.h:53:3 */
   365  
   366  type X__finddata64_t = struct {
   367  	Fattrib      uint32
   368  	F__ccgo_pad1 [4]byte
   369  	Ftime_create X__time64_t
   370  	Ftime_access X__time64_t
   371  	Ftime_write  X__time64_t
   372  	Fsize        int64
   373  	Fname        [260]int8
   374  	F__ccgo_pad2 [4]byte
   375  } /* io.h:62:3 */
   376  
   377  type X_wfinddata32_t = struct {
   378  	Fattrib      uint32
   379  	Ftime_create X__time32_t
   380  	Ftime_access X__time32_t
   381  	Ftime_write  X__time32_t
   382  	Fsize        X_fsize_t
   383  	Fname        [260]Wchar_t
   384  } /* io.h:94:3 */
   385  
   386  type X_wfinddata32i64_t = struct {
   387  	Fattrib      uint32
   388  	Ftime_create X__time32_t
   389  	Ftime_access X__time32_t
   390  	Ftime_write  X__time32_t
   391  	Fsize        int64
   392  	Fname        [260]Wchar_t
   393  } /* io.h:103:3 */
   394  
   395  type X_wfinddata64i32_t = struct {
   396  	Fattrib      uint32
   397  	F__ccgo_pad1 [4]byte
   398  	Ftime_create X__time64_t
   399  	Ftime_access X__time64_t
   400  	Ftime_write  X__time64_t
   401  	Fsize        X_fsize_t
   402  	Fname        [260]Wchar_t
   403  	F__ccgo_pad2 [4]byte
   404  } /* io.h:112:3 */
   405  
   406  type X_wfinddata64_t = struct {
   407  	Fattrib      uint32
   408  	F__ccgo_pad1 [4]byte
   409  	Ftime_create X__time64_t
   410  	Ftime_access X__time64_t
   411  	Ftime_write  X__time64_t
   412  	Fsize        int64
   413  	Fname        [260]Wchar_t
   414  } /* io.h:121:3 */
   415  
   416  type X_off_t = int32 /* _mingw_off_t.h:5:16 */
   417  type Off32_t = int32 /* _mingw_off_t.h:7:16 */
   418  
   419  type X_off64_t = int64 /* _mingw_off_t.h:13:39 */
   420  type Off64_t = int64   /* _mingw_off_t.h:15:39 */
   421  
   422  type Off_t = Off64_t /* _mingw_off_t.h:24:17 */
   423  
   424  var _ int8 /* gen.c:2:13: */