Logo Search packages:      
Sourcecode: pcsc-lite version File versions  Download package

INTERNAL int SYS_MMapSynchronize ( void *  begin,
int  length 
)

Writes the changes made in a memory map to the disk mapped file.

Parameters:
[in] begin Start of the block to be written
[in] length Lenght of the block to be written
Returns:
Error code.
Return values:
0 Success.
-1 An error ocurred.

Definition at line 359 of file sys_unix.c.

{
      int flags = 0;

#ifdef MS_INVALIDATE
      flags |= MS_INVALIDATE;
#endif
      return msync(begin, length, MS_SYNC | flags);
}


Generated by  Doxygen 1.6.0   Back to index