Commit Graph
15 Commits
Author SHA1 Message Date
Marek Safar bd05c6c836 Some .net 4.0 api compatibility fixes 2010-12-15 11:12:07 +00:00
Marek Safar aad016fd87 Clean up few more warnings 2010-10-15 15:20:25 +01:00
Jb Evain 2f29080c3f 2010-05-25 Jb Evain <[email protected]>
* MemoryMappedViewAccessor.cs: fix API.


svn path=/trunk/mcs/; revision=157852
2010-05-25 13:59:46 +00:00
Jb Evain b34661184e 2010-05-25 Jb Evain <[email protected]>
* MemoryMappedFile.cs: add missing overloads.


svn path=/trunk/mcs/; revision=157850
2010-05-25 13:51:40 +00:00
Jb Evain 67cb3134c4 2010-05-25 Jb Evain <[email protected]>
* MemoryMappedFile.cs: make some helper methods private.


svn path=/trunk/mcs/; revision=157847
2010-05-25 13:37:35 +00:00
Jb Evain 2e8968f23e 2010-05-25 Jb Evain <[email protected]>
* MemoryMappedFileSecurity.cs: ifdef for NET_4_0.


svn path=/trunk/mcs/; revision=157846
2010-05-25 13:37:05 +00:00
Jb Evain 401a69270a 2010-04-15 Jb Evain <[email protected]>
* MemoryMappedFile.cs: implement CreateOrOpen.


svn path=/trunk/mcs/; revision=155494
2010-04-15 11:49:37 +00:00
Jb Evain 1a85aa1d2a eol
svn path=/trunk/mcs/; revision=155493
2010-04-15 11:49:13 +00:00
Jb Evain 259e22f6ee 2010-04-14 Jb Evain <[email protected]>
* MemoryMappedViewAccessor.cs
	* MemoryMappedFile.cs
	* MemoryMappedViewStream.cs:
		Properly retrieve the size of the mmapped file. Fixes the
		unit tests.


svn path=/trunk/mcs/; revision=155407
2010-04-14 16:38:53 +00:00
Miguel de Icaza 953f560654 2009-12-14 Miguel de Icaza <[email protected]>
* 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
2009-12-14 05:24:34 +00:00
Miguel de Icaza 76574e8f58 2009-12-13 Miguel de Icaza <[email protected]>
* 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
2009-12-14 01:40:50 +00:00
Miguel de Icaza 04db5e3842 2009-12-10 Miguel de Icaza <[email protected]>
* 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
2009-12-10 05:55:57 +00:00
Zoltan Varga 08351b9b95 2009-09-05 Zoltan Varga <[email protected]>
* 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
2009-09-04 22:22:58 +00:00
Zoltan Varga 1994c7d03b 2009-08-30 Zoltan Varga <[email protected]>
* MemoryMappedViewStream.cs: Implement this for unix.

svn path=/trunk/mcs/; revision=140930
2009-08-29 23:59:13 +00:00
Zoltan Varga 4174126774 2009-08-29 Zoltan Varga <[email protected]>
* net_4_0_System.Core.dll.sources: Add System.IO.MemoryMappedFiles/*.cs
	and Microsoft.Win32.SafeHandles/SafeMemoryMappedFileHandle.cs.

svn path=/trunk/mcs/; revision=140929
2009-08-29 23:59:04 +00:00