errno_windows_386.go 19 KB

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