X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem%2FSystem.IO%2FMonoIO.cs;h=de2d9bfe5cfda86b8677c97cd670a5271d3003c9;hb=a8b22e0e864c03b8cfd2f2cb5a8075b6611c5553;hp=911b8c245ad08a562ef5812d86b6331c78d1f4b2;hpb=1efda2a6a0c0b3bddb40b4287ae948d38e09e4cc;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 911b8c245ad..de2d9bfe5cf --- 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; @@ -23,7 +44,8 @@ namespace System.IO // handle methods [MethodImplAttribute (MethodImplOptions.InternalCall)] - public extern static bool Close (IntPtr handle); + public extern static bool Close (IntPtr handle, + out MonoIOError error); // console handles @@ -46,6 +68,9 @@ 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 int GetTempPath(out string path); } }