Suggestion of combining some macros of processing solaris, macosx with other UNIX (original) (raw)
Frank Ding dingxmin at linux.vnet.ibm.com
Mon Aug 13 20:11:38 PDT 2012
- Previous message: Suggestion of combining some macros of processing solaris, macosx with other UNIX
- Next message: Suggestion of combining some macros of processing solaris, macosx with other UNIX
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 8/7/2012 1:46 PM, Frank Ding wrote:
Hi all, In source code "jdk\src\solaris\native\java\net\PlainDatagramSocketImpl.c", there are several macros in the form of
#ifdef AFINET6 #if defined(solaris) || defined(MACOSX) // code for solaris and macosx (unix) [1] #endif #ifdef linux // code for linux #endif #else // code for non AFINET6 #endif /* AFINET6 */ The code blocks enclosed by the macro are method invocations of mcastsetifbyaddrv6(), mcastsetifbyaddrv4(), mcastsetloopv4(), mcastsetloopv6(), setHopLimit() and setTTL(). Other unix-like os, i.e. AIX, BSD and some other need exact calling sequence coded in block [1]. So I made a patch that transformed the above code into the following pattern #ifdef AFINET6 #ifdef linux // code for linux #else /* linux not defined */ // code for UNIX #endif /* linux */ #else // non AFINET6 #endif /* AFINET6 */ Could anybody take a look at my patch below and make comment? http://cr.openjdk.java.net/~youdwei/ojdk-533/webrev.00/ Thanks & Best regards, Frank
Hi all, Is there anybody who is interested in the patch and who can take a look and comment?
Thanks, Frank
- Previous message: Suggestion of combining some macros of processing solaris, macosx with other UNIX
- Next message: Suggestion of combining some macros of processing solaris, macosx with other UNIX
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]