fcntl_windows_arm64.go 16 KB

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