On Tue, Nov 09, 1999 at 11:09:25PM +0100, Laurent Deniel wrote: > > Any idea what the right test should be to see whether to use SIOCGIFCONF > > or OSIOCGIFCONF? Is there a built-in ifdef we should use (e.g., AIX), > > or do we need to put in, say, a configure-script test? > > The only OS i see that uses OSIOCGIFCONF was AIX and it was mandatory in > order to make it work like the other unix with the `normal' struct ifconf. > So an #ifdef OSIOCGIFCONF should be ok (since it should be declared in the > same include file as SIOCGIFCONF). An #ifdef __aix is harder to handle > since it depends on the compiler. Otherwise a configure option like > HAVE_AIX or HAVE_OSIOCGIFCONF is ok also. Where the heck are things like these documented? I've found the full doc set for AIX at: http://www.rs6000.ibm.com/doc_link/en_US/a_doc_lib/aixgen/ and some other useful AIX stuff at: http://journyx.com/aix_resources.html I think Lou Gerstner should give me some money, for all the headaches that AIX is giving me. Guy, can you give me a sample test snippet of code which gets all the network interfaces on a system? Then I can try to see what works on AIX. Thanks. -- Craig Rodrigues http://www.gis.net/~craigr rodrigc@xxxxxxxxxxxx
Powered by MHonArc 2.6.10