[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] pnetlib/runtime/Platform FileMethods.cs, 1.7, 1.8
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] pnetlib/runtime/Platform FileMethods.cs, 1.7, 1.8 |
Date: |
Tue, 02 Dec 2003 02:17:59 +0000 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/Platform
In directory subversions:/tmp/cvs-serv27973/runtime/Platform
Modified Files:
FileMethods.cs
Log Message:
Add "System.IO.SymbolicLinks" to the library, to support getting symbolic
link information in the file dialog classes.
Index: FileMethods.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/Platform/FileMethods.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** FileMethods.cs 19 Aug 2003 05:06:31 -0000 1.7
--- FileMethods.cs 2 Dec 2003 02:17:57 -0000 1.8
***************
*** 150,153 ****
--- 150,163 ----
extern public static Errno GetLength(string path, out long length);
+ // Read the contents of a symlink. Returns "Errno.Success" and
+ // "null" in "contents" if the path exists but is not a symlink.
+ [MethodImpl(MethodImplOptions.InternalCall)]
+ extern public static Errno ReadLink(String path, out String contents);
+
+ // Create a symbolic link. Returns "Errno.EPERM" if the filesystem
+ // does not support the creation of symbolic links.
+ [MethodImpl(MethodImplOptions.InternalCall)]
+ extern public static Errno CreateLink(String oldpath, String newpath);
+
}; // class FileMethods
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] pnetlib/runtime/Platform FileMethods.cs, 1.7, 1.8,
Rhys Weatherley <address@hidden> <=