| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- //
- // System.IO.MonoIO.cs: static interface to native filesystem.
- //
- // Author:
- // Dan Lewis ([email protected])
- // Dick Porter ([email protected])
- //
- // (C) 2002
- //
- using System;
- using System.Runtime.CompilerServices;
- // This is a heavily cut down version of the corlib class. It's here
- // because we're keeping extensions invisible, but
- // System.Diagnostics.Process needs access to some of the
- // functionality (and CVS can't do symlinks).
- namespace System.IO
- {
- internal sealed class MonoIO {
- // handle methods
- [MethodImplAttribute (MethodImplOptions.InternalCall)]
- public extern static bool Close (IntPtr handle,
- out MonoIOError error);
-
- // console handles
- public extern static IntPtr ConsoleOutput {
- [MethodImplAttribute (MethodImplOptions.InternalCall)]
- get;
- }
- public extern static IntPtr ConsoleInput {
- [MethodImplAttribute (MethodImplOptions.InternalCall)]
- get;
- }
- public extern static IntPtr ConsoleError {
- [MethodImplAttribute (MethodImplOptions.InternalCall)]
- get;
- }
- // pipe handles
- [MethodImplAttribute (MethodImplOptions.InternalCall)]
- public extern static bool CreatePipe (out IntPtr read_handle, out IntPtr write_handle);
- }
- }
|