Changeset 21916 for trunk/src/iphlpapi
- Timestamp:
- Dec 18, 2011, 10:28:22 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 bin 2 Makefile.inc 1 env.cmd 2 LocalConfig.kmk
-
-
Property svn:mergeinfo
set to
/branches/gcc-kmk merged eligible
- Property svn:ignore
-
trunk/src/iphlpapi/iphlpapi.cpp
r21563 r21916 60 60 61 61 //We don't want to use the OS2 version directly, but the one in wsock32 62 int WIN32API O DIN_gethostname (char * name, int namelen);62 int WIN32API OS2gethostname (char * name, int namelen); 63 63 64 64 ODINDEBUGCHANNEL(IPHLPAPI-IPHLPAPI) … … 274 274 // fill pipAdapter->IpAddressList 275 275 int cIfAddresses = 0; 276 for (int j = 0; j < cAddresses; ++j) 276 int j; 277 for (j = 0; j < cAddresses; ++j) 277 278 { 278 279 #ifdef DEBUG … … 580 581 memset(pFixedInfo,0,memNeeded); 581 582 582 O DIN_gethostname(fi->HostName,128);583 OS2gethostname(fi->HostName,128); 583 584 strcpy(fi->DomainName,_res.defdname); 584 585 -
trunk/src/iphlpapi/iphlpapi.def
r10066 r21916 6 6 7 7 EXPORTS 8 GetAdaptersInfo = _GetAdaptersInfo@8@179 GetNetworkParams = _GetNetworkParams@8@388 GetAdaptersInfo = "_GetAdaptersInfo@8" @17 9 GetNetworkParams = "_GetNetworkParams@8" @38 10 10 11 GetIpAddrTable = _GetIpAddrTable@12@4012 GetIfTable = _GetIfTable@12@4113 GetFriendlyIfIndex = _GetFriendlyIfIndex@4@4211 GetIpAddrTable = "_GetIpAddrTable@12" @40 12 GetIfTable = "_GetIfTable@12" @41 13 GetFriendlyIfIndex = "_GetFriendlyIfIndex@4" @42 14 14 15 ;to tell the linker to look elsewhere for this function16 _ODIN_gethostname@8 = _gethostname@8 @5017 -
trunk/src/iphlpapi/iphlwrap.h
r7973 r21916 2 2 #define __IPHLWRAP_H__ 3 3 4 #include <sys \socket.h>5 #include <sys \ioctl.h>4 #include <sys/socket.h> 5 #include <sys/ioctl.h> 6 6 #include <netdb.h> 7 #include <netinet \in.h>8 #include <netinet \tcp.h>7 #include <netinet/in.h> 8 #include <netinet/tcp.h> 9 9 #include <nerrno.h> 10 11 int _System os2_ioctl (int, unsigned long, char *, int);12 10 13 11 inline int _os2_ioctl (int a, unsigned long b, char *c, int d) … … 23 21 24 22 #undef os2_ioctl 25 #define os2_ioctl _os2_ioctl 26 27 inline int _ioctl(int a, int b, char *c, int d) 28 { 29 int yyrc; 30 USHORT sel = RestoreOS2FS(); 31 32 yyrc = ioctl(a, b, c, d); 33 SetFS(sel); 34 35 return yyrc; 36 } 37 38 #undef ioctl 39 #define ioctl _ioctl 23 #define ioctl _os2_ioctl 40 24 41 25 inline int _res_init(void) … … 48 32 49 33 return yyrc; 50 } 34 } 51 35 #undef res_init 52 36 #define res_init _res_init … … 61 45 62 46 return yyrc; 63 } 47 } 64 48 65 49 #undef sock_init … … 75 59 76 60 return yyrc; 77 } 61 } 78 62 79 63 #undef sock_errno … … 86 70 psock_errno(a); 87 71 SetFS(sel); 88 } 72 } 89 73 90 74 #undef psock_errno … … 100 84 101 85 return yyrc; 102 } 86 } 103 87 104 88 #undef socket … … 114 98 115 99 return yyrc; 116 } 100 } 117 101 118 102 #undef soclose … … 128 112 129 113 return yyrc; 130 } 114 } 131 115 132 116 #undef so_cancel … … 142 126 143 127 return yyrc; 144 } 128 } 145 129 146 130 #undef gethostname … … 156 140 157 141 return yyrc; 158 } 142 } 159 143 160 144 #undef gethostbyname … … 170 154 171 155 return yyrc; 172 } 156 } 173 157 174 158 #undef gethostbyaddr 175 159 #define gethostbyaddr _gethostbyaddr 176 160 177 #endif 161 #endif 178 162 179 163
Note:
See TracChangeset
for help on using the changeset viewer.