[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/Platform DirMethods.cs,1.10,
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/Platform DirMethods.cs,1.10,1.11 FileMethods.cs,1.5,1.6 |
Date: |
Thu, 24 Apr 2003 02:05:05 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/Platform
In directory subversions:/tmp/cvs-serv6297/runtime/Platform
Modified Files:
DirMethods.cs FileMethods.cs
Log Message:
Rewrite and/or improve various classes in "System.IO".
Index: DirMethods.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/Platform/DirMethods.cs,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** DirMethods.cs 17 Feb 2003 20:51:52 -0000 1.10
--- DirMethods.cs 24 Apr 2003 06:05:03 -0000 1.11
***************
*** 57,60 ****
--- 57,61 ----
extern public static Errno Rename(string old_name, string new_name);
+ // Get the current directory. Returns null if not possible.
[MethodImpl(MethodImplOptions.InternalCall)]
extern public static String GetCurrentDirectory();
Index: FileMethods.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/Platform/FileMethods.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** FileMethods.cs 9 Jan 2003 00:14:21 -0000 1.5
--- FileMethods.cs 24 Apr 2003 06:05:03 -0000 1.6
***************
*** 39,43 ****
[MethodImpl(MethodImplOptions.InternalCall)]
! extern public static bool Exists(String path);
// Open a raw binary file. Returns false if the file
--- 39,43 ----
[MethodImpl(MethodImplOptions.InternalCall)]
! extern public static FileType GetFileType(String path);
// Open a raw binary file. Returns false if the file
***************
*** 129,132 ****
--- 129,144 ----
extern public static Errno SetCreationTime(string path, long ticks);
+ // Get the attributes on a file.
+ [MethodImpl(MethodImplOptions.InternalCall)]
+ extern public static Errno GetAttributes(string path, out int attrs);
+
+ // Set the attributes on a file.
+ [MethodImpl(MethodImplOptions.InternalCall)]
+ extern public static Errno SetAttributes(string path, int attrs);
+
+ // Get the length of a file.
+ [MethodImpl(MethodImplOptions.InternalCall)]
+ extern public static Errno GetLength(string path, out long length);
+
}; // class FileMethods
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/Platform DirMethods.cs,1.10,1.11 FileMethods.cs,1.5,1.6,
Rhys Weatherley <address@hidden> <=