fcntl_windows_386.go 20 KB

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