errno_windows_arm64.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. // Code generated by 'ccgo errno\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 errno\errno_windows_arm64.go -pkgname errno', DO NOT EDIT.
  2. package errno
  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. E2BIG = 7
  31. EACCES = 13
  32. EADDRINUSE = 100
  33. EADDRNOTAVAIL = 101
  34. EAFNOSUPPORT = 102
  35. EAGAIN = 11
  36. EALREADY = 103
  37. EBADF = 9
  38. EBADMSG = 104
  39. EBUSY = 16
  40. ECANCELED = 105
  41. ECHILD = 10
  42. ECONNABORTED = 106
  43. ECONNREFUSED = 107
  44. ECONNRESET = 108
  45. EDEADLK = 36
  46. EDEADLOCK = 36
  47. EDESTADDRREQ = 109
  48. EDOM = 33
  49. EEXIST = 17
  50. EFAULT = 14
  51. EFBIG = 27
  52. EHOSTUNREACH = 110
  53. EIDRM = 111
  54. EILSEQ = 42
  55. EINPROGRESS = 112
  56. EINTR = 4
  57. EINVAL = 22
  58. EIO = 5
  59. EISCONN = 113
  60. EISDIR = 21
  61. ELOOP = 114
  62. EMFILE = 24
  63. EMLINK = 31
  64. EMSGSIZE = 115
  65. ENAMETOOLONG = 38
  66. ENETDOWN = 116
  67. ENETRESET = 117
  68. ENETUNREACH = 118
  69. ENFILE = 23
  70. ENOBUFS = 119
  71. ENODATA = 120
  72. ENODEV = 19
  73. ENOENT = 2
  74. ENOEXEC = 8
  75. ENOFILE = 2
  76. ENOLCK = 39
  77. ENOLINK = 121
  78. ENOMEM = 12
  79. ENOMSG = 122
  80. ENOPROTOOPT = 123
  81. ENOSPC = 28
  82. ENOSR = 124
  83. ENOSTR = 125
  84. ENOSYS = 40
  85. ENOTCONN = 126
  86. ENOTDIR = 20
  87. ENOTEMPTY = 41
  88. ENOTRECOVERABLE = 127
  89. ENOTSOCK = 128
  90. ENOTSUP = 129
  91. ENOTTY = 25
  92. ENXIO = 6
  93. EOPNOTSUPP = 130
  94. EOVERFLOW = 132
  95. EOWNERDEAD = 133
  96. EPERM = 1
  97. EPIPE = 32
  98. EPROTO = 134
  99. EPROTONOSUPPORT = 135
  100. EPROTOTYPE = 136
  101. ERANGE = 34
  102. EROFS = 30
  103. ESPIPE = 29
  104. ESRCH = 3
  105. ETIME = 137
  106. ETIMEDOUT = 138
  107. ETXTBSY = 139
  108. EWOULDBLOCK = 140
  109. EXDEV = 18
  110. MINGW_DDK_H = 0
  111. MINGW_HAS_DDK_H = 1
  112. MINGW_HAS_SECURE_API = 1
  113. MINGW_SDK_INIT = 0
  114. STRUNCATE = 80
  115. UNALIGNED = 0
  116. USE___UUIDOF = 0
  117. WIN32 = 1
  118. WIN64 = 1
  119. WINNT = 1
  120. X_AGLOBAL = 0
  121. X_ANONYMOUS_STRUCT = 0
  122. X_ANONYMOUS_UNION = 0
  123. X_ARGMAX = 100
  124. X_ARM64_ = 1
  125. X_CONST_RETURN = 0
  126. X_CRTNOALIAS = 0
  127. X_CRTRESTRICT = 0
  128. X_CRT_ALTERNATIVE_IMPORTED = 0
  129. X_CRT_ERRNO_DEFINED = 0
  130. X_CRT_MANAGED_HEAP_DEPRECATE = 0
  131. X_CRT_PACKING = 8
  132. X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES = 0
  133. X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY = 0
  134. X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
  135. X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
  136. X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
  137. X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0
  138. X_DLL = 0
  139. X_ERRCODE_DEFINED = 0
  140. X_FILE_OFFSET_BITS = 64
  141. X_INC_CORECRT = 0
  142. X_INC_CRTDEFS = 0
  143. X_INC_CRTDEFS_MACRO = 0
  144. X_INC_ERRNO = 0
  145. X_INC_MINGW_SECAPI = 0
  146. X_INC_VADEFS = 0
  147. X_INC__MINGW_H = 0
  148. X_INT128_DEFINED = 0
  149. X_INTPTR_T_DEFINED = 0
  150. X_MT = 0
  151. X_M_ARM64 = 1
  152. X_PGLOBAL = 0
  153. X_PTRDIFF_T_ = 0
  154. X_PTRDIFF_T_DEFINED = 0
  155. X_RSIZE_T_DEFINED = 0
  156. X_SECURECRT_ERRCODE_VALUES_DEFINED = 0
  157. X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
  158. X_SIZE_T_DEFINED = 0
  159. X_SSIZE_T_DEFINED = 0
  160. X_TAGLC_ID_DEFINED = 0
  161. X_THREADLOCALEINFO = 0
  162. X_TIME32_T_DEFINED = 0
  163. X_TIME64_T_DEFINED = 0
  164. X_TIME_T_DEFINED = 0
  165. X_UCRT = 0
  166. X_UINTPTR_T_DEFINED = 0
  167. X_VA_LIST_DEFINED = 0
  168. X_W64 = 0
  169. X_WCHAR_T_DEFINED = 0
  170. X_WCTYPE_T_DEFINED = 0
  171. X_WIN32 = 1
  172. X_WIN32_WINNT = 0x601
  173. X_WIN64 = 1
  174. X_WINT_T = 0
  175. )
  176. type Ptrdiff_t = int64 /* <builtin>:3:26 */
  177. type Size_t = uint64 /* <builtin>:9:23 */
  178. type Wchar_t = uint16 /* <builtin>:15:24 */
  179. type X__int128_t = struct {
  180. Flo int64
  181. Fhi int64
  182. } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
  183. type X__uint128_t = struct {
  184. Flo uint64
  185. Fhi uint64
  186. } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
  187. type X__builtin_va_list = uintptr /* <builtin>:46:14 */
  188. type X__float128 = float64 /* <builtin>:47:21 */
  189. type Va_list = X__builtin_va_list /* <builtin>:50:27 */
  190. // *
  191. // This file has no copyright assigned and is placed in the Public Domain.
  192. // This file is part of the mingw-w64 runtime package.
  193. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  194. // *
  195. // This file has no copyright assigned and is placed in the Public Domain.
  196. // This file is part of the mingw-w64 runtime package.
  197. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  198. // *
  199. // This file has no copyright assigned and is placed in the Public Domain.
  200. // This file is part of the mingw-w64 runtime package.
  201. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  202. // *
  203. // This file has no copyright assigned and is placed in the Public Domain.
  204. // This file is part of the mingw-w64 runtime package.
  205. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  206. // *
  207. // This file has no copyright assigned and is placed in the Public Domain.
  208. // This file is part of the mingw-w64 runtime package.
  209. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  210. // This macro holds an monotonic increasing value, which indicates
  211. // a specific fix/patch is present on trunk. This value isn't related to
  212. // minor/major version-macros. It is increased on demand, if a big
  213. // fix was applied to trunk. This macro gets just increased on trunk. For
  214. // other branches its value won't be modified.
  215. // mingw.org's version macros: these make gcc to define
  216. // MINGW32_SUPPORTS_MT_EH and to use the _CRT_MT global
  217. // and the __mingwthr_key_dtor() function from the MinGW
  218. // CRT in its private gthr-win32.h header.
  219. // Set VC specific compiler target macros.
  220. // MS does not prefix symbols by underscores for 64-bit.
  221. // As we have to support older gcc version, which are using underscores
  222. // as symbol prefix for x64, we have to check here for the user label
  223. // prefix defined by gcc.
  224. // Special case nameless struct/union.
  225. // MinGW-w64 has some additional C99 printf/scanf feature support.
  226. // So we add some helper macros to ease recognition of them.
  227. // If _FORTIFY_SOURCE is enabled, some inline functions may use
  228. // __builtin_va_arg_pack(). GCC may report an error if the address
  229. // of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
  230. // Enable workaround for ABI incompatibility on affected platforms
  231. // *
  232. // This file has no copyright assigned and is placed in the Public Domain.
  233. // This file is part of the mingw-w64 runtime package.
  234. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  235. // http://msdn.microsoft.com/en-us/library/ms175759%28v=VS.100%29.aspx
  236. // Templates won't work in C, will break if secure API is not enabled, disabled
  237. // https://blogs.msdn.com/b/sdl/archive/2010/02/16/vc-2010-and-memcpy.aspx?Redirected=true
  238. // fallback on default implementation if we can't know the size of the destination
  239. // Include _cygwin.h if we're building a Cygwin application.
  240. // Target specific macro replacement for type "long". In the Windows API,
  241. // the type long is always 32 bit, even if the target is 64 bit (LLP64).
  242. // On 64 bit Cygwin, the type long is 64 bit (LP64). So, to get the right
  243. // sized definitions and declarations, all usage of type long in the Windows
  244. // headers have to be replaced by the below defined macro __LONG32.
  245. // C/C++ specific language defines.
  246. // Note the extern. This is needed to work around GCC's
  247. // limitations in handling dllimport attribute.
  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. // High byte is the major version, low byte is the minor.
  252. // Allow both 0x1400 and 0xE00 to identify UCRT
  253. // ===-------- vadefs.h ---------------------------------------------------===
  254. //
  255. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  256. // See https://llvm.org/LICENSE.txt for license information.
  257. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  258. //
  259. //===-----------------------------------------------------------------------===
  260. // Only include this if we are aiming for MSVC compatibility.
  261. // *
  262. // This file has no copyright assigned and is placed in the Public Domain.
  263. // This file is part of the mingw-w64 runtime package.
  264. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  265. // *
  266. // This file has no copyright assigned and is placed in the Public Domain.
  267. // This file is part of the mingw-w64 runtime package.
  268. // No warranty is given; refer to the file DISCLAIMER.PD within this package.
  269. // for backward compatibility
  270. type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
  271. type Ssize_t = int64 /* corecrt.h:45:35 */
  272. type Rsize_t = Size_t /* corecrt.h:52:16 */
  273. type Intptr_t = int64 /* corecrt.h:62:35 */
  274. type Uintptr_t = uint64 /* corecrt.h:75:44 */
  275. type Wint_t = uint16 /* corecrt.h:106:24 */
  276. type Wctype_t = uint16 /* corecrt.h:107:24 */
  277. type Errno_t = int32 /* corecrt.h:113:13 */
  278. type X__time32_t = int32 /* corecrt.h:118:14 */
  279. type X__time64_t = int64 /* corecrt.h:123:35 */
  280. type Time_t = X__time64_t /* corecrt.h:138:20 */
  281. type Threadlocaleinfostruct = struct {
  282. F_locale_pctype uintptr
  283. F_locale_mb_cur_max int32
  284. F_locale_lc_codepage uint32
  285. } /* corecrt.h:430:1 */
  286. type Pthreadlocinfo = uintptr /* corecrt.h:432:39 */
  287. type Pthreadmbcinfo = uintptr /* corecrt.h:433:36 */
  288. type Localeinfo_struct = struct {
  289. Flocinfo Pthreadlocinfo
  290. Fmbcinfo Pthreadmbcinfo
  291. } /* corecrt.h:436:9 */
  292. type X_locale_tstruct = Localeinfo_struct /* corecrt.h:439:3 */
  293. type X_locale_t = uintptr /* corecrt.h:439:19 */
  294. type TagLC_ID = struct {
  295. FwLanguage uint16
  296. FwCountry uint16
  297. FwCodePage uint16
  298. } /* corecrt.h:443:9 */
  299. type LC_ID = TagLC_ID /* corecrt.h:447:3 */
  300. type LPLC_ID = uintptr /* corecrt.h:447:9 */
  301. type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:482:3 */
  302. // Posix thread extensions.
  303. // Extension defined as by report VC 10+ defines error-numbers.
  304. // Defined as WSAETIMEDOUT.
  305. var _ int8 /* gen.c:2:13: */