2 // System.IO.MonoIO.cs: static interface to native filesystem.
5 // Dan Lewis (dihlewis@yahoo.co.uk)
6 // Dick Porter (dick@ximian.com)
12 using System.Runtime.CompilerServices;
14 // This is a heavily cut down version of the corlib class. It's here
15 // because we're keeping extensions invisible, but
16 // System.Diagnostics.Process needs access to some of the
17 // functionality (and CVS can't do symlinks).
21 internal sealed class MonoIO {
25 [MethodImplAttribute (MethodImplOptions.InternalCall)]
26 public extern static bool Close (IntPtr handle);
30 public extern static IntPtr ConsoleOutput {
31 [MethodImplAttribute (MethodImplOptions.InternalCall)]
35 public extern static IntPtr ConsoleInput {
36 [MethodImplAttribute (MethodImplOptions.InternalCall)]
40 public extern static IntPtr ConsoleError {
41 [MethodImplAttribute (MethodImplOptions.InternalCall)]
47 [MethodImplAttribute (MethodImplOptions.InternalCall)]
48 public extern static bool CreatePipe (out IntPtr read_handle, out IntPtr write_handle);