gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

fcntl_windows_amd64.go (16209B)


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