Changeset 21916 for trunk/src/iphlpapi


Ignore:
Timestamp:
Dec 18, 2011, 10:28:22 PM (14 years ago)
Author:
dmik
Message:

Merge branch gcc-kmk to trunk.

Location:
trunk
Files:
1 deleted
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1 bin
        2 Makefile.inc
         1env.cmd
         2LocalConfig.kmk
    • Property svn:mergeinfo set to
      /branches/gcc-kmkmergedeligible
  • trunk/src/iphlpapi/iphlpapi.cpp

    r21563 r21916  
    6060
    6161//We don't want to use the OS2 version directly, but the one in wsock32
    62 int WIN32API ODIN_gethostname (char * name, int namelen);
     62int WIN32API OS2gethostname (char * name, int namelen);
    6363
    6464ODINDEBUGCHANNEL(IPHLPAPI-IPHLPAPI)
     
    274274        // fill pipAdapter->IpAddressList
    275275        int cIfAddresses = 0;
    276         for (int j = 0; j < cAddresses; ++j)
     276        int j;
     277        for (j = 0; j < cAddresses; ++j)
    277278        {
    278279#ifdef DEBUG
     
    580581  memset(pFixedInfo,0,memNeeded);
    581582
    582   ODIN_gethostname(fi->HostName,128);
     583  OS2gethostname(fi->HostName,128);
    583584  strcpy(fi->DomainName,_res.defdname);
    584585
  • trunk/src/iphlpapi/iphlpapi.def

    r10066 r21916  
    66
    77EXPORTS
    8  GetAdaptersInfo    = _GetAdaptersInfo@8                    @17
    9  GetNetworkParams   = _GetNetworkParams@8                   @38
     8 GetAdaptersInfo    = "_GetAdaptersInfo@8"                  @17
     9 GetNetworkParams   = "_GetNetworkParams@8"                 @38
    1010
    11  GetIpAddrTable     = _GetIpAddrTable@12                    @40
    12  GetIfTable         = _GetIfTable@12                        @41
    13  GetFriendlyIfIndex = _GetFriendlyIfIndex@4                 @42
     11 GetIpAddrTable     = "_GetIpAddrTable@12"                  @40
     12 GetIfTable         = "_GetIfTable@12"                      @41
     13 GetFriendlyIfIndex = "_GetFriendlyIfIndex@4"               @42
    1414
    15 ;to tell the linker to look elsewhere for this function
    16  _ODIN_gethostname@8 = _gethostname@8                     @50
    17 
  • trunk/src/iphlpapi/iphlwrap.h

    r7973 r21916  
    22#define __IPHLWRAP_H__
    33
    4 #include <sys\socket.h>
    5 #include <sys\ioctl.h>
     4#include <sys/socket.h>
     5#include <sys/ioctl.h>
    66#include <netdb.h>
    7 #include <netinet\in.h>
    8 #include <netinet\tcp.h>
     7#include <netinet/in.h>
     8#include <netinet/tcp.h>
    99#include <nerrno.h>
    10 
    11 int _System os2_ioctl (int, unsigned long, char *, int);
    1210
    1311inline int _os2_ioctl (int a, unsigned long b, char *c, int d)
     
    2321
    2422#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
    4024
    4125inline int _res_init(void)
     
    4832
    4933    return yyrc;
    50 } 
     34}
    5135#undef  res_init
    5236#define res_init _res_init
     
    6145
    6246    return yyrc;
    63 } 
     47}
    6448
    6549#undef  sock_init
     
    7559
    7660    return yyrc;
    77 } 
     61}
    7862
    7963#undef  sock_errno
     
    8670    psock_errno(a);
    8771    SetFS(sel);
    88 } 
     72}
    8973
    9074#undef  psock_errno
     
    10084
    10185    return yyrc;
    102 } 
     86}
    10387
    10488#undef  socket
     
    11498
    11599    return yyrc;
    116 } 
     100}
    117101
    118102#undef  soclose
     
    128112
    129113    return yyrc;
    130 } 
     114}
    131115
    132116#undef  so_cancel
     
    142126
    143127    return yyrc;
    144 } 
     128}
    145129
    146130#undef  gethostname
     
    156140
    157141    return yyrc;
    158 } 
     142}
    159143
    160144#undef  gethostbyname
     
    170154
    171155    return yyrc;
    172 } 
     156}
    173157
    174158#undef  gethostbyaddr
    175159#define gethostbyaddr _gethostbyaddr
    176160
    177 #endif 
     161#endif
    178162
    179163
Note: See TracChangeset for help on using the changeset viewer.