projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[w32file] Move MonoIO.Find{First,Next,Close} to managed
[mono.git]
/
mcs
/
class
/
corlib
/
System.IO
/
MonoIO.cs
diff --git
a/mcs/class/corlib/System.IO/MonoIO.cs
b/mcs/class/corlib/System.IO/MonoIO.cs
index 35a81c5e44984e708ae919fbd399daa9f5512fcb..38c8cf3de735623fa52e6cd144ae626ceaed1fe7 100644
(file)
--- a/
mcs/class/corlib/System.IO/MonoIO.cs
+++ b/
mcs/class/corlib/System.IO/MonoIO.cs
@@
-174,9
+174,6
@@
namespace System.IO
[MethodImplAttribute (MethodImplOptions.InternalCall)]
public extern static bool RemoveDirectory (string path, out MonoIOError error);
[MethodImplAttribute (MethodImplOptions.InternalCall)]
public extern static bool RemoveDirectory (string path, out MonoIOError error);
- [MethodImplAttribute (MethodImplOptions.InternalCall)]
- public extern static string [] GetFileSystemEntries (string path, string path_with_pattern, int attrs, int mask, out MonoIOError error);
-
[MethodImplAttribute (MethodImplOptions.InternalCall)]
public extern static string GetCurrentDirectory (out MonoIOError error);
[MethodImplAttribute (MethodImplOptions.InternalCall)]
public extern static string GetCurrentDirectory (out MonoIOError error);
@@
-229,15
+226,16
@@
namespace System.IO
//
// Find file methods
//
//
// Find file methods
//
+
[MethodImplAttribute (MethodImplOptions.InternalCall)]
[MethodImplAttribute (MethodImplOptions.InternalCall)]
- public extern static
string FindFirst (string path, string pattern, out FileAttributes result_attr, out MonoIOError error, out IntPtr handle
);
-
+ public extern static
IntPtr FindFirstFile (string path_with_pattern, out string fileName, out int fileAttr, out int error
);
+
[MethodImplAttribute (MethodImplOptions.InternalCall)]
[MethodImplAttribute (MethodImplOptions.InternalCall)]
- public extern static
string FindNext (IntPtr handle, out FileAttributes result_attr, out MonoIOError
error);
-
+ public extern static
bool FindNextFile (IntPtr hnd, out string fileName, out int fileAttr, out int
error);
+
[MethodImplAttribute (MethodImplOptions.InternalCall)]
[MethodImplAttribute (MethodImplOptions.InternalCall)]
- public extern static
int FindClose (IntPtr handle
);
-
+ public extern static
bool FindCloseFile (IntPtr hnd
);
+
public static bool Exists (string path, out MonoIOError error)
{
FileAttributes attrs = GetFileAttributes (path,
public static bool Exists (string path, out MonoIOError error)
{
FileAttributes attrs = GetFileAttributes (path,