Artifact 309cc6cabdd19f28b023cca60d24b611620af4af:
- File
src/win32/ipifcons.d
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
The problem was __gshared. Replacing it with TLS fixed the issue. Remaining problem is that "hack.d"'s CloseHandle hack is not working anymore.
(user: kinaba) [annotate]
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
0000: 2f 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a /***************
0010: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
0020: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
0030: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
0040: 2a 2a 2a 2a 2a 2a 2a 2a 5c 0d 0a 2a 20 20 20 20 ********\..*
0050: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0060: 20 20 20 20 20 20 20 20 20 20 20 69 70 69 66 63 ipifc
0070: 6f 6e 73 2e 64 20 20 20 20 20 20 20 20 20 20 20 ons.d
0080: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0090: 20 20 20 2a 0d 0a 2a 20 20 20 20 20 20 20 20 20 *..*
00a0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
00b0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
00c0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
00d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2a 0d *.
00e0: 0a 2a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .*
00f0: 20 20 20 20 20 20 20 20 20 57 69 6e 64 6f 77 73 Windows
0100: 20 41 50 49 20 68 65 61 64 65 72 20 6d 6f 64 75 API header modu
0110: 6c 65 20 20 20 20 20 20 20 20 20 20 20 20 20 20 le
0120: 20 20 20 20 20 20 20 20 20 2a 0d 0a 2a 20 20 20 *..*
0130: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0140: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0150: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0160: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0170: 20 20 20 20 2a 0d 0a 2a 20 20 20 20 20 20 20 20 *..*
0180: 20 20 20 20 20 20 20 20 20 54 72 61 6e 73 6c 61 Transla
0190: 74 65 64 20 66 72 6f 6d 20 4d 69 6e 47 57 20 57 ted from MinGW W
01a0: 69 6e 64 6f 77 73 20 68 65 61 64 65 72 73 20 20 indows headers
01b0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2a *
01c0: 0d 0a 2a 20 20 20 20 20 20 20 20 20 20 20 20 20 ..*
01d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 79 by
01e0: 20 53 74 65 77 61 72 74 20 47 6f 72 64 6f 6e 20 Stewart Gordon
01f0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0200: 20 20 20 20 20 20 20 20 20 20 2a 0d 0a 2a 20 20 *..*
0210: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0220: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0230: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0240: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0250: 20 20 20 20 20 2a 0d 0a 2a 20 20 20 20 20 20 20 *..*
0260: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
0270: 50 6c 61 63 65 64 20 69 6e 74 6f 20 70 75 62 6c Placed into publ
0280: 69 63 20 64 6f 6d 61 69 6e 20 20 20 20 20 20 20 ic domain
0290: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
02a0: 2a 0d 0a 5c 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a *..\************
02b0: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
02c0: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
02d0: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a ****************
02e0: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2f 0d 0a 6d 6f ***********/..mo
02f0: 64 75 6c 65 20 77 69 6e 33 32 2e 69 70 69 66 63 dule win32.ipifc
0300: 6f 6e 73 3b 0d 0a 0d 0a 2f 2f 20 46 49 58 4d 45 ons;....// FIXME
0310: 3a 20 63 68 65 63 6b 20 74 79 70 65 73 20 6f 66 : check types of
0320: 20 63 6f 6e 73 74 61 6e 74 73 0d 0a 0d 0a 65 6e constants....en
0330: 75 6d 20 7b 0d 0a 09 4d 49 42 5f 49 46 5f 41 44 um {...MIB_IF_AD
0340: 4d 49 4e 5f 53 54 41 54 55 53 5f 55 50 20 3d 20 MIN_STATUS_UP =
0350: 31 2c 0d 0a 09 4d 49 42 5f 49 46 5f 41 44 4d 49 1,...MIB_IF_ADMI
0360: 4e 5f 53 54 41 54 55 53 5f 44 4f 57 4e 2c 0d 0a N_STATUS_DOWN,..
0370: 09 4d 49 42 5f 49 46 5f 41 44 4d 49 4e 5f 53 54 .MIB_IF_ADMIN_ST
0380: 41 54 55 53 5f 54 45 53 54 49 4e 47 2c 0d 0a 7d ATUS_TESTING,..}
0390: 0d 0a 0d 0a 65 6e 75 6d 20 7b 0d 0a 09 4d 49 42 ....enum {...MIB
03a0: 5f 49 46 5f 4f 50 45 52 5f 53 54 41 54 55 53 5f _IF_OPER_STATUS_
03b0: 4e 4f 4e 5f 4f 50 45 52 41 54 49 4f 4e 41 4c 2c NON_OPERATIONAL,
03c0: 0d 0a 09 4d 49 42 5f 49 46 5f 4f 50 45 52 5f 53 ...MIB_IF_OPER_S
03d0: 54 41 54 55 53 5f 55 4e 52 45 41 43 48 41 42 4c TATUS_UNREACHABL
03e0: 45 2c 0d 0a 09 4d 49 42 5f 49 46 5f 4f 50 45 52 E,...MIB_IF_OPER
03f0: 5f 53 54 41 54 55 53 5f 44 49 53 43 4f 4e 4e 45 _STATUS_DISCONNE
0400: 43 54 45 44 2c 0d 0a 09 4d 49 42 5f 49 46 5f 4f CTED,...MIB_IF_O
0410: 50 45 52 5f 53 54 41 54 55 53 5f 43 4f 4e 4e 45 PER_STATUS_CONNE
0420: 43 54 49 4e 47 2c 0d 0a 09 4d 49 42 5f 49 46 5f CTING,...MIB_IF_
0430: 4f 50 45 52 5f 53 54 41 54 55 53 5f 43 4f 4e 4e OPER_STATUS_CONN
0440: 45 43 54 45 44 2c 0d 0a 09 4d 49 42 5f 49 46 5f ECTED,...MIB_IF_
0450: 4f 50 45 52 5f 53 54 41 54 55 53 5f 4f 50 45 52 OPER_STATUS_OPER
0460: 41 54 49 4f 4e 41 4c 20 2f 2f 20 3d 20 35 0d 0a ATIONAL // = 5..
0470: 7d 0d 0a 0d 0a 65 6e 75 6d 20 7b 0d 0a 09 4d 49 }....enum {...MI
0480: 42 5f 49 46 5f 54 59 50 45 5f 4f 54 48 45 52 20 B_IF_TYPE_OTHER
0490: 20 20 20 20 3d 20 20 31 2c 0d 0a 09 4d 49 42 5f = 1,...MIB_
04a0: 49 46 5f 54 59 50 45 5f 45 54 48 45 52 4e 45 54 IF_TYPE_ETHERNET
04b0: 20 20 3d 20 20 36 2c 0d 0a 09 4d 49 42 5f 49 46 = 6,...MIB_IF
04c0: 5f 54 59 50 45 5f 54 4f 4b 45 4e 52 49 4e 47 20 _TYPE_TOKENRING
04d0: 3d 20 20 39 2c 0d 0a 09 4d 49 42 5f 49 46 5f 54 = 9,...MIB_IF_T
04e0: 59 50 45 5f 46 44 44 49 20 20 20 20 20 20 3d 20 YPE_FDDI =
04f0: 31 35 2c 0d 0a 09 4d 49 42 5f 49 46 5f 54 59 50 15,...MIB_IF_TYP
0500: 45 5f 50 50 50 20 20 20 20 20 20 20 3d 20 32 33 E_PPP = 23
0510: 2c 0d 0a 09 4d 49 42 5f 49 46 5f 54 59 50 45 5f ,...MIB_IF_TYPE_
0520: 4c 4f 4f 50 42 41 43 4b 20 20 3d 20 32 34 2c 0d LOOPBACK = 24,.
0530: 0a 09 4d 49 42 5f 49 46 5f 54 59 50 45 5f 53 4c ..MIB_IF_TYPE_SL
0540: 49 50 20 20 20 20 20 20 3d 20 32 38 0d 0a 7d 0d IP = 28..}.
0550: 0a .