[Pcsclite-cvs-commit] r2076 - trunk/PCSC/src
Ludovic Rousseau
rousseau at costa.debian.org
Wed Jun 7 12:58:15 UTC 2006
Author: rousseau
Date: 2006-06-07 12:58:14 +0000 (Wed, 07 Jun 2006)
New Revision: 2076
Modified:
trunk/PCSC/src/sys_generic.h
trunk/PCSC/src/sys_unix.c
Log:
implement SYS_PublicMemoryUnmap()
Thanks to Stefan Schuermans for the patch
Modified: trunk/PCSC/src/sys_generic.h
===================================================================
--- trunk/PCSC/src/sys_generic.h 2006-06-07 12:56:03 UTC (rev 2075)
+++ trunk/PCSC/src/sys_generic.h 2006-06-07 12:58:14 UTC (rev 2076)
@@ -73,6 +73,8 @@
void *SYS_PublicMemoryMap(int, int, int);
+ void SYS_PublicMemoryUnmap(void *, int);
+
int SYS_MMapSynchronize(void *, int);
int SYS_Fork(void);
Modified: trunk/PCSC/src/sys_unix.c
===================================================================
--- trunk/PCSC/src/sys_unix.c 2006-06-07 12:56:03 UTC (rev 2075)
+++ trunk/PCSC/src/sys_unix.c 2006-06-07 12:58:14 UTC (rev 2076)
@@ -355,6 +355,17 @@
}
/**
+ * @brief Unmap a memory segment
+ *
+ * @param ptr pointer returned by SYS_PublicMemoryMap()
+ * @param iSize size of the memory segment
+ */
+INTERNAL void SYS_PublicMemoryUnmap(void * ptr, int iSize)
+{
+ munmap(ptr, iSize);
+}
+
+/**
* @brief Writes the changes made in a memory map to the disk mapped file.
*
* @param[in] begin Start of the block to be written
More information about the Pcsclite-cvs-commit
mailing list