* MemoryMappedViewAccessor.cs
* MemoryMappedFile.cs
* MemoryMappedViewStream.cs:
Properly retrieve the size of the mmapped file. Fixes the
unit tests.
svn path=/trunk/mcs/; revision=155407
* MemoryMappedFile.cs: Make this by default use the native
interface (Mono.Unix.Native.Syscall) to map files and only support
the FileStream.Handle when the user explicitly uses this API.
The reason is that currently the code depends on the io-layer
keeping parity between our handles and Unix file descriptors, this
removes this dependency for most cases.
svn path=/trunk/mcs/; revision=148366
* SafeMemoryMappedViewHandle.cs (ReleaseHandle): implement.
2009-12-13 Miguel de Icaza <[email protected]>
* MemoryMappedViewAccessor.cs: Derive from
UnmanagedMemoryAccessor, remove explicit IDisposable
inheritance.
(CreatePosix): Call Initialize on the base class to initialize.
(Dispose): Kill methods.
(Flush): Add.
(MapPosix): no need to return out mmap_size, it is always size.
* MemoryMappedFile.cs: Add FlushPosix.
* MemoryMappedViewStream.cs: Update API.
svn path=/trunk/mcs/; revision=148361
* MemoryMappedFile.cs: Updated to the new Beta API, fill in some
blanks, map some new flags, obey some settings, throw some
exceptions.
svn path=/trunk/mcs/; revision=148003
* MemoryMappedViewAccessor.cs: New net 4.0 class.
* MemoryMappedViewStream.cs: Move the mmap code to MemoryMappedFile.cs,
so it can be used by ViewAccessor as well.
svn path=/trunk/mcs/; revision=141375