net_CallExitRoutine(tmpEntry->exit_routine,
net_CallExitRoutineProxy(tmpEntry->exit_routine,
NET_ShutdownNetLib(void){    ActiveEntry *tmpEntry;/* #ifdef XP_WIN */#if defined(JAVA) || defined(NS_MT_SUPPORTED)	if (libnet_asyncIO) LIBNET_LOCK();#else    LIBNET_LOCK();#endif    if(net_waiting_for_actives_url_list) {	    net_AbortWaitingURL(0, TRUE, net_waiting_for_actives_url_list);	XP_ListDestroy(net_waiting_for_actives_url_list);	net_waiting_for_actives_url_list = 0;    }    if(net_waiting_for_connection_url_list) {	net_AbortWaitingURL(0, TRUE, net_waiting_for_connection_url_list);	XP_ListDestroy(net_waiting_for_connection_url_list);	net_waiting_for_connection_url_list = 0;    }    /* run through list of     * connections     */    while((tmpEntry = (ActiveEntry *)XP_ListRemoveTopObject(net_EntryList)) != 0)      {		if(tmpEntry->proto_impl)		{			(*tmpEntry->proto_impl->interrupt)(tmpEntry);		}		else		{			PR_ASSERT(0);		}     	/* XP_OS2_FIX IBM-MAS: limit length of output to keep from blowing trace buffer! */    	TRACEMSG(("End of transfer, entry (soc=%d, con=%d) being removed from list with %d status: %-.1900s",               tmpEntry->socket, tmpEntry->con_sock, tmpEntry->status, tmpEntry->URL_s->address));	 	/* call exit routine since we know we are done */	 	net_CallExitRoutine(tmpEntry->exit_routine,							 tmpEntry->URL_s,							 tmpEntry->status,							 tmpEntry->format_out,							 tmpEntry->window_id);#ifdef MODULAR_NETLIB        net_ReleaseContext(tmpEntry->window_id);#endif	 	PR_Free(tmpEntry);  /* free the no longer active entry */      }	XP_ListDestroy(net_EntryList);	net_EntryList = 0;    /* free any memory in the protocol modules     */	net_cleanup_reg_protocol_impls();#ifdef MOZILLA_CLIENT	NET_SaveCookies("");#if defined(SingleSignon)        SI_SaveSignonData("");#endif	GH_SaveGlobalHistory();#endif /* MOZILLA_CLIENT */	/* purge existing cache files */    /* free memory in the tcp routines     */    NET_CleanupTCP();#ifdef MOZILLA_CLIENT    NET_CleanupCache();	NET_SetMemoryCacheSize(0); /* free memory cache */#endif /* MOZILLA_CLIENT */#ifdef XP_UNIX	NET_CleanupFileFormat(NULL);#else	NET_CleanupFileFormat();#endif/* #ifdef XP_WIN */#if defined(JAVA) || defined(NS_MT_SUPPORTED)    if (libnet_asyncIO) LIBNET_UNLOCK();#else    LIBNET_UNLOCK();#endif}