modernc.org/libc@v1.24.1/dirent/dirent_windows_arm64.go (about) 1 // Code generated by 'ccgo dirent\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 dirent\dirent_windows_arm64.go -pkgname dirent', DO NOT EDIT. 2 3 package dirent 4 5 import ( 6 "math" 7 "reflect" 8 "sync/atomic" 9 "unsafe" 10 ) 11 12 var _ = math.Pi 13 var _ reflect.Kind 14 var _ atomic.Value 15 var _ unsafe.Pointer 16 17 const ( 18 DUMMYSTRUCTNAME = 0 19 DUMMYSTRUCTNAME1 = 0 20 DUMMYSTRUCTNAME2 = 0 21 DUMMYSTRUCTNAME3 = 0 22 DUMMYSTRUCTNAME4 = 0 23 DUMMYSTRUCTNAME5 = 0 24 DUMMYUNIONNAME = 0 25 DUMMYUNIONNAME1 = 0 26 DUMMYUNIONNAME2 = 0 27 DUMMYUNIONNAME3 = 0 28 DUMMYUNIONNAME4 = 0 29 DUMMYUNIONNAME5 = 0 30 DUMMYUNIONNAME6 = 0 31 DUMMYUNIONNAME7 = 0 32 DUMMYUNIONNAME8 = 0 33 DUMMYUNIONNAME9 = 0 34 F_OK = 0 35 MINGW_DDK_H = 0 36 MINGW_HAS_DDK_H = 1 37 MINGW_HAS_SECURE_API = 1 38 MINGW_SDK_INIT = 0 39 R_OK = 4 40 UNALIGNED = 0 41 USE___UUIDOF = 0 42 WIN32 = 1 43 WIN64 = 1 44 WINNT = 1 45 W_OK = 2 46 X_OK = 1 47 X_AGLOBAL = 0 48 X_ANONYMOUS_STRUCT = 0 49 X_ANONYMOUS_UNION = 0 50 X_ARGMAX = 100 51 X_ARM64_ = 1 52 X_A_ARCH = 0x20 53 X_A_HIDDEN = 0x02 54 X_A_NORMAL = 0x00 55 X_A_RDONLY = 0x01 56 X_A_SUBDIR = 0x10 57 X_A_SYSTEM = 0x04 58 X_CONST_RETURN = 0 59 X_CRTNOALIAS = 0 60 X_CRTRESTRICT = 0 61 X_CRT_ALTERNATIVE_IMPORTED = 0 62 X_CRT_DIRECTORY_DEFINED = 0 63 X_CRT_MANAGED_HEAP_DEPRECATE = 0 64 X_CRT_MEMORY_DEFINED = 0 65 X_CRT_PACKING = 8 66 X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES = 0 67 X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY = 0 68 X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0 69 X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0 70 X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0 71 X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0 72 X_DIRENT_H_ = 0 73 X_DLL = 0 74 X_ERRCODE_DEFINED = 0 75 X_FILE_OFFSET_BITS = 64 76 X_FILE_OFFSET_BITS_SET_LSEEK = 0 77 X_FILE_OFFSET_BITS_SET_OFFT = 0 78 X_FINDDATA_T_DEFINED = 0 79 X_FSIZE_T_DEFINED = 0 80 X_INC_CORECRT = 0 81 X_INC_CRTDEFS = 0 82 X_INC_CRTDEFS_MACRO = 0 83 X_INC_MINGW_SECAPI = 0 84 X_INC_STRING = 0 85 X_INC_STRING_S = 0 86 X_INC_VADEFS = 0 87 X_INC__MINGW_H = 0 88 X_INT128_DEFINED = 0 89 X_INTPTR_T_DEFINED = 0 90 X_IO_H_ = 0 91 X_MT = 0 92 X_M_ARM64 = 1 93 X_NLSCMPERROR = 2147483647 94 X_NLSCMP_DEFINED = 0 95 X_OFF64_T_DEFINED = 0 96 X_OFF_T_ = 0 97 X_OFF_T_DEFINED = 0 98 X_PGLOBAL = 0 99 X_PTRDIFF_T_ = 0 100 X_PTRDIFF_T_DEFINED = 0 101 X_RSIZE_T_DEFINED = 0 102 X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD 103 X_SIZE_T_DEFINED = 0 104 X_SSIZE_T_DEFINED = 0 105 X_TAGLC_ID_DEFINED = 0 106 X_THREADLOCALEINFO = 0 107 X_TIME32_T_DEFINED = 0 108 X_TIME64_T_DEFINED = 0 109 X_TIME_T_DEFINED = 0 110 X_UCRT = 0 111 X_UINTPTR_T_DEFINED = 0 112 X_VA_LIST_DEFINED = 0 113 X_W64 = 0 114 X_WCHAR_T_DEFINED = 0 115 X_WCTYPE_T_DEFINED = 0 116 X_WConst_return = 0 117 X_WFINDDATA_T_DEFINED = 0 118 X_WIN32 = 1 119 X_WIN32_WINNT = 0x601 120 X_WIN64 = 1 121 X_WINT_T = 0 122 X_WIO_DEFINED = 0 123 X_WSTRING_DEFINED = 0 124 X_WSTRING_S_DEFINED = 0 125 ) 126 127 type Ptrdiff_t = int64 /* <builtin>:3:26 */ 128 129 type Size_t = uint64 /* <builtin>:9:23 */ 130 131 type Wchar_t = uint16 /* <builtin>:15:24 */ 132 133 type X__int128_t = struct { 134 Flo int64 135 Fhi int64 136 } /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128 137 type X__uint128_t = struct { 138 Flo uint64 139 Fhi uint64 140 } /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128 141 142 type X__builtin_va_list = uintptr /* <builtin>:46:14 */ 143 type X__float128 = float64 /* <builtin>:47:21 */ 144 145 type Va_list = X__builtin_va_list /* <builtin>:50:27 */ 146 147 // DIRENT.H (formerly DIRLIB.H) 148 // This file has no copyright assigned and is placed in the Public Domain. 149 // This file is part of the mingw-runtime package. 150 // No warranty is given; refer to the file DISCLAIMER within the package. 151 // 152 153 // All the headers include this file. 154 // * 155 // This file has no copyright assigned and is placed in the Public Domain. 156 // This file is part of the mingw-w64 runtime package. 157 // No warranty is given; refer to the file DISCLAIMER.PD within this package. 158 159 // * 160 // This file has no copyright assigned and is placed in the Public Domain. 161 // This file is part of the mingw-w64 runtime package. 162 // No warranty is given; refer to the file DISCLAIMER.PD within this package. 163 164 // * 165 // This file has no copyright assigned and is placed in the Public Domain. 166 // This file is part of the mingw-w64 runtime package. 167 // No warranty is given; refer to the file DISCLAIMER.PD within this package. 168 169 // * 170 // This file has no copyright assigned and is placed in the Public Domain. 171 // This file is part of the mingw-w64 runtime package. 172 // No warranty is given; refer to the file DISCLAIMER.PD within this package. 173 174 // This macro holds an monotonic increasing value, which indicates 175 // a specific fix/patch is present on trunk. This value isn't related to 176 // minor/major version-macros. It is increased on demand, if a big 177 // fix was applied to trunk. This macro gets just increased on trunk. For 178 // other branches its value won't be modified. 179 180 // mingw.org's version macros: these make gcc to define 181 // MINGW32_SUPPORTS_MT_EH and to use the _CRT_MT global 182 // and the __mingwthr_key_dtor() function from the MinGW 183 // CRT in its private gthr-win32.h header. 184 185 // Set VC specific compiler target macros. 186 187 // MS does not prefix symbols by underscores for 64-bit. 188 // As we have to support older gcc version, which are using underscores 189 // as symbol prefix for x64, we have to check here for the user label 190 // prefix defined by gcc. 191 192 // Special case nameless struct/union. 193 194 // MinGW-w64 has some additional C99 printf/scanf feature support. 195 // So we add some helper macros to ease recognition of them. 196 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 201 // Enable workaround for ABI incompatibility on affected platforms 202 203 // * 204 // This file has no copyright assigned and is placed in the Public Domain. 205 // This file is part of the mingw-w64 runtime package. 206 // No warranty is given; refer to the file DISCLAIMER.PD within this package. 207 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 211 // https://blogs.msdn.com/b/sdl/archive/2010/02/16/vc-2010-and-memcpy.aspx?Redirected=true 212 // fallback on default implementation if we can't know the size of the destination 213 214 // Include _cygwin.h if we're building a Cygwin application. 215 216 // Target specific macro replacement for type "long". In the Windows API, 217 // the type long is always 32 bit, even if the target is 64 bit (LLP64). 218 // On 64 bit Cygwin, the type long is 64 bit (LP64). So, to get the right 219 // sized definitions and declarations, all usage of type long in the Windows 220 // headers have to be replaced by the below defined macro __LONG32. 221 222 // C/C++ specific language defines. 223 224 // Note the extern. This is needed to work around GCC's 225 // limitations in handling dllimport attribute. 226 227 // Attribute `nonnull' was valid as of gcc 3.3. We don't use GCC's 228 // variadiac macro facility, because variadic macros cause syntax 229 // errors with --traditional-cpp. 230 231 // High byte is the major version, low byte is the minor. 232 233 // Allow both 0x1400 and 0xE00 to identify UCRT 234 235 // ===-------- vadefs.h ---------------------------------------------------=== 236 // 237 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 238 // See https://llvm.org/LICENSE.txt for license information. 239 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 240 // 241 //===-----------------------------------------------------------------------=== 242 243 // Only include this if we are aiming for MSVC compatibility. 244 // * 245 // This file has no copyright assigned and is placed in the Public Domain. 246 // This file is part of the mingw-w64 runtime package. 247 // No warranty is given; refer to the file DISCLAIMER.PD within this package. 248 249 // * 250 // This file has no copyright assigned and is placed in the Public Domain. 251 // This file is part of the mingw-w64 runtime package. 252 // No warranty is given; refer to the file DISCLAIMER.PD within this package. 253 254 // for backward compatibility 255 256 type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */ 257 258 type Ssize_t = int64 /* corecrt.h:45:35 */ 259 260 type Rsize_t = Size_t /* corecrt.h:52:16 */ 261 262 type Intptr_t = int64 /* corecrt.h:62:35 */ 263 264 type Uintptr_t = uint64 /* corecrt.h:75:44 */ 265 266 type Wint_t = uint16 /* corecrt.h:106:24 */ 267 type Wctype_t = uint16 /* corecrt.h:107:24 */ 268 269 type Errno_t = int32 /* corecrt.h:113:13 */ 270 271 type X__time32_t = int32 /* corecrt.h:118:14 */ 272 273 type X__time64_t = int64 /* corecrt.h:123:35 */ 274 275 type Time_t = X__time64_t /* corecrt.h:138:20 */ 276 277 type Threadlocaleinfostruct = struct { 278 F_locale_pctype uintptr 279 F_locale_mb_cur_max int32 280 F_locale_lc_codepage uint32 281 } /* corecrt.h:430:1 */ 282 283 type Pthreadlocinfo = uintptr /* corecrt.h:432:39 */ 284 type Pthreadmbcinfo = uintptr /* corecrt.h:433:36 */ 285 286 type Localeinfo_struct = struct { 287 Flocinfo Pthreadlocinfo 288 Fmbcinfo Pthreadmbcinfo 289 } /* corecrt.h:436:9 */ 290 291 type X_locale_tstruct = Localeinfo_struct /* corecrt.h:439:3 */ 292 type X_locale_t = uintptr /* corecrt.h:439:19 */ 293 294 type TagLC_ID = struct { 295 FwLanguage uint16 296 FwCountry uint16 297 FwCodePage uint16 298 } /* corecrt.h:443:9 */ 299 300 type LC_ID = TagLC_ID /* corecrt.h:447:3 */ 301 type LPLC_ID = uintptr /* corecrt.h:447:9 */ 302 303 type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:482:3 */ 304 type X_fsize_t = uint32 /* io.h:29:25 */ 305 306 type X_finddata32_t = struct { 307 Fattrib uint32 308 Ftime_create X__time32_t 309 Ftime_access X__time32_t 310 Ftime_write X__time32_t 311 Fsize X_fsize_t 312 Fname [260]int8 313 } /* io.h:35:3 */ 314 315 type X_finddata32i64_t = struct { 316 Fattrib uint32 317 Ftime_create X__time32_t 318 Ftime_access X__time32_t 319 Ftime_write X__time32_t 320 Fsize int64 321 Fname [260]int8 322 F__ccgo_pad1 [4]byte 323 } /* io.h:44:3 */ 324 325 type X_finddata64i32_t = struct { 326 Fattrib uint32 327 F__ccgo_pad1 [4]byte 328 Ftime_create X__time64_t 329 Ftime_access X__time64_t 330 Ftime_write X__time64_t 331 Fsize X_fsize_t 332 Fname [260]int8 333 } /* io.h:53:3 */ 334 335 type X__finddata64_t = struct { 336 Fattrib uint32 337 F__ccgo_pad1 [4]byte 338 Ftime_create X__time64_t 339 Ftime_access X__time64_t 340 Ftime_write X__time64_t 341 Fsize int64 342 Fname [260]int8 343 F__ccgo_pad2 [4]byte 344 } /* io.h:62:3 */ 345 346 type X_wfinddata32_t = struct { 347 Fattrib uint32 348 Ftime_create X__time32_t 349 Ftime_access X__time32_t 350 Ftime_write X__time32_t 351 Fsize X_fsize_t 352 Fname [260]Wchar_t 353 } /* io.h:94:3 */ 354 355 type X_wfinddata32i64_t = struct { 356 Fattrib uint32 357 Ftime_create X__time32_t 358 Ftime_access X__time32_t 359 Ftime_write X__time32_t 360 Fsize int64 361 Fname [260]Wchar_t 362 } /* io.h:103:3 */ 363 364 type X_wfinddata64i32_t = struct { 365 Fattrib uint32 366 F__ccgo_pad1 [4]byte 367 Ftime_create X__time64_t 368 Ftime_access X__time64_t 369 Ftime_write X__time64_t 370 Fsize X_fsize_t 371 Fname [260]Wchar_t 372 F__ccgo_pad2 [4]byte 373 } /* io.h:112:3 */ 374 375 type X_wfinddata64_t = struct { 376 Fattrib uint32 377 F__ccgo_pad1 [4]byte 378 Ftime_create X__time64_t 379 Ftime_access X__time64_t 380 Ftime_write X__time64_t 381 Fsize int64 382 Fname [260]Wchar_t 383 } /* io.h:121:3 */ 384 385 type X_off_t = int32 /* _mingw_off_t.h:5:16 */ 386 type Off32_t = int32 /* _mingw_off_t.h:7:16 */ 387 388 type X_off64_t = int64 /* _mingw_off_t.h:13:39 */ 389 type Off64_t = int64 /* _mingw_off_t.h:15:39 */ 390 391 type Off_t = Off64_t /* _mingw_off_t.h:24:17 */ 392 393 type Dirent = struct { 394 Fd_ino int32 395 Fd_reclen uint16 396 Fd_namlen uint16 397 Fd_name [260]int8 398 } /* dirent.h:25:1 */ 399 400 // This is an internal data structure. Good programmers will not use it 401 // except as an argument to one of the functions below. 402 // dd_stat field is now int (was short in older versions). 403 type DIR = struct { 404 Fdd_dta X_finddata64i32_t 405 Fdd_dir Dirent 406 F__ccgo_pad1 [4]byte 407 Fdd_handle Intptr_t 408 Fdd_stat int32 409 Fdd_name [1]int8 410 F__ccgo_pad2 [3]byte 411 } /* dirent.h:61:3 */ 412 413 // wide char versions 414 415 type X_wdirent = struct { 416 Fd_ino int32 417 Fd_reclen uint16 418 Fd_namlen uint16 419 Fd_name [260]Wchar_t 420 } /* dirent.h:73:1 */ 421 422 // This is an internal data structure. Good programmers will not use it 423 // except as an argument to one of the functions below. 424 type X_WDIR = struct { 425 Fdd_dta X_wfinddata64i32_t 426 Fdd_dir X_wdirent 427 Fdd_handle Intptr_t 428 Fdd_stat int32 429 Fdd_name [1]Wchar_t 430 F__ccgo_pad1 [2]byte 431 } /* dirent.h:108:3 */ 432 433 var _ int8 /* gen.c:2:13: */