X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem%2FSystem.IO%2FMonoIO.cs;h=07fb5e9b6229b8d04dcbc1037b1b10a09e8a4e47;hb=6d4a4e8e31b317b8f127d4cfbcd9cf51bb613cff;hp=8463e733ee8970b06d2e8e711b1419baa61f6b85;hpb=3797edd7dff0a970a2fe8a67ad7eac628188d464;p=mono.git diff --git a/mcs/class/System/System.IO/MonoIO.cs b/mcs/class/System/System.IO/MonoIO.cs old mode 100755 new mode 100644 index 8463e733ee8..07fb5e9b622 --- a/mcs/class/System/System.IO/MonoIO.cs +++ b/mcs/class/System/System.IO/MonoIO.cs @@ -8,6 +8,27 @@ // (C) 2002 // +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// + using System; using System.Runtime.CompilerServices; @@ -48,6 +69,10 @@ namespace System.IO [MethodImplAttribute (MethodImplOptions.InternalCall)] public extern static bool CreatePipe (out IntPtr read_handle, out IntPtr write_handle); + [MethodImplAttribute (MethodImplOptions.InternalCall)] + public extern static bool DuplicateHandle (IntPtr source_process_handle, IntPtr source_handle, + IntPtr target_process_handle, out IntPtr target_handle, int access, int inherit, int options); + [MethodImplAttribute (MethodImplOptions.InternalCall)] public extern static int GetTempPath(out string path); }