[Pcsclite-cvs-commit] r4435 - /trunk/PCSC/src/winscard_clnt.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Oct 6 09:39:29 UTC 2009


Author: rousseau
Date: Tue Oct  6 09:39:29 2009
New Revision: 4435

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4435
Log:
remove now useless SCardUnload()

Modified:
    trunk/PCSC/src/winscard_clnt.c

Modified: trunk/PCSC/src/winscard_clnt.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_clnt.c?rev=4435&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Tue Oct  6 09:39:29 2009
@@ -214,13 +214,6 @@
  * Used to detect fork() and disable handles in the child process
  */
 static pid_t client_pid = 0;
-
-/**
- * Memory mapped address used to read status information about the readers.
- * Each element in the vector \ref readerStates makes references to a part of
- * the memory mapped.
- */
-static int mapAddr = 0;
 
 /**
  * Ensure that some functions be accessed in thread-safe mode.
@@ -3715,37 +3708,6 @@
 	return SCARD_S_SUCCESS;
 }
 
-/**
- * @brief Free resources allocated by the library
- *
- * You _shall_ call this function if you use dlopen/dlclose to load/unload the
- * library. Otherwise you will exhaust the ressources available.
- */
-#ifdef __SUNPRO_C
-#pragma fini (SCardUnload)
-#endif
-
-void DESTRUCTOR SCardUnload(void)
-{
-	int i;
-
-	if (!isExecuted)
-		return;
-
-	/* unmap public shared file from memory */
-	for (i = 0; i < PCSCLITE_MAX_APPLICATION_CONTEXT_CHANNELS; i++)
-	{
-		if (readerStates[i] != NULL)
-		{
-			SYS_PublicMemoryUnmap(readerStates[i], sizeof(READER_STATE));
-			readerStates[i] = NULL;
-		}
-	}
-
-	(void)SYS_CloseFile(mapAddr);
-	isExecuted = 0;
-}
-
 static LONG getReaderStates(LONG dwContextIndex)
 {
 	int32_t dwClientID = psContextMap[dwContextIndex].dwClientID;




More information about the Pcsclite-cvs-commit mailing list