| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- //
- // 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);
-
- // 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);
- }
- }
|