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,
27 out MonoIOError error);
31 public extern static IntPtr ConsoleOutput {
32 [MethodImplAttribute (MethodImplOptions.InternalCall)]
36 public extern static IntPtr ConsoleInput {
37 [MethodImplAttribute (MethodImplOptions.InternalCall)]
41 public extern static IntPtr ConsoleError {
42 [MethodImplAttribute (MethodImplOptions.InternalCall)]
48 [MethodImplAttribute (MethodImplOptions.InternalCall)]
49 public extern static bool CreatePipe (out IntPtr read_handle, out IntPtr write_handle);