notifierRoutineUPP		=  NewOTNotifyUPP(NotifierRoutine);  errOT = OTAllocClientContext((UInt32)0, &clientContext); PR_ASSERT(err == kOTNoError); #endif
NotifierRoutineUPP		=  NewOTNotifyUPP(NotifierRoutine); RawEndpointNotifierRoutineUPP = NewOTNotifyUPP(RawEndpointNotifierRoutine);
void _MD_InitNetAccess(){    OSErr       err;    OSStatus    errOT;    PRBool      hasOTTCPIP = PR_FALSE;    PRBool      hasOT = PR_FALSE;    long        gestaltResult;    err = Gestalt(gestaltOpenTpt, &gestaltResult);    if (err == noErr)        if (gestaltResult & GESTALT_OPEN_TPT_PRESENT)            hasOT = PR_TRUE;        if (hasOT)        if (gestaltResult & GESTALT_OPEN_TPT_TCP_PRESENT)            hasOTTCPIP = PR_TRUE;            PR_ASSERT(hasOTTCPIP == PR_TRUE);#if TARGET_CARBON    DNSNotifierRoutineUPP	=  NewOTNotifyUPP(DNSNotifierRoutine);    notifierRoutineUPP		=  NewOTNotifyUPP(NotifierRoutine);    errOT = OTAllocClientContext((UInt32)0, &clientContext);    PR_ASSERT(err == kOTNoError);#endif    errOT = INIT_OPEN_TRANSPORT();    PR_ASSERT(err == kOTNoError);	dnsContext.lock = PR_NewLock();	PR_ASSERT(dnsContext.lock != NULL);	dnsContext.thread = _PR_MD_CURRENT_THREAD();	dnsContext.cookie = NULL;		gOTInitialized = PR_FALSE;	/* XXX Does not handle absence of open tpt and tcp yet! */}