fcntl_windows_amd64.go 16 KB

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