2002-03-17 Gaurav Vaish <gvaish@iitk.ac.in>
[mono.git] / mcs / class / corlib / Linux / Linux.cs
index 4c978257086f99e0512a901cc194d8d0f0c01e4d..fe9e0828396d98db50773598b7e4d6bc55bbdac4 100644 (file)
@@ -371,47 +371,6 @@ namespace System.PAL
                        }
                }
 
-
-               // For StdInputStream
-               public int ReadStdInput(byte[] buffer, int offset, int count)
-               {
-                       return ReadFile(StdinHandle, buffer, offset, count);
-               }
-
-               // For StdOutputStream
-               public void FlushStdOutput(byte[] byteBuf)
-               {
-                       FlushFile(StdoutHandle, byteBuf);
-               }
-
-               [MethodImplAttribute(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)]
-               public extern int ReadFile(IntPtr handle, byte[] buffer, int offset, int count);
-
-               [MethodImplAttribute(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)]
-               public extern int WriteFile(IntPtr handle, byte[] buffer, int offset, int count);
-               
-               [MethodImplAttribute(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)]
-               public extern int SetLengthFile(IntPtr handle, long length);
-               
-               public void FlushFile(IntPtr handle, byte[] byteBuf)
-               {
-                       WriteFile(handle, byteBuf, 0, byteBuf.Length);
-               }
-
-               [MethodImplAttribute(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)]
-               public extern IntPtr OpenFile(String path, FileMode mode, FileAccess access, FileShare share);
-           
-               [MethodImplAttribute(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)]
-               public extern void CloseFile(IntPtr handle);
-       
-               [MethodImplAttribute(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)]
-               public extern long SeekFile(IntPtr handle, long offset, SeekOrigin origin);
-       
-               public IntPtr CreateFile(string path, FileMode mode, FileAccess access, FileShare share)
-               {
-                       return OpenFile(path, FileMode.CreateNew, access, share);
-               }
-       
                [MethodImplAttribute(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)]
                public extern void DeleteFile(string path);
        
@@ -423,10 +382,10 @@ namespace System.PAL
                 * from DateTime(1/1/1601 00:00 GMT))
                 */
                [MethodImplAttribute(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)]
-               private extern bool GetFileTime(IntPtr handle, out long creat, out long lastaccess, out long lastwrite);
+               private extern static bool GetFileTime(IntPtr handle, out long creat, out long lastaccess, out long lastwrite);
 
                [MethodImplAttribute(System.Runtime.CompilerServices.MethodImplOptions.InternalCall)]
-               private extern bool SetFileTime(IntPtr handle, long creat, long lastaccess, long lastwrite);
+               private extern static bool SetFileTime(IntPtr handle, long creat, long lastaccess, long lastwrite);
        
                public DateTime GetCreationTimeFile(string path)
                {
@@ -515,11 +474,6 @@ namespace System.PAL
                        return 0;
                }
 
-               public long FileLength(IntPtr handle)
-               {
-                       return 0;
-               }
-
                // Private implementation details
                [DllImport("monowrapper", EntryPoint="mono_wrapper_environ", CharSet=CharSet.Ansi)]
                private unsafe static extern IntPtr _getEnviron();