MonoIO.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. // console handles
  23. public extern static IntPtr ConsoleOutput {
  24. [MethodImplAttribute (MethodImplOptions.InternalCall)]
  25. get;
  26. }
  27. public extern static IntPtr ConsoleInput {
  28. [MethodImplAttribute (MethodImplOptions.InternalCall)]
  29. get;
  30. }
  31. public extern static IntPtr ConsoleError {
  32. [MethodImplAttribute (MethodImplOptions.InternalCall)]
  33. get;
  34. }
  35. // pipe handles
  36. [MethodImplAttribute (MethodImplOptions.InternalCall)]
  37. public extern static bool CreatePipe (out IntPtr read_handle, out IntPtr write_handle);
  38. }
  39. }