stat_windows_amd64.go 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556
  1. // Code generated by 'ccgo sys\stat\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 sys\stat\stat_windows_amd64.go -pkgname stat', DO NOT EDIT.
  2. package stat
  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. R_OK = 4
  38. S_IEXEC = 64
  39. S_IFBLK = 12288
  40. S_IFCHR = 8192
  41. S_IFDIR = 16384
  42. S_IFIFO = 4096
  43. S_IFMT = 61440
  44. S_IFREG = 32768
  45. S_IREAD = 256
  46. S_IRGRP = 32
  47. S_IROTH = 4
  48. S_IRUSR = 256
  49. S_IRWXG = 56
  50. S_IRWXO = 7
  51. S_IRWXU = 448
  52. S_IWGRP = 16
  53. S_IWOTH = 2
  54. S_IWRITE = 128
  55. S_IWUSR = 128
  56. S_IXGRP = 8
  57. S_IXOTH = 1
  58. S_IXUSR = 64
  59. UNALIGNED = 0
  60. USE___UUIDOF = 0
  61. WIN32 = 1
  62. WIN64 = 1
  63. WINNT = 1
  64. W_OK = 2
  65. X_OK = 1
  66. X_AGLOBAL = 0
  67. X_ANONYMOUS_STRUCT = 0
  68. X_ANONYMOUS_UNION = 0
  69. X_ARGMAX = 100
  70. X_A_ARCH = 0x20
  71. X_A_HIDDEN = 0x02
  72. X_A_NORMAL = 0x00
  73. X_A_RDONLY = 0x01
  74. X_A_SUBDIR = 0x10
  75. X_A_SYSTEM = 0x04
  76. X_CONST_RETURN = 0
  77. X_CRTNOALIAS = 0
  78. X_CRTRESTRICT = 0
  79. X_CRT_ALTERNATIVE_IMPORTED = 0
  80. X_CRT_DIRECTORY_DEFINED = 0
  81. X_CRT_MANAGED_HEAP_DEPRECATE = 0
  82. X_CRT_MEMORY_DEFINED = 0
  83. X_CRT_PACKING = 8
  84. X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES = 0
  85. X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY = 0
  86. X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
  87. X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
  88. X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
  89. X_DEV_T_DEFINED = 0
  90. X_DLL = 0
  91. X_ERRCODE_DEFINED = 0
  92. X_FILE_OFFSET_BITS = 64
  93. X_FILE_OFFSET_BITS_SET_LSEEK = 0
  94. X_FILE_OFFSET_BITS_SET_OFFT = 0
  95. X_FINDDATA_T_DEFINED = 0
  96. X_FSIZE_T_DEFINED = 0
  97. X_INC_CRTDEFS = 0
  98. X_INC_CRTDEFS_MACRO = 0
  99. X_INC_MINGW_SECAPI = 0
  100. X_INC_STAT = 0
  101. X_INC_STRING = 0
  102. X_INC_STRING_S = 0
  103. X_INC_TYPES = 0
  104. X_INC_VADEFS = 0
  105. X_INC__MINGW_H = 0
  106. X_INO_T_DEFINED = 0
  107. X_INT128_DEFINED = 0
  108. X_INTEGRAL_MAX_BITS = 64
  109. X_INTPTR_T_DEFINED = 0
  110. X_IO_H_ = 0
  111. X_MODE_T_ = 0
  112. X_MT = 0
  113. X_M_AMD64 = 100
  114. X_M_X64 = 100
  115. X_NLSCMPERROR = 2147483647
  116. X_NLSCMP_DEFINED = 0
  117. X_OFF64_T_DEFINED = 0
  118. X_OFF_T_ = 0
  119. X_OFF_T_DEFINED = 0
  120. X_PGLOBAL = 0
  121. X_PID_T_ = 0
  122. X_PTRDIFF_T_ = 0
  123. X_PTRDIFF_T_DEFINED = 0
  124. X_REENTRANT = 1
  125. X_RSIZE_T_DEFINED = 0
  126. X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
  127. X_SIGSET_T_ = 0
  128. X_SIZE_T_DEFINED = 0
  129. X_SSIZE_T_DEFINED = 0
  130. X_STAT_DEFINED = 0
  131. X_S_IEXEC = 0x0040
  132. X_S_IFBLK = 0x3000
  133. X_S_IFCHR = 0x2000
  134. X_S_IFDIR = 0x4000
  135. X_S_IFIFO = 0x1000
  136. X_S_IFMT = 0xF000
  137. X_S_IFREG = 0x8000
  138. X_S_IREAD = 0x0100
  139. X_S_IRUSR = 256
  140. X_S_IRWXU = 448
  141. X_S_IWRITE = 0x0080
  142. X_S_IWUSR = 128
  143. X_S_IXUSR = 64
  144. X_TAGLC_ID_DEFINED = 0
  145. X_THREADLOCALEINFO = 0
  146. X_TIME32_T_DEFINED = 0
  147. X_TIME64_T_DEFINED = 0
  148. X_TIMESPEC_DEFINED = 0
  149. X_TIME_T_DEFINED = 0
  150. X_UINTPTR_T_DEFINED = 0
  151. X_VA_LIST_DEFINED = 0
  152. X_W64 = 0
  153. X_WCHAR_T_DEFINED = 0
  154. X_WCTYPE_T_DEFINED = 0
  155. X_WConst_return = 0
  156. X_WFINDDATA_T_DEFINED = 0
  157. X_WIN32 = 1
  158. X_WIN32_WINNT = 0x502
  159. X_WIN64 = 1
  160. X_WINT_T = 0
  161. X_WIO_DEFINED = 0
  162. X_WSTAT_DEFINED = 0
  163. X_WSTRING_DEFINED = 0
  164. X_WSTRING_S_DEFINED = 0
  165. )
  166. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  167. type Size_t = uint64 /* <builtin>:9:23 */
  168. type Wchar_t = uint16 /* <builtin>:15:24 */
  169. type X__int128_t = struct {
  170. Flo int64
  171. Fhi int64
  172. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  173. type X__uint128_t = struct {
  174. Flo uint64
  175. Fhi uint64
  176. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  177. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  178. type X__float128 = float64 /* <builtin>:47:21 */
  179. type Va_list = X__builtin_va_list /* <builtin>:50:27 */
  180. // *
  181. // This file has no copyright assigned and is placed in the Public Domain.
  182. // This file is part of the mingw-w64 runtime package.
  183. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  184. // *
  185. // This file has no copyright assigned and is placed in the Public Domain.
  186. // This file is part of the mingw-w64 runtime package.
  187. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  188. // *
  189. // This file has no copyright assigned and is placed in the Public Domain.
  190. // This file is part of the mingw-w64 runtime package.
  191. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  192. // *
  193. // This file has no copyright assigned and is placed in the Public Domain.
  194. // This file is part of the mingw-w64 runtime package.
  195. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  196. // This macro holds an monotonic increasing value, which indicates
  197. // a specific fix/patch is present on trunk. This value isn't related to
  198. // minor/major version-macros. It is increased on demand, if a big
  199. // fix was applied to trunk. This macro gets just increased on trunk. For
  200. // other branches its value won't be modified.
  201. // mingw.org's version macros: these make gcc to define
  202. // MINGW32_SUPPORTS_MT_EH and to use the _CRT_MT global
  203. // and the __mingwthr_key_dtor() function from the MinGW
  204. // CRT in its private gthr-win32.h header.
  205. // Set VC specific compiler target macros.
  206. // MS does not prefix symbols by underscores for 64-bit.
  207. // As we have to support older gcc version, which are using underscores
  208. // as symbol prefix for x64, we have to check here for the user label
  209. // prefix defined by gcc.
  210. // Special case nameless struct/union.
  211. // MinGW-w64 has some additional C99 printf/scanf feature support.
  212. // So we add some helper macros to ease recognition of them.
  213. // *
  214. // This file has no copyright assigned and is placed in the Public Domain.
  215. // This file is part of the mingw-w64 runtime package.
  216. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  217. // http://msdn.microsoft.com/en-us/library/ms175759%28v=VS.100%29.aspx
  218. // Templates won't work in C, will break if secure API is not enabled, disabled
  219. // https://blogs.msdn.com/b/sdl/archive/2010/02/16/vc-2010-and-memcpy.aspx?Redirected=true
  220. // fallback on default implementation if we can't know the size of the destination
  221. // Include _cygwin.h if we're building a Cygwin application.
  222. // Target specific macro replacement for type "long". In the Windows API,
  223. // the type long is always 32 bit, even if the target is 64 bit (LLP64).
  224. // On 64 bit Cygwin, the type long is 64 bit (LP64). So, to get the right
  225. // sized definitions and declarations, all usage of type long in the Windows
  226. // headers have to be replaced by the below defined macro __LONG32.
  227. // C/C++ specific language defines.
  228. // Note the extern. This is needed to work around GCC's
  229. // limitations in handling dllimport attribute.
  230. // Attribute `nonnull' was valid as of gcc 3.3. We don't use GCC's
  231. // variadiac macro facility, because variadic macros cause syntax
  232. // errors with --traditional-cpp.
  233. // High byte is the major version, low byte is the minor.
  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. // This file has no copyright assigned and is placed in the Public Domain.
  240. // This file is part of the mingw-w64 runtime package.
  241. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  242. type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
  243. type Ssize_t = int64 /* crtdefs.h:45:35 */
  244. type Rsize_t = Size_t /* crtdefs.h:52:16 */
  245. type Intptr_t = int64 /* crtdefs.h:62:35 */
  246. type Uintptr_t = uint64 /* crtdefs.h:75:44 */
  247. type Wint_t = uint16 /* crtdefs.h:106:24 */
  248. type Wctype_t = uint16 /* crtdefs.h:107:24 */
  249. type Errno_t = int32 /* crtdefs.h:113:13 */
  250. type X__time32_t = int32 /* crtdefs.h:118:14 */
  251. type X__time64_t = int64 /* crtdefs.h:123:35 */
  252. type Time_t = X__time64_t /* crtdefs.h:138:20 */
  253. type Threadlocaleinfostruct = struct {
  254. Frefcount int32
  255. Flc_codepage uint32
  256. Flc_collate_cp uint32
  257. Flc_handle [6]uint32
  258. Flc_id [6]LC_ID
  259. Flc_category [6]struct {
  260. Flocale uintptr
  261. Fwlocale uintptr
  262. Frefcount uintptr
  263. Fwrefcount uintptr
  264. }
  265. Flc_clike int32
  266. Fmb_cur_max int32
  267. Flconv_intl_refcount uintptr
  268. Flconv_num_refcount uintptr
  269. Flconv_mon_refcount uintptr
  270. Flconv uintptr
  271. Fctype1_refcount uintptr
  272. Fctype1 uintptr
  273. Fpctype uintptr
  274. Fpclmap uintptr
  275. Fpcumap uintptr
  276. Flc_time_curr uintptr
  277. } /* crtdefs.h:422:1 */
  278. type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
  279. type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
  280. type Localeinfo_struct = struct {
  281. Flocinfo Pthreadlocinfo
  282. Fmbcinfo Pthreadmbcinfo
  283. } /* crtdefs.h:428:9 */
  284. type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
  285. type X_locale_t = uintptr /* crtdefs.h:431:19 */
  286. type TagLC_ID = struct {
  287. FwLanguage uint16
  288. FwCountry uint16
  289. FwCodePage uint16
  290. } /* crtdefs.h:422:1 */
  291. type LC_ID = TagLC_ID /* crtdefs.h:439:3 */
  292. type LPLC_ID = uintptr /* crtdefs.h:439:9 */
  293. type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
  294. type X_fsize_t = uint32 /* io.h:29:25 */
  295. type X_finddata32_t = struct {
  296. Fattrib uint32
  297. Ftime_create X__time32_t
  298. Ftime_access X__time32_t
  299. Ftime_write X__time32_t
  300. Fsize X_fsize_t
  301. Fname [260]int8
  302. } /* io.h:35:3 */
  303. type X_finddata32i64_t = struct {
  304. Fattrib uint32
  305. Ftime_create X__time32_t
  306. Ftime_access X__time32_t
  307. Ftime_write X__time32_t
  308. Fsize int64
  309. Fname [260]int8
  310. F__ccgo_pad1 [4]byte
  311. } /* io.h:44:3 */
  312. type X_finddata64i32_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 X_fsize_t
  319. Fname [260]int8
  320. } /* io.h:53:3 */
  321. type X__finddata64_t = struct {
  322. Fattrib uint32
  323. F__ccgo_pad1 [4]byte
  324. Ftime_create X__time64_t
  325. Ftime_access X__time64_t
  326. Ftime_write X__time64_t
  327. Fsize int64
  328. Fname [260]int8
  329. F__ccgo_pad2 [4]byte
  330. } /* io.h:62:3 */
  331. type X_wfinddata32_t = struct {
  332. Fattrib uint32
  333. Ftime_create X__time32_t
  334. Ftime_access X__time32_t
  335. Ftime_write X__time32_t
  336. Fsize X_fsize_t
  337. Fname [260]Wchar_t
  338. } /* io.h:94:3 */
  339. type X_wfinddata32i64_t = struct {
  340. Fattrib uint32
  341. Ftime_create X__time32_t
  342. Ftime_access X__time32_t
  343. Ftime_write X__time32_t
  344. Fsize int64
  345. Fname [260]Wchar_t
  346. } /* io.h:103:3 */
  347. type X_wfinddata64i32_t = struct {
  348. Fattrib uint32
  349. F__ccgo_pad1 [4]byte
  350. Ftime_create X__time64_t
  351. Ftime_access X__time64_t
  352. Ftime_write X__time64_t
  353. Fsize X_fsize_t
  354. Fname [260]Wchar_t
  355. F__ccgo_pad2 [4]byte
  356. } /* io.h:112:3 */
  357. type X_wfinddata64_t = struct {
  358. Fattrib uint32
  359. F__ccgo_pad1 [4]byte
  360. Ftime_create X__time64_t
  361. Ftime_access X__time64_t
  362. Ftime_write X__time64_t
  363. Fsize int64
  364. Fname [260]Wchar_t
  365. } /* io.h:121:3 */
  366. type X_off_t = int32 /* _mingw_off_t.h:5:16 */
  367. type Off32_t = int32 /* _mingw_off_t.h:7:16 */
  368. type X_off64_t = int64 /* _mingw_off_t.h:13:39 */
  369. type Off64_t = int64 /* _mingw_off_t.h:15:39 */
  370. type Off_t = Off64_t /* _mingw_off_t.h:24:17 */
  371. // *
  372. // This file has no copyright assigned and is placed in the Public Domain.
  373. // This file is part of the mingw-w64 runtime package.
  374. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  375. // *
  376. // This file has no copyright assigned and is placed in the Public Domain.
  377. // This file is part of the mingw-w64 runtime package.
  378. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  379. type X_ino_t = uint16 /* types.h:43:24 */
  380. type Ino_t = uint16 /* types.h:45:24 */
  381. type X_dev_t = uint32 /* types.h:51:22 */
  382. type Dev_t = uint32 /* types.h:53:22 */
  383. type X_pid_t = int64 /* types.h:63:17 */
  384. type Pid_t = X_pid_t /* types.h:68:16 */
  385. type X_mode_t = uint16 /* types.h:74:24 */
  386. type Mode_t = X_mode_t /* types.h:77:17 */
  387. type Useconds_t = uint32 /* types.h:84:22 */
  388. type Timespec = struct {
  389. Ftv_sec Time_t
  390. Ftv_nsec int32
  391. F__ccgo_pad1 [4]byte
  392. } /* types.h:89:1 */
  393. type Itimerspec = struct {
  394. Fit_interval struct {
  395. Ftv_sec Time_t
  396. Ftv_nsec int32
  397. F__ccgo_pad1 [4]byte
  398. }
  399. Fit_value struct {
  400. Ftv_sec Time_t
  401. Ftv_nsec int32
  402. F__ccgo_pad1 [4]byte
  403. }
  404. } /* types.h:94:1 */
  405. type X_sigset_t = uint64 /* types.h:104:28 */
  406. type X_stat32 = struct {
  407. Fst_dev X_dev_t
  408. Fst_ino X_ino_t
  409. Fst_mode uint16
  410. Fst_nlink int16
  411. Fst_uid int16
  412. Fst_gid int16
  413. F__ccgo_pad1 [2]byte
  414. Fst_rdev X_dev_t
  415. Fst_size X_off_t
  416. Fst_atime X__time32_t
  417. Fst_mtime X__time32_t
  418. Fst_ctime X__time32_t
  419. } /* _mingw_stat64.h:28:3 */
  420. type Stat = struct {
  421. Fst_dev X_dev_t
  422. Fst_ino X_ino_t
  423. Fst_mode uint16
  424. Fst_nlink int16
  425. Fst_uid int16
  426. Fst_gid int16
  427. F__ccgo_pad1 [2]byte
  428. Fst_rdev X_dev_t
  429. Fst_size X_off_t
  430. Fst_atime Time_t
  431. Fst_mtime Time_t
  432. Fst_ctime Time_t
  433. } /* _mingw_stat64.h:43:3 */
  434. type X_stat32i64 = struct {
  435. Fst_dev X_dev_t
  436. Fst_ino X_ino_t
  437. Fst_mode uint16
  438. Fst_nlink int16
  439. Fst_uid int16
  440. Fst_gid int16
  441. F__ccgo_pad1 [2]byte
  442. Fst_rdev X_dev_t
  443. F__ccgo_pad2 [4]byte
  444. Fst_size int64
  445. Fst_atime X__time32_t
  446. Fst_mtime X__time32_t
  447. Fst_ctime X__time32_t
  448. F__ccgo_pad3 [4]byte
  449. } /* _mingw_stat64.h:58:3 */
  450. type X_stat64i32 = struct {
  451. Fst_dev X_dev_t
  452. Fst_ino X_ino_t
  453. Fst_mode uint16
  454. Fst_nlink int16
  455. Fst_uid int16
  456. Fst_gid int16
  457. F__ccgo_pad1 [2]byte
  458. Fst_rdev X_dev_t
  459. Fst_size X_off_t
  460. Fst_atime X__time64_t
  461. Fst_mtime X__time64_t
  462. Fst_ctime X__time64_t
  463. } /* _mingw_stat64.h:72:3 */
  464. type X_stat64 = struct {
  465. Fst_dev X_dev_t
  466. Fst_ino X_ino_t
  467. Fst_mode uint16
  468. Fst_nlink int16
  469. Fst_uid int16
  470. Fst_gid int16
  471. F__ccgo_pad1 [2]byte
  472. Fst_rdev X_dev_t
  473. F__ccgo_pad2 [4]byte
  474. Fst_size int64
  475. Fst_atime X__time64_t
  476. Fst_mtime X__time64_t
  477. Fst_ctime X__time64_t
  478. } /* _mingw_stat64.h:86:3 */
  479. var _ int8 /* gen.c:2:13: */