MonoIO.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // System.IO.MonoIO.cs: static interface to native filesystem.
  3. //
  4. // Author:
  5. // Dan Lewis ([email protected])
  6. // Dick Porter ([email protected])
  7. //
  8. // (C) 2002
  9. //
  10. using System;
  11. using System.Runtime.CompilerServices;
  12. // This is a heavily cut down version of the corlib class. It's here
  13. // because we're keeping extensions invisible, but
  14. // System.Diagnostics.Process needs access to some of the
  15. // functionality (and CVS can't do symlinks).
  16. namespace System.IO
  17. {
  18. internal sealed class MonoIO {
  19. // handle methods
  20. [MethodImplAttribute (MethodImplOptions.InternalCall)]
  21. public extern static bool Close (IntPtr handle,
  22. out MonoIOError error);
  23. // console handles
  24. public extern static IntPtr ConsoleOutput {
  25. [MethodImplAttribute (MethodImplOptions.InternalCall)]
  26. get;
  27. }
  28. public extern static IntPtr ConsoleInput {
  29. [MethodImplAttribute (MethodImplOptions.InternalCall)]
  30. get;
  31. }
  32. public extern static IntPtr ConsoleError {
  33. [MethodImplAttribute (MethodImplOptions.InternalCall)]
  34. get;
  35. }
  36. // pipe handles
  37. [MethodImplAttribute (MethodImplOptions.InternalCall)]
  38. public extern static bool CreatePipe (out IntPtr read_handle, out IntPtr write_handle);
  39. }
  40. }