Merge pull request #228 from QuickJack/3e163743eda89cc8c239779a75dd245be12aee3c
[mono.git] / mono / metadata / file-io.h
index e483e69b17fa441450dcaa90f5daed3f0f573786..be38d61e9ef8f28fd7866e30f73aad18deb8fa4f 100644 (file)
@@ -67,7 +67,6 @@ typedef enum {
 
 /* This is a copy of System.IO.MonoIOStat */
 typedef struct _MonoIOStat {
-       MonoString *name;
        gint32 attributes;
        gint64 length;
        gint64 creation_time;
@@ -93,7 +92,7 @@ typedef enum {
        FileAttributes_Encrypted=0x04000,
        FileAttributes_MonoExecutable= (int) 0x80000000
 } MonoFileAttributes;
-
+/* This is not used anymore
 typedef struct _MonoFSAsyncResult {
        MonoObject obj;
        MonoObject *state;
@@ -110,7 +109,7 @@ typedef struct _MonoFSAsyncResult {
        gint bytes_read;
        MonoDelegate *real_cb;
 } MonoFSAsyncResult;
-
+*/
 /* System.IO.MonoIO */
 
 extern MonoBoolean
@@ -128,11 +127,11 @@ ves_icall_System_IO_MonoIO_GetFileSystemEntries (MonoString *path,
 extern MonoString *
 ves_icall_System_IO_MonoIO_FindFirst (MonoString *path,
                                      MonoString *path_with_pattern,
-                                     gint attrs, gint mask,
+                                     gint32 *result_mask,
                                      gint32 *error,
                                      gpointer *handle) MONO_INTERNAL;
 extern MonoString *
-ves_icall_System_IO_MonoIO_FindNext (gpointer handle, gint32 *error) MONO_INTERNAL;
+ves_icall_System_IO_MonoIO_FindNext (gpointer handle, gint32 *result_mask, gint32 *error) MONO_INTERNAL;
 
 extern int
 ves_icall_System_IO_MonoIO_FindClose (gpointer handle) MONO_INTERNAL;
@@ -251,6 +250,12 @@ ves_icall_System_IO_MonoIO_ReplaceFile (MonoString *sourceFileName, MonoString *
                                        MonoString *destinationBackupFileName, MonoBoolean ignoreMetadataErrors,
                                        gint32 *error) MONO_INTERNAL;
 
+extern gint64
+mono_filesize_from_path (MonoString *path);
+
+extern gint64
+mono_filesize_from_fd (int fd);
+
 G_END_DECLS
 
 #endif /* _MONO_METADATA_FILEIO_H_ */