2009-03-23 Marek Habersack <mhabersack@novell.com>
authorMarek Habersack <grendel@twistedcode.net>
Mon, 23 Mar 2009 12:57:04 +0000 (12:57 -0000)
committerMarek Habersack <grendel@twistedcode.net>
Mon, 23 Mar 2009 12:57:04 +0000 (12:57 -0000)
commit82bbdb387b29dc4e88c5b2278603959a4ab19543
treebfe774b28e6dfa6645600c9569a7d5b3a4ea7a95
parent50d3a6417b66b26d0923f868f83be54ed60c08fa
2009-03-23  Marek Habersack  <mhabersack@novell.com>

* ConsoleTest.cs: added a bunch of tests for the standard input,
output and error stream properties.

2009-03-23  Marek Habersack  <mhabersack@novell.com>

* FileStreamTest.cs: added a bunch of tests for SafeFileHandle
constructors

2009-03-23  Marek Habersack  <mhabersack@novell.com>

* Console.cs: OpenStandard{Input,Output,Error} no longer use
FileStream on 2.0+. The reason is that SafeFileHandle used in the
stream doesn't allow handles with values <= 0, and on Unix stdin
is 0 which would break the Console class. Instead of FileStream,
introduced a simple internal specialized stream which is used in
this scenario.

2009-03-23  Marek Habersack  <mhabersack@novell.com>

* FileStream.cs: implemented full support for SafeFileHandle in
2.0. The obsolete constructors taking an IntPtr now wrap it in a
SafeFileHandle.

2009-03-23  Marek Habersack  <mhabersack@novell.com>

* SafeHandle.cs: added an internal property, OwnsHandle, used by
FileStream.

svn path=/trunk/mcs/; revision=130049
mcs/class/corlib/System.IO/FileStream.cs
mcs/class/corlib/System.Runtime.InteropServices/ChangeLog
mcs/class/corlib/System.Runtime.InteropServices/SafeHandle.cs
mcs/class/corlib/System/ChangeLog
mcs/class/corlib/System/Console.cs
mcs/class/corlib/Test/System.IO/ChangeLog
mcs/class/corlib/Test/System.IO/FileStreamTest.cs
mcs/class/corlib/Test/System/ChangeLog
mcs/class/corlib/Test/System/ConsoleTest.cs