dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/Platform FileMethods.cs, 1.6,


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/Platform FileMethods.cs, 1.6, 1.7
Date: Tue, 19 Aug 2003 01:06:33 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/Platform
In directory subversions:/tmp/cvs-serv26178/runtime/Platform

Modified Files:
        FileMethods.cs 
Log Message:


Add internalcalls to support "FileStream.Lock" and "FileStream.Unlock".


Index: FileMethods.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/Platform/FileMethods.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** FileMethods.cs      24 Apr 2003 06:05:03 -0000      1.6
--- FileMethods.cs      19 Aug 2003 05:06:31 -0000      1.7
***************
*** 100,103 ****
--- 100,112 ----
        extern public static bool SetLength(IntPtr handle, long value);
  
+       // Lock a region of a file.
+       [MethodImpl(MethodImplOptions.InternalCall)]
+       extern public static bool Lock(IntPtr handle, long position, long 
length);
+ 
+       // Unlock a region of a file.
+       [MethodImpl(MethodImplOptions.InternalCall)]
+       extern public static bool Unlock
+                       (IntPtr handle, long position, long length);
+ 
        // Get the last-occurring system error code for the current thread.
        [MethodImpl(MethodImplOptions.InternalCall)]





reply via email to

[Prev in Thread] Current Thread [Next in Thread]